From cb4ce29a6be745789a788a8b8591cbd0ff31f1e2 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Tue, 3 Nov 2026 15:23:56 +0000 Subject: [PATCH] fix(ci): inventory the ended-question runtime test's package build #3484 added packages/ui-react/tests/ended-question-runtime.test.ts with a runtimePackageBuild hook but did not list it in scripts/runtime-test-builds.ts, so tests/runtime-build-selection.test.ts fails on main (expected 18 hooks, found 19). Co-Authored-By: Claude Opus 5.5 --- scripts/runtime-test-builds.ts | 2 +- tests/runtime-build-selection.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/runtime-test-builds.ts b/scripts/runtime-test-builds.ts index dc856bcabb..68f624e3cb 100644 --- a/scripts/runtime-test-builds.ts +++ b/scripts/runtime-test-builds.ts @@ -4,7 +4,7 @@ import { isAbsolute, join, resolve } from "node:path"; export const runtimeTestBuilds: Readonly> = Object.fromEntries([ "answer-delivery", "approval-recovery", "artifact-recovery", "association-signout", "auth-expiry", "chat-focus", - "connection-continuity", "draft", "external-speech", "html-preview", "local-work", "parallel-sessions", "scratch-links", "tracker", "turn-journal", "untrusted-marks", + "connection-continuity", "draft", "ended-question", "external-speech", "html-preview", "local-work", "parallel-sessions", "scratch-links", "tracker", "turn-journal", "untrusted-marks", ].map(name => [`packages/ui-react/tests/${name}-runtime.test.ts`, ["ui-react", "ui-server", "core"]])); const special: Readonly> = { "packages/ui-react/tests/haiku-model-runtime.test.ts": ["ui-react"], diff --git a/tests/runtime-build-selection.test.ts b/tests/runtime-build-selection.test.ts index 40ba5afdac..334a5f2c54 100644 --- a/tests/runtime-build-selection.test.ts +++ b/tests/runtime-build-selection.test.ts @@ -9,7 +9,7 @@ const root = resolve(import.meta.dir, ".."); test("every runtime package hook has one inventoried actual forward closure and no boolean bypass", async () => { const directory = join(root, "packages/ui-react/tests"); const hooks = readdirSync(directory).filter(name => name.endsWith(".test.ts") && readFileSync(join(directory, name), "utf8").includes("runtimePackageBuild(")); - expect(hooks).toHaveLength(18); + expect(hooks).toHaveLength(19); expect(hooks.map(name => `packages/ui-react/tests/${name}`).sort()).toEqual(Object.keys(runtimeBuildInventory).sort()); for (const file of hooks) { const text = readFileSync(join(directory, file), "utf8");