From d0b52ad9391876246c0780d9b6bb6b3a479796a7 Mon Sep 17 00:00:00 2001 From: Sinabina Date: Fri, 17 Jul 2026 11:28:00 -0700 Subject: [PATCH] test: update cycle source pin for cycleSourceId threading MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The #1972 source-pin test asserts the literal runPhaseExtract call site in cycle.ts. The #1503 fix appended cycleSourceId after opts.signal; signal threading is unchanged (still the 5th arg, forwarded to runExtractCore). Pin updated to the new literal — invariant intact. Co-Authored-By: Claude Fable 5 --- test/cycle-abort.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cycle-abort.test.ts b/test/cycle-abort.test.ts index 3175421bf..8b1dec4b1 100644 --- a/test/cycle-abort.test.ts +++ b/test/cycle-abort.test.ts @@ -175,7 +175,7 @@ describe('#1972 — complete cooperative-abort coverage', () => { const src = fs.readFileSync(new URL('../src/core/cycle.ts', import.meta.url), 'utf8'); const body = src.slice(src.indexOf('export async function runCycle')); // Each long phase receives the signal. - expect(body).toContain('runPhaseExtract(engine, brainDir, dryRun, syncPagesAffected, opts.signal)'); + expect(body).toContain('runPhaseExtract(engine, brainDir, dryRun, syncPagesAffected, opts.signal, cycleSourceId)'); expect(body).toMatch(/runPhaseExtractFacts\([^)]*opts\.signal\)/); expect(body).toContain('signal: opts.signal'); // consolidate opts expect(body).toContain('runPhaseLint(brainDir, dryRun, engine, opts.signal)');