From 0cc3d34728f453919d8c89cd64839fdcdb4a6bce Mon Sep 17 00:00:00 2001 From: David Torcivia Date: Mon, 3 Aug 2026 23:14:14 -0400 Subject: [PATCH] Let the exercise skip a leg the target cannot run Run 15 got the whole media path working on a real Cloudflare deployment: the watermark burned, kept its BT.709 tags and source timecode, and the clean and burned renditions differ. Then it stopped on the marker export, which that target cannot do. Exports are node-only and not by oversight. The PDF report reads its font with node:fs, and the annotation compositor is sharp, a native module, so the export module cannot be loaded in an isolate at all -- and wrangler bundles dynamic imports, so deferring the import does not avoid it either. Making exports work there means the font as bytes and a compositor that is not sharp, which is real work and is tracked on its own. It is also not what this run exists to prove. The acceptance criterion is that a worker killed mid-encode has its job finished by another and the rendition plays, and blocking on an unrelated feature gap means never reaching it. So the exercise takes a flag, the acceptance run sets it, and the docker integration job does not: exports stay fully covered where they are supported. --- .github/workflows/cloudflare-acceptance.yml | 7 +++++++ scripts/integration-e2e.mjs | 12 +++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cloudflare-acceptance.yml b/.github/workflows/cloudflare-acceptance.yml index 5816c31..aef7109 100644 --- a/.github/workflows/cloudflare-acceptance.yml +++ b/.github/workflows/cloudflare-acceptance.yml @@ -261,6 +261,13 @@ jobs: ONELIGHT_E2E_URL: ${{ env.CI_URL }} ONELIGHT_E2E_WORKER_KILL: "1" ONELIGHT_E2E_COMPOSE_FILE: deploy/docker-compose.cf-workers.yml + # Exports do not run on this target: the PDF report reads its font + # with node:fs and the annotation compositor is sharp, a native + # module, so the export module cannot even be loaded in an isolate. + # That is a real gap, tracked separately; it is not what this run is + # here to prove, and blocking on it means never reaching the kill + # test that is. + ONELIGHT_E2E_SKIP_EXPORTS: "1" run: | # The tail runs in the FOREGROUND under `timeout`, and the exercise # runs behind it. The other way round produced a zero-byte log: diff --git a/scripts/integration-e2e.mjs b/scripts/integration-e2e.mjs index 8a67728..02d80ac 100644 --- a/scripts/integration-e2e.mjs +++ b/scripts/integration-e2e.mjs @@ -25,6 +25,8 @@ * another one; needs docker and a stack scaled to * at least three workers, and FAILS rather than * skips when it does not find them + * ONELIGHT_E2E_SKIP_EXPORTS when "1", skips the marker-export leg, for a + * target that cannot run exports (the Workers one) * ONELIGHT_E2E_COMPOSE_FILE compose file the kill leg drives (default * deploy/docker-compose.yml) * ONELIGHT_E2E_STATE_FILE when set, a JSON summary of what the run @@ -1162,7 +1164,15 @@ const main = async () => { proxyBytes, workDir, ); - await edlExportLeg(client, share, commentBody); + /* Exports are node-only today: the PDF report reads its font with + node:fs and the annotation compositor is sharp, a native module, so the + module cannot be loaded on the Workers target at all. Skipping the leg + there lets the run reach the thing it exists to prove -- a worker killed + mid-encode and the job finished by another -- instead of stopping at a + feature that deployment does not claim to have. */ + if (process.env.ONELIGHT_E2E_SKIP_EXPORTS === "1") + log("skipping the export leg: unsupported on this target"); + else await edlExportLeg(client, share, commentBody); await hdrLeg(client, project.id, workDir); if (process.env.ONELIGHT_E2E_WORKER_KILL === "1") await workerKillLeg(client, project.id, workDir, fontFile);