From ea85fce64b18b758205f12e2ac058b892db9c673 Mon Sep 17 00:00:00 2001 From: 4gray Date: Tue, 15 Sep 2026 15:16:23 +0200 Subject: [PATCH] test(packaging): expect the nightly-version prerequisite in the build workflow graph Co-Authored-By: Claude Fable 5.1 --- .../configure-linux-frame-copy-build.test.mjs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/packaging/configure-linux-frame-copy-build.test.mjs b/tools/packaging/configure-linux-frame-copy-build.test.mjs index 943b046ed..6ceb14c20 100644 --- a/tools/packaging/configure-linux-frame-copy-build.test.mjs +++ b/tools/packaging/configure-linux-frame-copy-build.test.mjs @@ -440,7 +440,9 @@ test('keeps non-Linux builds independent from the Linux runtime prerequisite', ( assert.ok(crossPlatformJob); assert.ok(linuxJob); - assert.equal(crossPlatformJob.needs, undefined); + // The nightly-version job is a cheap, platform-neutral prerequisite; the + // Linux runtime build must stay out of the non-Linux dependency list. + assert.deepEqual(crossPlatformJob.needs, 'nightly-version'); assert.deepEqual( crossPlatformJob.strategy.matrix.include.map(({ os, arch }) => ({ os, @@ -453,7 +455,10 @@ test('keeps non-Linux builds independent from the Linux runtime prerequisite', ( ] ); assert.equal(crossPlatformJob.strategy['fail-fast'], false); - assert.equal(linuxJob.needs, 'linux-embedded-mpv-runtime'); + assert.deepEqual(linuxJob.needs, [ + 'linux-embedded-mpv-runtime', + 'nightly-version', + ]); assert.deepEqual( linuxJob.strategy.matrix.include.map( ({ os, arch, linux_profile: profile }) => ({ @@ -475,6 +480,7 @@ test('keeps non-Linux builds independent from the Linux runtime prerequisite', ( assert.equal(linuxJob.strategy['fail-fast'], false); assert.deepEqual(linuxJob.steps, crossPlatformJob.steps); assert.deepEqual(buildWorkflowConfig.jobs['create-release'].needs, [ + 'nightly-version', 'build-cross-platform', 'build-linux', ]);