Repository navigation
test: Check the GPU status light in the packaged Windows and macOS smoke tests (#941) - #954
Conversation
c09df0a to
ad91cd2
Compare
GetStats.gpuAcceleration must be present with a real adapter, not a bare API name, and the startup log must carry the GPU state line. The Windows and macOS paths of the GPU status light have never run. Refs #941
…oke tests (GREEN) packaged-startup.py now requires GetStats.gpuAcceleration with a real adapter (not OpenGL, Direct3D 11 or Metal) and the startup GPU log line. release-rust.yaml's Windows x64/arm64 and macOS arm64/x86_64 smoke jobs already run it against the real packages, so the light's D3D11 and macOS OpenGL paths now run on hosted runners. Refs #941
ad91cd2 to
e000e7e
Compare
|
I cancelled the manual full release run on this branch (run 38876819979). It held 14 runners at once (all platform builds, AppImage, Flatpak and the full release gate) and left PR CI at 1 running job and 11 queued. Per #992, full app builds are a last resort and run at release and in the nightly run, not to validate a PR. To prove the packaged GPU smoke test, either:
|
|
Maintainer decision: merge on green PR checks and take the Windows and macOS evidence from the next scheduled master release ( Three verify-only dispatches on this branch couldn't get there. In 38834698892 I cancelled it myself to free runners. In 38867987465, the Windows builds were cancelled and macOS failed on the clang error fixed in #1035. In 38876819979, the Windows and macOS builds were cancelled externally at 09:05:33, with fail-fast off and no failing sibling. I'll check the nightly's smoke jobs and fix forward if they fail. |
Fixes #941 (part of #939).
The GPU status light's Windows path (D3D11
gs_enum_adapters) and macOS path (GetGlGetStringProcinplatform-osx.mm) have never run. #846 showed that compiling plus unit tests is not enough.Change
test/packaged-startup.pyalready launches the real release packages with a saved profile inrelease-rust.yaml: Windows x64 and arm64, and macOS arm64 and x86_64, on native runners. It now also:GetStats.gpuAccelerationwith a known state, adetectedGpuslist, and a real adapter, notOpenGL,Direct3D 11orMetal;GPU acceleration:log line, on every platform (before, only Windows logs were read).Hosted runners have no GPU (Windows renders through WARP), so any state passes. The point is that the light's code runs and reads a real adapter. Seeing green needs a GPU runner, which is out of scope.
It adds no new jobs, builds or workflow files. The smoke jobs only run in the daily release gate or a
verify_onlydispatch, so PR CI does not get slower.RED → GREEN
test: Packaged startup must report a real GPU adapter): 5 new tests inci/test_packaged_startup.pyfailed. Before frontend: Fix the GPU light reading "OpenGL" as the adapter, and the startup red flash (#846) #929 the frontend sentadapter: "OpenGL", whichvalidate_gpu_statusnow rejects (testtest_a_bare_api_name_is_not_an_adapter).ci/test_packaged_startup.pypasses 21 of 21.