Skip to content

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

Open
zohaiblazuli wants to merge 1 commit into
xcl-dev:mainfrom
zohaiblazuli:codex/pr-check-clean-main-smoke
Open

zohaiblazuli wants to merge 1 commit into
xcl-dev:mainfrom
zohaiblazuli:codex/pr-check-clean-main-smoke

Conversation

@zohaiblazuli

Copy link
Copy Markdown
Contributor

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)
@futurepro62

Copy link
Copy Markdown

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.

@throny throny added off-goal Does not bear on the current goal (world loading); waits until it is reached and removed off-goal Does not bear on the current goal (world loading); waits until it is reached labels Nov 25, 2026
@DavidM1911

Copy link
Copy Markdown
Contributor

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

Thanks!

@RavenCurseBurg

RavenCurseBurg commented Nov 26, 2026 •

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

off-goal Does not bear on the current goal (world loading); waits until it is reached

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants