Launch QA browsers on SwiftShader where there is no Metal

The shared launcher always asked for ANGLE's Metal backend, which exists
only on macOS; on CI's Linux runners WebGL failed and the Street Level gate
never saw the app start. The default is now Metal on macOS and SwiftShader
elsewhere; QA_ANGLE still overrides it.
This commit is contained in:
German Khokhlov committed 2026-11-11 15:55:12 +04:00
1 parent 02ad2d045a
commit ab5c593ab6
3 files changed
+24 -5

No files matched your search

+7 -2
View File
@@ -27,7 +27,12 @@ import {
STRICT_TILE_HOSTS,
} from './qa-map-policy.mjs';
import { createMissLoader, tileCacheFile } from './qa/tileCache.mjs';
import { closeBrowser, diagnoseExit, exitAfterFlush } from './qa/browser.mjs';
import {
closeBrowser,
diagnoseExit,
exitAfterFlush,
qaAngle,
} from './qa/browser.mjs';
import { DAYTIME, shiftTime } from './qa/time.mjs';
import {
PLANESPOTTERS_EMPTY_BODY,
@@ -78,7 +83,7 @@ export const RESERVED_PORTS = Object.freeze([
.split(',').map((port) => port.trim()).filter(Boolean),
]);
/** Chrome flags every scenario's browser starts with (the GPU path). */
export const CHROME_ARGS = Object.freeze([`--use-angle=${process.env.QA_ANGLE || 'metal'}`, '--enable-gpu']);
export const CHROME_ARGS = Object.freeze([`--use-angle=${qaAngle()}`, '--enable-gpu']);
/** The values of --layers=a,b and --evidence=FILE (null when absent). */
export function strictArguments(argv = process.argv) {