mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-01 22:45:02 +01:00
test: retro-base-branch fixture uses main and a shallow report path
PR run 37241493377: the agent wrote retro-output.md one directory above the requested <tmp>/retro-base/retro-output.md (it dropped the retro-base segment), so the report check found nothing. The fixture also ran plain git init, which makes master on CI's git while the prompt says the repo is on main; the agent logged that mismatch as a learning. Init on main and use the temp dir itself as the repo. Diagnostic rerun passed (18 turns, 203s).
This commit is contained in:
1 parent
da29f66ad5
commit
adc683e349
1 file changed
+3
-4
@@ -79,11 +79,10 @@ describeIfSelected('Base branch detection', ['retro-base-branch'], () => {
|
||||
});
|
||||
|
||||
testConcurrentIfSelected('retro-base-branch', async () => {
|
||||
const dir = path.join(baseBranchDir, 'retro-base');
|
||||
fs.mkdirSync(dir, { recursive: true });
|
||||
const dir = baseBranchDir;
|
||||
|
||||
// Create git repo with commit history
|
||||
run('git', ['init'], dir);
|
||||
// Create git repo with commit history on main, the branch the prompt names
|
||||
run('git', ['init', '-b', 'main'], dir);
|
||||
run('git', ['config', 'user.email', 'dev@example.com'], dir);
|
||||
run('git', ['config', 'user.name', 'Dev'], dir);
|
||||
|
||||
|
||||
Reference in new issue
Block a user