Repository navigation
ci: Run the WASM WebGPU lane on hosted macOS - #25071
MartinZikmund wants to merge 8 commits into
Conversation
Tells a GPU-backed run from one that fell back to SwiftShader. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016JuV6BPjWEEXzuX2RUEE3z
Use python3, the BSD-compatible base64 and the macOS core count, and launch Chrome directly in the agent's desktop session instead of xvfb. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016JuV6BPjWEEXzuX2RUEE3z
Its agents expose a paravirtual Metal GPU; the Linux agents only had Chrome's SwiftShader, at 2-4 frames per second across 12 groups. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016JuV6BPjWEEXzuX2RUEE3z
A job in another stage reads a Setup output as stageDependencies.Setup.DetermineScope.outputs['SetScope.X']; the stage-level path these used never resolved, so the gated WebGPU lanes and the Linux screenshot job were skipped on every pull request even when the scope asked for them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016JuV6BPjWEEXzuX2RUEE3z
Chrome on the hosted macOS agents handed the page SwiftShader although its own services selected the Apple paravirtual Metal device. Log the adapter under several flag sets, and run the lane with the GPU blocklist ignored. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016JuV6BPjWEEXzuX2RUEE3z
The adapter probe showed Chrome hands the page the Apple paravirtual adapter (fallback=false) only once the GPU blocklist is ignored and the software rasterizer is disabled; otherwise it falls back to SwiftShader. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016JuV6BPjWEEXzuX2RUEE3z
The first launch never ran the page within the canary window, and every relaunch then failed GPU init: killall left the helper processes (GPU included) alive and the profile was reused. Without the software fallback that left WebGPU with no adapter. Kill every Chrome process and give each attempt its own profile. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016JuV6BPjWEEXzuX2RUEE3z
A fresh profile was not enough: after a SIGKILL every relaunch still failed GPU init, while the probe, which lets Chrome shut down, got the Apple adapter launch after launch. Terminate Chrome and only kill what is left, and spend the first launch of the step, which never navigates in time, on a blank page. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016JuV6BPjWEEXzuX2RUEE3z
Parked: findings so farMoving the WASM WebGPU lane to hosted macOS does not work reliably yet. Parking this as a draft; the scope-gate fix it surfaced is split out to #25088. What works
Without those flags Chrome treats the paravirtual GPU as blocklisted and gives WebGPU its SwiftShader fallback (build 237869: What breaksIn the actual test step, the app reached the Apple adapter in 1 of 16 groups (237913 group 1; my next push cancelled that run before it finished). Every other launch:
Tried, none fixed (2):
Open question: why the probe step relaunches fine (it stops Chrome with SIGTERM between launches) while the test step does not. Next diagnostic, if picked up again: run the probe inside the test step with the exact test flags ( Also in this branch (still useful if revived)
|
|
|
GitHub Issue: related to #25069
PR Type:
🏗️ Build or CI related changes
What changed? 🚀
The WASM WebGPU runtime-test lane ran on GPU-less Linux agents, where Chrome only offers its SwiftShader adapter: 2-4 frames per second, multi-second stalls, 12 groups to fit the timeout, and a steady supply of slow-frame flakes. Mesa's lavapipe is no way out there; Chrome kept choosing SwiftShader even with the lavapipe ICD forced.
The hosted macOS agents, however, expose a paravirtual Metal GPU (the desktop macOS WebGPU lane already logs
adapter='Apple Paravirtual device' backend=Metal), and Chrome's WebGPU on macOS runs on Metal. This PR moves the lane there:.azure-devops-tests-webassembly.yml: anosparameter;macOSpicks the hosted macOS image and skips the xvfb/apt/Chrome install steps (the image ships Chrome).wasm-run-skia-runtime-tests.sh: portable to macOS (python3, BSDbase64, core count), launches Chrome directly in the agent's desktop session instead of under xvfb, and logs the display/GPU (system_profiler).stageDependencies.Setup.outputs['DetermineScope.SetScope.X'], which never resolves inside a job; the job form isstageDependencies.Setup.DetermineScope.outputs['SetScope.X']. Since 80c153d these lanes were skipped on every PR, including ones the scope script flagged (WebGpuTestsRequired requires tests: true, yet all four skipped in build 237860).WebGpuInit.tslogs the adapter Chrome hands out, so each run shows whether it is GPU-backed (fallback=false) or not.Draft: a trial. To verify on this PR's run before it is ready:
WebGpuInit: adapter … fallback=false(Apple/Metal, not SwiftShader) in the job logs.PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code
https://claude.ai/code/session_016JuV6BPjWEEXzuX2RUEE3z