From 87921798a46442cfe4b3a647038bb9c656bff4fd Mon Sep 17 00:00:00 2001 From: garrytan Date: Sat, 17 Oct 2026 02:52:18 +0000 Subject: [PATCH] test: copy lib/result-codes-release.ts wherever a fixture copies lib/result-codes.ts; the scope-signal check requires the helper's computed emission Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- .github/workflows/windows-pregate-e2e.yml | 1 + test/plan-tune-cathedral.test.ts | 2 +- test/review-workflow-clarity.test.ts | 2 +- test/timeline-stop-hook-slug.test.ts | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows-pregate-e2e.yml b/.github/workflows/windows-pregate-e2e.yml index 3c225d19b..96528e648 100644 --- a/.github/workflows/windows-pregate-e2e.yml +++ b/.github/workflows/windows-pregate-e2e.yml @@ -31,6 +31,7 @@ on: - 'lib/gate-diff/**' - 'lib/pregate/**' - 'lib/result-codes.ts' + - 'lib/result-codes-release.ts' - 'bin/gstack-wtree' - 'bin/gstack-slug' - 'bin/gstack-path-spelling.sh' diff --git a/test/plan-tune-cathedral.test.ts b/test/plan-tune-cathedral.test.ts index 7f6dacecf..e9925e9ed 100644 --- a/test/plan-tune-cathedral.test.ts +++ b/test/plan-tune-cathedral.test.ts @@ -70,7 +70,7 @@ function scaffoldFixture(workDir: string): { workDir: string; stateRoot: string; // These imports are resolved relative to the copied install, not the source checkout. const libDir = path.join(workDir, 'lib'); fs.mkdirSync(libDir, { recursive: true }); - for (const file of ['jsonl-store.ts', 'is-conductor.ts', 'state-root.ts', 'bin-context.ts', 'remote-identity.ts', 'script-invocation.ts', 'result-codes.ts']) { + for (const file of ['jsonl-store.ts', 'is-conductor.ts', 'state-root.ts', 'bin-context.ts', 'remote-identity.ts', 'script-invocation.ts', 'result-codes.ts', 'result-codes-release.ts']) { fs.copyFileSync(path.join(ROOT, 'lib', file), path.join(libDir, file)); } diff --git a/test/review-workflow-clarity.test.ts b/test/review-workflow-clarity.test.ts index 07dec5865..c356d70fa 100644 --- a/test/review-workflow-clarity.test.ts +++ b/test/review-workflow-clarity.test.ts @@ -374,7 +374,7 @@ for (const skillName of ['review', 'ship']) { // A signal the scope block does not print must come from the helper its own selection line runs. const helper = /bin\/(gstack-[a-z-]+) detect\b/.exec(selection.split('\n').find(line => line.includes(signal))!)?.[1]; expect(helper, signal).toBeDefined(); - expect(readFileSync(join(root, 'bin', helper!), 'utf8'), signal).toContain(`${signal}=`); + expect(readFileSync(join(root, 'bin', helper!), 'utf8'), signal).toContain(`${signal}=\${`); } }); diff --git a/test/timeline-stop-hook-slug.test.ts b/test/timeline-stop-hook-slug.test.ts index 64516178b..f4f383f77 100644 --- a/test/timeline-stop-hook-slug.test.ts +++ b/test/timeline-stop-hook-slug.test.ts @@ -29,6 +29,7 @@ const HOOK_FILES = [ 'lib/remote-identity.ts', 'lib/script-invocation.ts', 'lib/result-codes.ts', + 'lib/result-codes-release.ts', ]; const SLUG = 'stop-hook-slug-test'; const BUDGET_MS = 2000;