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.

fix(ci): the second backend says it is unverified instead of pretending

esenginee5485f8a7d6c
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 06a5c50e9..0c722c114 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -364,11 +364,9 @@ jobs:
# bundled SwiftShader Vulkan (--use-webgpu-adapter=swiftshader), so a GPU-less
# runner verifies the second backend for real: WGSL twins, the reflected
# material path, the editor grid, and the async readback (material preview).
- - name: Run headless verify scenes (WebGPU / SwiftShader)
- # Which scenes run on the second backend, and the two whose tolerances
- # differ, are declared per scene in tools/renderScenes.mjs.
- run: node tools/verify-render.mjs --tier pr --backend webgpu --no-build
-
+ # No WebGPU step: Dawn gets no adapter on a GitHub runner, and the ten scenes
+ # that declare the second backend say so in tools/renderScenes.mjs (WEBGPU_GAP)
+ # rather than through a step that cannot pass.
# The native runtime, judged by pixels on a machine with no GPU.
#
# Until the desktop host existed the native runtime could only be checked on a
diff --git a/tools/check-render-scenes.mjs b/tools/check-render-scenes.mjs
index b8cd6cb33..6d226c949 100644
--- a/tools/check-render-scenes.mjs
+++ b/tools/check-render-scenes.mjs
@@ -11,7 +11,7 @@
import { existsSync, readFileSync } from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
-import { TIERS, SCENES, scenesAtTier, sceneFileOf } from './renderScenes.mjs';
+import { TIERS, SCENES, scenesAtTier, sceneFileOf, WEBGPU_GAP } from './renderScenes.mjs';
const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
const PUBLIC = path.join(ROOT, 'desktop', 'public');
@@ -86,5 +86,7 @@ if (problems.length) {
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(` ${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 622087582..4f68c2d17 100644
--- a/tools/renderScenes.mjs
+++ b/tools/renderScenes.mjs
@@ -22,6 +22,13 @@
/** Cheapest tier a scene runs at; tiers are cumulative. */
export const TIERS = ['pr', 'nightly'];
+/**
+ * Why nothing runs the second backend, stated rather than left as an empty step.
+ * The scenes below that declare `webgpu` say which are MEANT to carry it, and a
+ * machine with a GPU can (`--backend webgpu`) — no automation can.
+ */
+export const WEBGPU_GAP = 'Dawn gets no adapter on a CI runner: the step was skipped for 25 runs, then failed on all ten scenes';
+
/**
* Every pixel gate. `env` is handed to desktop/scripts/headless-verify.mjs
* verbatim — an empty one is the default sprite scene.