fix(server): plan 3a re-review follow-ups — plugin boot activation and the airports backfill inside a request context; the supervisor answers the child before failing closed; BOOT-SWEEP-001 drives the real boot hooks; ws adapter seam pinned

This commit is contained in:
jubnl
2026-09-22 17:39:38 +02:00
parent 761cd14b2b
commit 46bb11f508
10 changed files with 370 additions and 54 deletions
@@ -28,10 +28,18 @@ vi.mock('../../src/websocket', () => ({ broadcast: vi.fn(), broadcastToUser: vi.
// registrar inert so a bootstrap test never schedules real jobs or runs boot
// sweeps against the real uploads/data dirs. The gate itself is covered by
// tests/integration/scheduler-gate.test.ts.
//
// runOnBoot (task-6-rereview.md M1): AirportsService's boot backfill has no
// isEnabled() gate of its own (unlike the seven job providers above, which
// all check isEnabled() before ever reaching runOnBoot, so they never call
// this mock's method at all) — it calls runOnBoot() unconditionally, so this
// double needs one too. A no-op, not a pass-through: "the registrar inert"
// above means no boot sweep runs in this harness, full stop.
vi.mock('../../src/nest/scheduling/cron-registrar.service', () => ({
CronRegistrarService: class {
isEnabled() { return false; }
register() { return false; }
async runOnBoot() { /* inert — see comment above */ }
unregister() {}
get jobCount() { return 0; }
onApplicationShutdown() {}