Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(upgrade): name the old-updater leaf in the orphan-module guard (GST-2688)
garrytan2a61a9c2353c
diff --git a/scripts/check-orphan-modules.mjs b/scripts/check-orphan-modules.mjsindex 4fd946fb5b..8715fa2d05 100644--- a/scripts/check-orphan-modules.mjs+++ b/scripts/check-orphan-modules.mjs@@ -66,6 +66,7 @@ const PERMITTED_TEST_ONLY = [{ path: 'src/core/progressive-batch/orchestrator.ts', reason: 'held: TODOS.md keeps an open item to re-compose progressive-batch with --workers on the 3 reindex sites (callers dropped in the v0.41.17.0 merge)' },{ path: 'src/core/progressive-batch/retrofit-wrap.ts', reason: 'held: progressive-batch re-compose item still open in TODOS.md' },{ path: 'src/core/progressive-batch/stage-report.ts', reason: 'held: progressive-batch re-compose item still open in TODOS.md' },+ { path: 'src/commands/sources-writer-movement.ts', reason: 'held: released updaters from about v0.60.150 to v0.60.248 import this path into the old process after the swap, so it stays a leaf no current runtime imports (GST-2688, test/upgrade-old-updater-leaf.test.ts)' },{ path: 'src/core/ingestion/daemon.ts', reason: 'held: ingestion cluster awaits a wire-up vs delete product decision (public gbrain/ingestion export, docs/guides/data-ingestion.md)' },{ path: 'src/core/ingestion/dedup.ts', reason: 'held: ingestion cluster awaits a wire-up vs delete product decision' },{ path: 'src/core/ingestion/skillpack-load.ts', reason: 'held: ingestion cluster awaits a wire-up vs delete product decision' },diff --git a/test/upgrade-old-updater-leaf.test.ts b/test/upgrade-old-updater-leaf.test.tsindex cd6d58f324..dee64aaff1 100644--- a/test/upgrade-old-updater-leaf.test.ts+++ b/test/upgrade-old-updater-leaf.test.ts@@ -18,6 +18,7 @@*/import { describe, expect, test } from 'bun:test';import { resolve } from 'node:path';+import { MOVEMENT_SUPERVISOR_STEP } from '../src/commands/sources-writer-movement.ts';const REPO_ROOT = resolve(import.meta.dir, '..');@@ -29,6 +30,7 @@ describe('the path old updaters import after the swap', () => {expect(r.exitCode, r.stderr.toString()).toBe(0);const out = JSON.parse(r.stdout.toString().trim().split('\n').pop()!) as { step: string; loaded: string[] };expect(out.loaded.map(f => f.slice(REPO_ROOT.length + 1)).sort()).toEqual(['src/commands/movement-step.ts', 'src/commands/sources-writer-movement.ts']);+ expect(out.step).toBe(MOVEMENT_SUPERVISOR_STEP);expect(out.step).toBe('after restarting serve and the workers, run: gbrain sources writer movement');}, 60_000);});