PR checks: validate every clean PR xcl-smoke block, not only the last #1884

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

@⁠microwave805 on GitHub · 2026-11-24 22:33 UTC · original
microwave805:pr-check-all-smoke-blocks → main · +47 −19 · 2 files · 1 commits · open

In scripts/pr_check.py, check() inspected only pr = clean[-1], discarding all earlier clean xcl-smoke blocks for the PR's head commit. If a PR description included a failing smoke block (with device removals, crashes, a killed exit, or a frame/memory regression) followed by a clean smoke block on another title or run, pr_check.py silently ignored the failing block and passed.

What is in it

  • scripts/pr_check.py: validate every block in clean (required fields, device removals, crashes, killed exits, and matching main baseline comparisons) while still requiring at least one matching main baseline overall so extra endurance runs without a second baseline remain allowed.
  • scripts/test_pr_check.py: add MultiSmokeBlockTests verifying that failures in an earlier PR smoke block are reported even when followed by a clean block, and that multiple clean PR blocks still pass.

Tested

  • Hardware / toolchain: NVIDIA GeForce RTX 3070 (driver 32.0.16.1742), AMD Ryzen 5 5600X, Windows 11 Pro build 22631, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), Python 3.11.3, DXC 1.9.2602.17, debug build.
  • Verified test_earlier_pr_smoke_block_failures_are_not_hidden_by_a_later_clean_block failed against main (problems == []) before the fix.
  • python -I -m unittest discover -s scripts -p "test_*.py" -v on 4056361: 18 passed, 0 failed.
  • .\scripts\test.ps1 on exact head 4056361: 975 passed, 0 failed, 45 ignored (23 GPU tests SKIPPED on this adapter: 18 wave64 skips — 7 standalone no wave64 + 11 wave64 subcases — 3 pre-existing per-lane #1426 diffs, 1 no heap windows, 1 driver-cache disable requiring Windows Developer Mode; XCL_SAMPLE_* env vars unset).

Regression run
Not needed: this PR changes only scripts/pr_check.py and scripts/test_pr_check.py (no runtime code under crates/xcl/src).

Not tested

  • AMD / Intel / native wave64 GPUs, Linux / Wine, and XCL_SAMPLE_* game-data tests.

AI use

  • Antigravity (Gemini 4 Neon): found the clean[-1] validation gap, wrote the fix and regression tests, verified the test fails without the fix, ran unittest and .\scripts\test.ps1 on 4056361, and drafted this description.
**@⁠microwave805** on GitHub · 2026-11-24 22:33 UTC · [original](https://github.com/xcl-dev/xcl/pull/1884) `microwave805:pr-check-all-smoke-blocks` → `main` · +47 −19 · 2 files · 1 commits · open In `scripts/pr_check.py`, `check()` inspected only `pr = clean[-1]`, discarding all earlier clean `xcl-smoke` blocks for the PR's head commit. If a PR description included a failing smoke block (with device removals, crashes, a killed exit, or a frame/memory regression) followed by a clean smoke block on another title or run, `pr_check.py` silently ignored the failing block and passed. **What is in it** - `scripts/pr_check.py`: validate every block in `clean` (required fields, device removals, crashes, killed exits, and matching `main` baseline comparisons) while still requiring at least one matching `main` baseline overall so extra endurance runs without a second baseline remain allowed. - `scripts/test_pr_check.py`: add `MultiSmokeBlockTests` verifying that failures in an earlier PR smoke block are reported even when followed by a clean block, and that multiple clean PR blocks still pass. **Tested** - Hardware / toolchain: NVIDIA GeForce RTX 3070 (driver `32.0.16.1742`), AMD Ryzen 5 5600X, Windows 11 Pro build 22631, Rust `1.100.0` (`stable-x86_64-pc-windows-msvc`), Python `3.11.3`, DXC `1.9.2602.17`, debug build. - Verified `test_earlier_pr_smoke_block_failures_are_not_hidden_by_a_later_clean_block` failed against `main` (`problems == []`) before the fix. - `python -I -m unittest discover -s scripts -p "test_*.py" -v` on `4056361`: **18 passed, 0 failed**. - `.\scripts\test.ps1` on exact head `4056361`: **975 passed, 0 failed, 45 ignored** (`23` GPU tests `SKIPPED` on this adapter: 18 wave64 skips — 7 standalone `no wave64` + 11 wave64 subcases — 3 pre-existing per-lane `#1426` diffs, 1 `no heap windows`, 1 driver-cache disable requiring Windows Developer Mode; `XCL_SAMPLE_*` env vars unset). **Regression run** Not needed: this PR changes only `scripts/pr_check.py` and `scripts/test_pr_check.py` (no runtime code under `crates/xcl/src`). **Not tested** - AMD / Intel / native wave64 GPUs, Linux / Wine, and `XCL_SAMPLE_*` game-data tests. **AI use** - Antigravity (Gemini 4 Neon): found the `clean[-1]` validation gap, wrote the fix and regression tests, verified the test fails without the fix, ran `unittest` and `.\scripts\test.ps1` on `4056361`, and drafted this description.
check() inspected only pr = clean[-1], discarding all earlier clean xcl-smoke blocks for the PR's head commit. Pasting a clean smoke run after a crashing, killed, or regressed run caused pr_check.py to report description ok.

Iterate over every block in clean so field checks, device removals, crashes, killed exits, and matching main-baseline frame/commit comparisons apply to every PR smoke block (while still requiring at least one matching main baseline). A new regression test with a failing earlier block and clean later block failed before the fix and passes afterward.

Assisted-by: Antigravity (Gemini 4 Neon)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:08:30 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 22:37 UTC · original

Tested exact head 4056361, script tests only, since this PR has no test report yet.

Tested

  • Windows 11 Home 26300, Python 3.14.3 with pytest 9.0.3, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here).
  • python -m pytest scripts/test_pr_check.py at the head: 15 passed, 23 subtests passed.
  • The PR's test file against current main's script (689f2db): 1 failed: MultiSmokeBlockTests::test_earlier_pr_smoke_block_failures_are_not_hidden_by_a_later_clean_block. So the new test catches the problem the PR fixes.
  • This PR and #1750 (also open) conflict in scripts/pr_check.py (git merge-tree of the two heads), so whichever lands second needs a rebase.

Not tested

  • PowerShell 7, the CI workflow itself, a game (no runtime code changed).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 22:37 UTC · [original](https://github.com/xcl-dev/xcl/pull/1884#issuecomment-7146444114) Tested exact head `4056361`, script tests only, since this PR has no test report yet. **Tested** - Windows 11 Home 26300, Python 3.14.3 with pytest 9.0.3, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here). - `python -m pytest scripts/test_pr_check.py` at the head: 15 passed, 23 subtests passed. - The PR's test file against current main's script (`689f2db`): 1 failed: `MultiSmokeBlockTests::test_earlier_pr_smoke_block_failures_are_not_hidden_by_a_later_clean_block`. So the new test catches the problem the PR fixes. - This PR and #1750 (also open) conflict in `scripts/pr_check.py` (`git merge-tree` of the two heads), so whichever lands second needs a rebase. **Not tested** - PowerShell 7, the CI workflow itself, a game (no runtime code changed). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 01:56 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 01:56 UTC · [original](https://github.com/xcl-dev/xcl/pull/1884#issuecomment-7150143052) 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/1884/head:github-bot/gh-1884'
git switch 'github-bot/gh-1884'

Merge

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