Scripts: require numeric crash and device removal counts #635

Open
github-bot wants to merge 1 commit from github-bot/gh-635 into main AGit
Owner

@⁠mjnhbg3 on GitHub · 2026-11-24 02:44 UTC · original
mjnhbg3:codex/pr-smoke-counters → main · +74 −1 · 3 files · 1 commits · open

Missing or malformed crashes and device removals fields 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

  • Windows 11 build 26200, Intel Core Ultra 7 265K, RTX 5070 Ti / NVIDIA 616.64, Python 3.11.9, Rust 1.97.1 MSVC; debug. Based on main 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).
  • CI path with 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

  • Live GitHub Actions execution before opening the PR.
  • AMD, the missing debug-layer cases, optional game-data tests, and a completed four-thread hardware suite. Earlier four-thread GPU runs stalled; hardware validation above used one test thread.

AI use

  • Codex with gpt-6.1-sol: found and reproduced the bug, implemented the fix and fixtures, reviewed the diff and ran local checks.
**@⁠mjnhbg3** on GitHub · 2026-11-24 02:44 UTC · [original](https://github.com/xcl-dev/xcl/pull/635) `mjnhbg3:codex/pr-smoke-counters` → `main` · +74 −1 · 3 files · 1 commits · open Missing or malformed `crashes` and `device removals` fields 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** - Windows 11 build 26200, Intel Core Ultra 7 265K, RTX 5070 Ti / NVIDIA 616.64, Python 3.11.9, Rust 1.97.1 MSVC; debug. Based on main `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). - CI path with `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** - Live GitHub Actions execution before opening the PR. - AMD, the missing debug-layer cases, optional game-data tests, and a completed four-thread hardware suite. Earlier four-thread GPU runs stalled; hardware validation above used one test thread. **AI use** - Codex with `gpt-6.1-sol`: found and reproduced the bug, implemented the fix and fixtures, reviewed the diff and ran local checks.
Missing or malformed PR smoke counters were treated as zero. Validate their decimal format before checking for a clean run, and avoid integer conversion limits for long values. Add synthetic regression cases and run them before the Rust CI build.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:27:59 +00:00
Author
Owner

@⁠RandomGithub12309 on GitHub · 2026-11-24 04:39 UTC · original

Independent test report and review of 10ffbd908408951810df13faf9c7e775d8921319:

Tested

  • OS / Python: Windows 11 Build 26300, Python 3.14
  • Commands:
    • 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 \d digits without integer-conversion limits, while keeping crashing main baselines allowed. Minor note: .github/workflows/ci.yml targets -p test_pr_check_smoke_counters.py rather than -p "test*.py". Found no bugs.

Not tested

  • Live GitHub Actions pull_request_target workflow execution

AI use

  • Antigravity with Gemini 4 Hydrogen — checked out 10ffbd9, reviewed the diff, ran the unit tests, and wrote this report.
**@⁠RandomGithub12309** on GitHub · 2026-11-24 04:39 UTC · [original](https://github.com/xcl-dev/xcl/pull/635#issuecomment-7122224035) Independent test report and review of `10ffbd908408951810df13faf9c7e775d8921319`: **Tested** - OS / Python: Windows 11 Build 26300, Python 3.14 - Commands: - `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 `\d` digits without integer-conversion limits, while keeping crashing `main` baselines allowed. Minor note: `.github/workflows/ci.yml` targets `-p test_pr_check_smoke_counters.py` rather than `-p "test*.py"`. Found no bugs. **Not tested** - Live GitHub Actions `pull_request_target` workflow execution **AI use** - Antigravity with Gemini 4 Hydrogen — checked out `10ffbd9`, reviewed the diff, ran the unit tests, and wrote this report.
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 04:44 UTC · original

Tested exact head 10ffbd9.

Tested

  • Windows 11 Home 26300, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here), Python 3.14.3.
  • cd scripts; python -m unittest test_pr_check_smoke_counters -v: Ran 7 tests, OK.
  • Control: the same test file against the parent 3db536e's pr_check.py: FAILED (failures=22, errors=3). So the tests catch what the PR changes.

Not tested

  • The new ci.yml step on a runner (only the command it runs, locally), the PR checks workflow on a real PR.

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and the fixture runs and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 04:44 UTC · [original](https://github.com/xcl-dev/xcl/pull/635#issuecomment-7122290268) Tested exact head `10ffbd9`. **Tested** - Windows 11 Home 26300, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here), Python 3.14.3. - `cd scripts; python -m unittest test_pr_check_smoke_counters -v`: Ran 7 tests, OK. - Control: the same test file against the parent `3db536e`'s `pr_check.py`: `FAILED (failures=22, errors=3)`. So the tests catch what the PR changes. **Not tested** - The new `ci.yml` step on a runner (only the command it runs, locally), the `PR checks` workflow on a real PR. **AI use** - Claude Code (Claude Opus 5.5) ran the tests and the fixture runs and wrote this report. I checked it before posting.
Author
Owner

@⁠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!

**@⁠DavidM1911** on GitHub · 2026-11-25 12:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/635#issuecomment-7162772836) 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!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/635/head:github-bot/gh-635'
git switch 'github-bot/gh-635'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-635'
git switch 'github-bot/gh-635'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-635'
git switch 'github-bot/gh-635'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-635'
git switch 'main'
git merge --squash 'github-bot/gh-635'
git switch 'main'
git merge --ff-only 'github-bot/gh-635'
git switch 'main'
git merge 'github-bot/gh-635'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.