Scripts: reject failed sweeps before updating the coverage baseline #2265
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!2265
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2265"
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?
@Creaa on GitHub · 2026-11-25 11:51 UTC · original
Creaa:scripts/coverage-gate-exit-2260→main· +28 −1 · 2 files · 1 commits · openA failed shader sweep can print valid JSON before it exits. The coverage gate used to accept that report and could overwrite the baseline with partial counts. Fixes #2260.
What is in it
--updatewith a valid report from a failed sweep. The test checks the baseline byte for byte.Tested
cc2f28a60f5ef079af7b9f359e5887a9f22f793a, Windows 11 build 26300, i7-13700F, RTX 4070 (617.14), rustc 1.100.0, debug.python -B -m unittest discover -s scripts -p test_*.pypassed all 26 tests. Both regression cases failed on the parent. With a real fixture subprocess, exit codes 0 and 7 produced gate exit codes 0 and 2 in both CLI modes..\scripts\test.ps1 --show-outputbuilt the workspace and rancargo test --workspace -- --test-threads=4 --show-output. Cargo reported 1250 passed, 0 failed, 46 ignored. The suite logged 27 GPU skips within the passing tests (20 wave64, 3 unsupported wave32 per-lane cases, 2 debug-layer cases, 1 heap-window case and 1 driver-cache case).Not tested
AI use
@RavenCurseBurg on GitHub · 2026-11-25 13:05 UTC · original · edited 2026-11-25 13:09 UTC
Tested
cc2f28a60f5ef079af7b9f359e5887a9f22f793aon Windows 11 24H2 (26100.9711), Python 3.14.3, i7-13700.Tested
python -B -m unittest discover -s scripts -p test_coverage_gate.py: 10 passed, 0 failed, 0 skipped.--validatepresent in the child arguments. For an empty stage map, updates returned 2 with either child exit 0 or 7 and preserved the baseline bytes in both cases. All six CLI expectations passed.Not tested
Real shader sweeps, Rust/GPU workspace tests or retail titles.
AI use
OpenAI Codex (GPT-6) ran the upstream tests, wrote the CLI integration fixture, compared the baseline bytes, and drafted this report.
@S1m0ne1997 on GitHub · 2026-11-25 14:00 UTC · original
Test report for
cc2f28a60f5ef079af7b9f359e5887a9f22f793a(this PR's head), for #1607.Tested
rustc 1.100.0 (0ef1bc386 2026-11-09)x86_64-pc-windows-msvc, debug.cargo build --workspace, thencargo test --workspace -- --test-threads=4at the head: 1250 passed, 0 failed, 46 ignored.a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu(no wave64),coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu(no wave64),cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu(no wave64),the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu(no wave64),a_per_lane_2d_or_3d_group_runs_on_the_gpu(no wave64),const_and_null_mask_operands_agree_with_hlsl_on_the_gpu(const_mask, wave64: no wave64),f16_programs_on_the_gpu(f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's)); f16 arithmetic, wave64: no wave64),f32_programs_on_the_gpu(f32 arithmetic, wave64: no wave64; f32 compares, wave64: no wave64),f64_programs_on_the_gpu(f64, wave64: no wave64),integer_programs_on_the_gpu(integer arithmetic, wave64: no wave64; integer carries, wave64: no wave64),mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu(mask_ff0_flbit, wave64: no wave64),gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows),pso_measurement_compiles_an_exact_synthetic_record(cannot disable the driver cache (Windows Developer Mode is required): L'applicazione ha richiesto un'operazione che dipende da un componente SDK mancante o non corrispondente. (0x887A002D)),test_title_draws_with_a_root_signature_under_the_debug_layer(no d3d12SDKLayers.dll),uploads_start_from_each_subresources_state(no D3D12 debug layer (L'applicazione ha richiesto un'operazione che dipende da un componente SDK mancante o non corrispondente. (0x887A002D))).Not tested
AI use: Claude Code with Claude Opus 5.5 ran the build, the suite and the regression run and wrote this report at my request.
@oni-swr on GitHub · 2026-11-25 14:09 UTC · original
CPU-only check of
cc2f28a60f5ef079af7b9f359e5887a9f22f793a(this PR's head), for #1607. This is a third report, after the two above.Tested
scripts/coverage_gate.py,scripts/test_coverage_gate.py, 2 files).python -B -m unittest discover -s scripts -p "test_*.py": 26 ran, 26 OK, on the exact head and on a no-commit merge of the head withmain06c9f55(the merge is clean and does not touchcoverage_gate.py).-p test_coverage_gate.py: 10 OK.main'scoverage_gate.pygives 10 run, 2 failures (the compare and the--updatecase: the baseline is rewritten and the exit code is not 2). With the PR's script they pass.Not tested
subprocess.run, so the gate's behaviour with a real failingxclprocess is covered by the other reports only.AI use
@safesearch77 on GitHub · 2026-11-25 16:28 UTC · original
Tested commit
cc2f28a60f5ef079af7b9f359e5887a9f22f793acleanly merged againstmain(0829441).Tested
Linux 7.3.5-2-cachyos x86_64), 13th Gen Intel Core i9-13900HX, NVIDIA GeForce RTX 4070 Laptop GPU (driver 620.73.04), Python 3.14.10 (CPU-only script tests).python3 -B -m unittest discover -s scripts -p 'test_*.py' -v: 26 passed, 0 failed, 0 skipped.FailedSweepTestsfails both subtests (compare and--update,failures=2) when run againstmain'sscripts/coverage_gate.py.--updatewith unmocked helper executables emitting valid stage JSON beforesys.exit(7)and beforeSIGSEGV-11): both returned exit code2, reported the exit code (7/-11) and stderr tail, and preservedbaseline.jsonbyte-for-byte.python3 scripts/pr_check.py --localon this PR's description and file list:description ok(exit0).Not tested
cargo test --workspace), D3D12 runtime, and retail shader packs (this PR modifiesscripts/coverage_gate.pyandscripts/test_coverage_gate.pyonly).AI use
@DavidM1911 on GitHub · 2026-11-25 16:53 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
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.