test(qa-quick): run the fixture in a committed git repository

/qa runs inside a repository: its clean-tree check and the evidence
recorder's revision come from git. The qa-quick working directory was a
bare temp dir, so all 15 CI transcripts read (runs 37374409928 to
37744583272) hit 'revision is required when git rev-parse HEAD is
unavailable' on the first materialize and spent a retry (6-46 s) plus a
learnings-log of the pitfall. qa-only-no-fix already commits its fixture.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
garrytanandcapy-ai[bot] committed 2026-10-08 08:42:39 +00:00
1 parent c7edf46bcf
commit 87cd067ee4
1 file changed
+7
+7
View File
@@ -49,6 +49,13 @@ describeIfSelected('QA skill E2E', ['qa-quick'], () => {
// Create report directory
fs.mkdirSync(path.join(qaDir, 'qa-reports'), { recursive: true });
for (const args of [['init', '-b', 'main'], ['config', 'user.email', 'test@test.com'], ['config', 'user.name', 'Test'],
['add', '.'], ['commit', '-m', 'initial']]) {
const git = spawnSync('git', args, { cwd: qaDir, stdio: 'pipe', timeout: 5000 });
if (git.error) throw git.error;
if (git.status !== 0) throw new Error(`git ${args.join(' ')} failed: ${git.stderr}`);
}
});
afterAll(() => {