From 747e7299141cec0b03774c427f579889d5088d20 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Tue, 13 Oct 2026 18:24:40 +0800 Subject: [PATCH] test(release): validate only the selected preflight job Scope the steps schema to the release job whose preflight is executed, allowing unrelated reusable-workflow jobs such as qualification. Preserve all four valid and invalid metadata execution checks. Reproduced on main ec3db3745: 35 passed, 4 failed. After the fix: 104 release and CI boundary tests pass; check:fast and format:check pass. --- tests/boundary/filesystem/releaseCheckpoint.test.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/boundary/filesystem/releaseCheckpoint.test.ts b/tests/boundary/filesystem/releaseCheckpoint.test.ts index e3d425810..d511a6a58 100644 --- a/tests/boundary/filesystem/releaseCheckpoint.test.ts +++ b/tests/boundary/filesystem/releaseCheckpoint.test.ts @@ -649,9 +649,8 @@ it.skipIf(process.platform === "win32").each([ const sourceSha = await candidate(f, valid ? "6.0.0" : "5.1.0"); const workflow = z .object({ - jobs: z.record( - z.string(), - z.object({ + jobs: z.object({ + [job]: z.object({ steps: z.array( z.object({ name: z.string().optional(), @@ -659,7 +658,7 @@ it.skipIf(process.platform === "win32").each([ }), ), }), - ), + }), }) .parse( parse(