Scripts: require numeric crash and device removal counts #635
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!635
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-635"
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?
@mjnhbg3 on GitHub · 2026-11-24 02:44 UTC · original
mjnhbg3:codex/pr-smoke-counters→main· +74 −1 · 3 files · 1 commits · openMissing or malformed
crashesanddevice removalsfields were treated as zero by the PR checker. Require decimal counts before accepting a clean PR run. Leading-zero counts remain valid, and a crashing main baseline is still allowed.This changes scripts and CI only; no game files or retail smoke runs are required.
What is in it
scripts/pr_check.py: reject absent, empty, negative or malformed PR counters; handle long decimal values without integer conversion limits.scripts/test_pr_check_smoke_counters.py: synthetic descriptions covering both counters, zeros, positive counts, malformed values, crashing baselines and script exemptions..github/workflows/ci.yml: run these tests before the Rust build.Tested
3db536e.python -B -m unittest discover -s scripts -p test_pr_check_smoke_counters.py -v: 7 passed. On unchanged main, the same tests expose 22 falsely accepted subcases and 3 integer-conversion errors.cargo build --workspace;cargo test --workspace --no-fail-fast -- --test-threads=1 --nocapture: 686 passed, 0 failed, 41 ignored. Four runtime skips:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64);test_title_draws_with_a_root_signature_under_the_debug_layer,uploads_start_from_each_subresources_state(missing debug layer).XCL_ADAPTER=warp:scripts/test.ps1 --skip test_title_runs_and_game_folder_is_untouched --nocapture: 685 passed, 0 failed, 41 ignored; 88 runtime skips, one filtered test. Skips are not hardware coverage.git diff --check: passed.Regression run
Not required: scripts, checker tests and workflow only; no runtime files change.
Not tested
AI use
gpt-6.1-sol: found and reproduced the bug, implemented the fix and fixtures, reviewed the diff and ran local checks.@RandomGithub12309 on GitHub · 2026-11-24 04:39 UTC · original
Independent test report and review of
10ffbd908408951810df13faf9c7e775d8921319:Tested
python -B -m unittest discover -s scripts -p test_pr_check_smoke_counters.py -v→ 7 tests passed (OK,0.003s)python -B -m unittest discover -s scripts -p "test_*.py" -v→ 7 tests passed (OK,0.003s)Review
re.fullmatch(r"[0-9]+", value)cleanly rejects missing, empty, negative, signed, non-decimal, and Unicode\ddigits without integer-conversion limits, while keeping crashingmainbaselines allowed. Minor note:.github/workflows/ci.ymltargets-p test_pr_check_smoke_counters.pyrather than-p "test*.py". Found no bugs.Not tested
pull_request_targetworkflow executionAI use
10ffbd9, reviewed the diff, ran the unit tests, and wrote this report.@futurepro62 on GitHub · 2026-11-24 04:44 UTC · original
Tested exact head
10ffbd9.Tested
cd scripts; python -m unittest test_pr_check_smoke_counters -v: Ran 7 tests, OK.3db536e'spr_check.py:FAILED (failures=22, errors=3). So the tests catch what the PR changes.Not tested
ci.ymlstep on a runner (only the command it runs, locally), thePR checksworkflow on a real PR.AI use
@DavidM1911 on GitHub · 2026-11-25 12:43 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.