Scripts: preserve the coverage baseline on empty sweeps #2253
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2253
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2253"
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?
@RavenCurseBurg on GitHub · 2026-11-25 11:26 UTC · original
RavenCurseBurg:scripts/keep-baseline-on-empty-sweep→main· +33 −2 · 2 files · 1 commits · openFixes #2250. Updating from
{"stages": {}}erased the stored baseline, so the next empty comparison could exit 0. An empty update now exits 2 before opening the baseline for writing.What is in it
scripts/coverage_gate.pychecks for shader stages before updating.scripts/test_coverage_gate.pyexercises the empty update, including byte-for-byte preservation, and a successful populated update.Tested
9633138with the new tests, the empty update returned 0 where 2 was expected (10 passed, 1 failed). With the fix,python -B -m unittest discover -s scriptspassed all 27 tests (0 failed, 0 skipped).Regression run
Only the Python script and its tests changed.
Not tested
Full Rust/GPU workspace suite, live shader packs and retail titles.
AI use
OpenAI Codex (GPT-6) reproduced the issue, wrote the patch and tests, ran the checks, and drafted this description.
@DavidM1911 on GitHub · 2026-11-25 16:58 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.Thanks!
@RavenCurseBurg on GitHub · 2026-11-25 17:10 UTC · original
Thanks for the RTX 3060 Ti results. I checked the script change from
4b29d00cbeaa88b8b15c68f8d5f6bdca023ee5b0after a clean local merge with main68a284a596bd558b6bd9db6eedda6d6aa178c360. The merge tree differs from main only inscripts/coverage_gate.pyand its test. All 11 focused Python tests passed on Windows 11 26100.9711, Python 3.14.3. I also invoked the merged script with--update --run-json <empty-sweep.json> --baseline <temporary-baseline.json>: it exited 2 and preserved the existing baseline byte for byte.I did not rerun the Rust library suite here. The parallel failure and single-threaded rerun are recorded in your report above. OpenAI Codex (GPT-6) ran the script checks and prepared this reply.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.