Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/cloudflare-acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
12 changes: 11 additions & 1 deletion scripts/integration-e2e.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down
Loading