Scripts: expand test_pr_check coverage for smoke thresholds and asset rules #1229

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

@⁠plentilha on GitHub · 2026-11-24 13:24 UTC · original
plentilha:scripts/expand-pr-check-tests → main · +99 −0 · 1 files · 1 commits · open

Expands scripts/test_pr_check.py to cover untested policy branches in scripts/pr_check.py: case-insensitive banned model matching scoped to AI use, game-file and tests/data/ size limits, removed-file exemptions, and xcl-smoke regression thresholds and failure conditions.

What is in it

  • scripts/test_pr_check.py: added AssetAndModelPolicyTests and RegressionPolicyTests (4 new test methods covering 17 subtests/cases).

Tested

  • hardware (GPU + driver, CPU), Rust version, debug / release: NVIDIA GeForce RTX 3070 (driver 32.0.16.2124, wave32 only), Intel Core i7-9700K, Windows 11 x64, rustc 1.100.0, DXC 1.9.2602.17 (Windows SDK 10.0.26100.0), debug
  • python -m unittest discover -s scripts -p "test_*.py" -v: 13 passed, 0 failed
  • ./scripts/test.ps1: 741 passed, 0 failed, 41 ignored (SKIPPED GPU tests: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64))

Regression run

  • Not needed: test-only script change.

Not tested

  • GitHub Actions pull_request_target integration path (verified with local scripts/pr_check.py --local).

AI use

  • Antigravity (Gemini 4 Hydrogen): audited scripts/pr_check.py, wrote the additional unit tests and PR description, and ran both the Python and workspace test suites locally.
**@⁠plentilha** on GitHub · 2026-11-24 13:24 UTC · [original](https://github.com/xcl-dev/xcl/pull/1229) `plentilha:scripts/expand-pr-check-tests` → `main` · +99 −0 · 1 files · 1 commits · open Expands `scripts/test_pr_check.py` to cover untested policy branches in `scripts/pr_check.py`: case-insensitive banned model matching scoped to **AI use**, game-file and `tests/data/` size limits, removed-file exemptions, and `xcl-smoke` regression thresholds and failure conditions. **What is in it** - `scripts/test_pr_check.py`: added `AssetAndModelPolicyTests` and `RegressionPolicyTests` (4 new test methods covering 17 subtests/cases). **Tested** - hardware (GPU + driver, CPU), Rust version, debug / release: NVIDIA GeForce RTX 3070 (driver 32.0.16.2124, wave32 only), Intel Core i7-9700K, Windows 11 x64, rustc 1.100.0, DXC 1.9.2602.17 (Windows SDK 10.0.26100.0), debug - `python -m unittest discover -s scripts -p "test_*.py" -v`: 13 passed, 0 failed - `./scripts/test.ps1`: 741 passed, 0 failed, 41 ignored (SKIPPED GPU tests: `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64)) **Regression run** - Not needed: test-only script change. **Not tested** - GitHub Actions `pull_request_target` integration path (verified with local `scripts/pr_check.py --local`). **AI use** - Antigravity (Gemini 4 Hydrogen): audited `scripts/pr_check.py`, wrote the additional unit tests and PR description, and ran both the Python and workspace test suites locally.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:47:50 +00:00
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 13:47 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib scripts/test_pr_check.py: 13 tests OK, 0 failed.

Note: the full d3d12x lib filter currently aborts with 0xc0000005 on unmodified main too (pre-existing, unrelated to this PR); the PR's own tests were run by name and pass.

**@⁠DavidM1911** on GitHub · 2026-11-24 13:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/1229#issuecomment-7133335713) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - cargo test -p xcl --lib scripts/test_pr_check.py: 13 tests OK, 0 failed. Note: the full `d3d12x` lib filter currently aborts with 0xc0000005 on unmodified `main` too (pre-existing, unrelated to this PR); the PR's own tests were run by name and pass.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 04:17 UTC · original

Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-26 04:17 UTC · [original](https://github.com/xcl-dev/xcl/pull/1229#issuecomment-7182462146) Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
Author
Owner

@⁠sds-228 on GitHub · 2026-11-24 14:06 UTC · original · approved these changes

Reviewed head edce7c0. python -m unittest discover -s scripts -p "test_*.py" -v → 13 passed, 0 failed here. Test-only change to scripts/test_pr_check.py; no runtime paths touched, so no smoke pair is needed. mergeable: true. No issue found.

Note: #747 also changes this test file and currently conflicts with current main; recheck after rebases.

AI-assisted (OpenCode).

**@⁠sds-228** on GitHub · 2026-11-24 14:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/1229#pullrequestreview-6040665043) · **approved these changes** Reviewed head `edce7c0`. `python -m unittest discover -s scripts -p "test_*.py" -v` → 13 passed, 0 failed here. Test-only change to `scripts/test_pr_check.py`; no runtime paths touched, so no smoke pair is needed. `mergeable: true`. No issue found. Note: #747 also changes this test file and currently conflicts with current `main`; recheck after rebases. AI-assisted (OpenCode).
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/1229/head:github-bot/gh-1229'
git switch 'github-bot/gh-1229'

Merge

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