Scripts: require a clean main checkout for smoke baselines #1056

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

@⁠zohaiblazuli on GitHub · 2026-11-24 10:58 UTC · original
zohaiblazuli:codex/pr-check-clean-main-smoke → main · +19 −5 · 3 files · 1 commits · open

A smoke block from a modified checkout can currently count as the run on main. That can make the frame and memory comparison use a baseline built from different code. Require an unmodified main checkout for the baseline.

What is in it

  • scripts/pr_check.py rejects a main block marked (uncommitted changes).
  • scripts/test_pr_check.py covers a dirty baseline alone and a valid baseline alongside it. CONTRIBUTING.md clarifies that both runs need clean checkouts.

Tested

  • Windows 11 Pro build 26300, Intel Core i5-14600K, NVIDIA GeForce RTX 3060 driver 32.0.16.1742, Rust 1.94.0 MSVC, debug.
  • python -B -m unittest discover -s scripts -p test_pr_check.py on Python 3.12.6. The new test failed on main and all 7 passed with the fix.
  • scripts/test.ps1 ran cargo build --workspace and cargo test --workspace -- --test-threads=4. Cargo reported 737 passed, 0 failed, 41 ignored. Two of the reported passes emitted GPU skips for no wave64, gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware.

Not tested

  • AMD, Intel GPUs, or optional retail sample tests. The change only affects the PR checker and contribution docs.

AI use

  • OpenAI Codex (GPT-6, exact variant unavailable) reproduced the issue, wrote the code and test, ran the tests, drafted this description, and opened the draft at the request of the author.
**@⁠zohaiblazuli** on GitHub · 2026-11-24 10:58 UTC · [original](https://github.com/xcl-dev/xcl/pull/1056) `zohaiblazuli:codex/pr-check-clean-main-smoke` → `main` · +19 −5 · 3 files · 1 commits · open A smoke block from a modified checkout can currently count as the run on main. That can make the frame and memory comparison use a baseline built from different code. Require an unmodified main checkout for the baseline. **What is in it** - `scripts/pr_check.py` rejects a main block marked `(uncommitted changes)`. - `scripts/test_pr_check.py` covers a dirty baseline alone and a valid baseline alongside it. `CONTRIBUTING.md` clarifies that both runs need clean checkouts. **Tested** - Windows 11 Pro build 26300, Intel Core i5-14600K, NVIDIA GeForce RTX 3060 driver 32.0.16.1742, Rust 1.94.0 MSVC, debug. - `python -B -m unittest discover -s scripts -p test_pr_check.py` on Python 3.12.6. The new test failed on main and all 7 passed with the fix. - `scripts/test.ps1` ran `cargo build --workspace` and `cargo test --workspace -- --test-threads=4`. Cargo reported 737 passed, 0 failed, 41 ignored. Two of the reported passes emitted GPU skips for no wave64, `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware`. **Not tested** - AMD, Intel GPUs, or optional retail sample tests. The change only affects the PR checker and contribution docs. **AI use** - OpenAI Codex (GPT-6, exact variant unavailable) reproduced the issue, wrote the code and test, ran the tests, drafted this description, and opened the draft at the request of the author.
The smoke script marks builds from modified sources, but the PR checker only checked that marker on the head run. Apply the same check to main before using its frame and memory counts.

Assisted-by: OpenAI Codex (GPT-6, exact variant unavailable)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:42:06 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 14:15 UTC · original

Tested exact head dcef418, 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: 7 passed.
  • The PR's test file(s) against current main's script (930e8b4): 1 failed: test_main_baseline_must_have_no_uncommitted_changes. So the new test catches the problem the PR fixes.

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 14:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/1056#issuecomment-7134078097) Tested exact head `dcef418`, 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: 7 passed. - The PR's test file(s) against current main's script (`930e8b4`): 1 failed: `test_main_baseline_must_have_no_uncommitted_changes`. So the new test catches the problem the PR fixes. **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 09:04 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 09:04 UTC · [original](https://github.com/xcl-dev/xcl/pull/1056#issuecomment-7157845814) 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!
Author
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-26 01:06 UTC · original · edited 2026-11-26 01:13 UTC

I ran #1056 (dcef41877f5cf5550b34402e3ff24ac24e06b512), #2230 (a156f8bbb737f79f9f63e594c9b39cb215c4a670) and #2406 (82bc4503a6d56f3ef88bc731c22f823d02150880) through their actual pr_check.py --local CLIs on the same disposable Git history. All three reject a dirty current baseline on its own. They differ when the description contains other usable measurements.

Same input to all three #1056 #2230 #2406
Older clean baseline only, same frame count as PR Pass Pass Requires the specified base
Older baseline at 200 frames, current at 100, PR at 100 Fails if older is first; passes if current is first Passes in either order Passes in either order
Dirty and clean blocks for the specified base Passes in either order Passes in either order Reports the dirty block in either order

Reproduction script. From a checkout with the three listed commits available, python -B verification/compare_smoke_baselines.py checked 10 descriptions per version, including duplicate measurements. All 30 exit-status/diagnostic checks matched. #1056's Python suite also passed 7/7. Windows 11, Core i7-13700, Python 3.14.3. Synthetic measurements only. OpenAI Codex (GPT-6) wrote the harness and ran it.

**@⁠RavenCurseBurg** on GitHub · 2026-11-26 01:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/1056#issuecomment-7179432645) · edited 2026-11-26 01:13 UTC I ran #1056 (`dcef41877f5cf5550b34402e3ff24ac24e06b512`), #2230 (`a156f8bbb737f79f9f63e594c9b39cb215c4a670`) and #2406 (`82bc4503a6d56f3ef88bc731c22f823d02150880`) through their actual `pr_check.py --local` CLIs on the same disposable Git history. All three reject a dirty current baseline on its own. They differ when the description contains other usable measurements. | Same input to all three | #1056 | #2230 | #2406 | | --- | --- | --- | --- | | Older clean baseline only, same frame count as PR | Pass | Pass | Requires the specified base | | Older baseline at 200 frames, current at 100, PR at 100 | Fails if older is first; passes if current is first | Passes in either order | Passes in either order | | Dirty and clean blocks for the specified base | Passes in either order | Passes in either order | Reports the dirty block in either order | [Reproduction script](https://github.com/RavenCurseBurg/xcl/blob/a42d500aaf65fcb1d42cd4e319ba7756cf6e1f76/verification/compare_smoke_baselines.py). From a checkout with the three listed commits available, `python -B verification/compare_smoke_baselines.py` checked 10 descriptions per version, including duplicate measurements. All 30 exit-status/diagnostic checks matched. #1056's Python suite also passed 7/7. Windows 11, Core i7-13700, Python 3.14.3. Synthetic measurements only. OpenAI Codex (GPT-6) wrote the harness and ran it.
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/1056/head:github-bot/gh-1056'
git switch 'github-bot/gh-1056'

Merge

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