Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

ci(verify): the second backend gets one scene and its own sandbox off

esengine172457ad5497
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b3f342ad8..db6254cf9 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -323,11 +323,24 @@ jobs:
# --no-build: the renderer bundle is already built two steps up.
run: node tools/verify-render.mjs --tier pr --no-build
- # No WebGPU step, and the reason has moved on from e5485f8a7's. Installing
- # `libvulkan1` + `mesa-vulkan-drivers` does put eight ICDs on the runner,
- # lavapipe's among them, and Dawn then comes up — the failure is no longer no
- # adapter but the GPU process dying before any scene draws, on every retry.
- # WEBGPU_GAP carries what a next attempt starts from.
+ # Third attempt at the second backend, starting from what the first two bought:
+ # ICDs are not the missing half (Dawn came up with mesa's eight installed),
+ # the GPU process is — it died before any scene drew, on every retry. Two
+ # things are new. The GPU process runs its own sandbox, which
+ # ELECTRON_DISABLE_SANDBOX does not reach, so it is disabled in the harness;
+ # and the adapter asked for is Electron's own bundled SwiftShader, which is
+ # what 85 scenes passed on locally, where the last run took mesa's lavapipe.
+ #
+ # ONE scene, because the open question is whether the process comes up at all
+ # — the rest is 90 more of the same answer. continue-on-error while this is a
+ # question and not a guard: a step that has never been green cannot gate
+ # anyone's push, and its log is what a fourth attempt would start from. It
+ # comes off, and the scene list grows, once it is green twice in a row.
+ - name: Second backend, one scene (informational)
+ continue-on-error: true
+ env:
+ ESTELLA_VERIFY_WEBGPU_ADAPTER: swiftshader
+ run: node tools/verify-render.mjs --only sprite-default --backend webgpu --no-build
- name: Run MCP end-to-end
working-directory: desktop
diff --git a/desktop/scripts/headless-verify.mjs b/desktop/scripts/headless-verify.mjs
index d9e8c4615..b349c27ba 100644
--- a/desktop/scripts/headless-verify.mjs
+++ b/desktop/scripts/headless-verify.mjs
@@ -61,6 +61,10 @@ const DEPTH_LAYERS = process.env.ESTELLA_VERIFY_DEPTH_LAYERS ?? '';
// Headless / GPU-less (CI) WebGL2 falls back to SwiftShader; harmless with a GPU.
app.commandLine.appendSwitch('enable-unsafe-swiftshader');
+// The GPU process runs its own sandbox, which ELECTRON_DISABLE_SANDBOX does not
+// reach: on a runner with no device it died before any scene drew, on every
+// retry. Harmless with a GPU — this is a headless verifier, not a shipped app.
+app.commandLine.appendSwitch('disable-gpu-sandbox');
// Pins the profile for anything that goes through the compositor (a screenshot
// for a human). The pixel assertions do not: a composited read is colour
// managed, turning rgb(0,255,0) into rgb(58,254,32) switch or no switch.
diff --git a/tools/check-render-scenes.mjs b/tools/check-render-scenes.mjs
index f9f86cb3a..ae2320ea4 100644
--- a/tools/check-render-scenes.mjs
+++ b/tools/check-render-scenes.mjs
@@ -88,6 +88,6 @@ const byTier = TIERS.map((t) => `${t} ${scenesAtTier(t).length}`).join(' / ');
const weak = SCENES.filter((s) => s.rendersOnly);
console.log(`check-render-scenes: ${SCENES.length} pixel gate(s) with a scene CI can find — ok (${byTier})`);
const gpu = SCENES.filter((s) => s.webgpu);
-console.log(` ${gpu.length} declare the second backend, which nothing runs: ${WEBGPU_GAP}`);
+console.log(` ${gpu.length} declare the second backend: ${WEBGPU_GAP}`);
console.log(` ${SCENES.length - weak.length} probe pixels; ${weak.length} only assert that something drew:`);
for (const s of weak) console.log(` ${s.id}: ${s.rendersOnly}`);
diff --git a/tools/renderScenes.mjs b/tools/renderScenes.mjs
index 6b338065d..f26fc9312 100644
--- a/tools/renderScenes.mjs
+++ b/tools/renderScenes.mjs
@@ -26,8 +26,9 @@ export const TIERS = ['pr', 'nightly'];
* runner would use. On a runner given `libvulkan1` + `mesa-vulkan-drivers` Dawn
* finds an adapter and the GPU process then dies before drawing — the sandbox is
* the next thing to try. Only the boot log names the adapter. */
-export const WEBGPU_GAP = 'no step runs these on CI; all 85 passed on SwiftShader on 2026-08-17'
- + ' (`--tier nightly --backend webgpu`)';
+export const WEBGPU_GAP = 'CI runs ONE of them, informationally, while whether the GPU'
+ + ' process comes up there is still the open question; all 85 passed on this'
+ + ' machine\'s SwiftShader on 2026-08-17 (`--tier nightly --backend webgpu`)';
/**
* Every pixel gate. `env` is handed to desktop/scripts/headless-verify.mjs