ci: add a coverage-only dispatch mode #3690
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3690"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-01T01:50:49Z.
The coverage dashboard is only republished by a full
mainrun, so refreshing it after a coverage change waits for the whole debug suite and the/O2job. Aworkflow_dispatchrun can now setcoverage_only: true:build-and-testbuilds the dev preset and runs only the tests that writeform_coveragerecords:cpu_*,pixel_aot_*,compute_store_aot_*andmesh_entry_aot_*, with the hardware variants excluded as in the normal run.build-and-test-release, the standalone GPU-check packaging and the SPIR-V WARP gate are skipped.publish-coveragekeeps itsmain-only gate.The selection includes the x64 fixtures because the published chart measures x64 as well as gfx1013/gfx1030; a shader-only run would publish a lower x64 figure.
tests/ci_coverage_mode_check.pyreads the workflow andCMakeLists.txtand fails when a record-writing test, or a member of a coverage family, falls outside the ctest selection; it also asserts publication still requiresR0Y00/Xbox2Windowsandrefs/heads/main.Push and pull-request runs keep the full suite.
publish-coveragestill requiresbuild-and-testto succeed and accepts a skipped/O2job only for the coverage-only dispatch.Validation:
python -B tests/ci_coverage_mode_check.py -v— 4 tests pass.python -B tests/run_checks_fragments_check.py— ok.python -B tests/docs_links_check.py— 198 files, 765 links.git diff --checkclean.The normal Windows path is exercised by this PR's CI. The coverage-only branch itself is exercised by the next dispatch.
Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-01T03:11:05Z.
Review: COMMENTED
Reviewed
28b8ecf0by reading the workflow and runningtests/ci_coverage_mode_check.py.Verdict: approve. The dispatch input, the coverage-only ctest selection, the skipped
/O2and GPU-check steps, and the publication gate are consistent. The new check passes locally (4 tests).tests/ci_coverage_mode_check.pypins the input and the publish gate, but not the two guards that make the mode safe: the-E '_hardware$'exclusion in the coverage-only ctest command and thebuild-and-test-releaseskip condition. Removing either would still pass the check while running GPU tests on a runner without a GPU or paying for/O2. Assert both strings in the coverage-only section.github.event.inputs.coverage_onlyis the legacy string form. The typedinputs.coverage_onlycontext is the direct boolean and avoids a future reader wondering why a boolean input is compared with'true'; the current expression is still correct for aworkflow_dispatch.Checked, no finding:
COVERAGE_ONLYis false onpushandpull_request;-E '_hardware$'covers every hardware test name (there are no_hardware_*variants); the selection covers thecpu_,pixel_aot_,compute_store_aot_andmesh_entry_aot_families, and every literalFORM_COVERAGE_RECORDtest falls under those prefixes;publish-coverageallows a skippedbuild-and-test-releaseonly whenbuild-and-testsucceeded and the repository/ref/event gates still hold.