From 87cd067ee472b8790de412c93e9f76c261720324 Mon Sep 17 00:00:00 2001 From: garrytan Date: Thu, 8 Oct 2026 08:42:39 +0000 Subject: [PATCH] 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> --- test/skill-e2e-qa-workflow.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/skill-e2e-qa-workflow.test.ts b/test/skill-e2e-qa-workflow.test.ts index d2ebc644b..d57df0e47 100644 --- a/test/skill-e2e-qa-workflow.test.ts +++ b/test/skill-e2e-qa-workflow.test.ts @@ -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(() => {