Scripts: require a clean main checkout for smoke baselines #1056
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1056
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1056"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@zohaiblazuli on GitHub · 2026-11-24 10:58 UTC · original
zohaiblazuli:codex/pr-check-clean-main-smoke→main· +19 −5 · 3 files · 1 commits · openA 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.pyrejects a main block marked(uncommitted changes).scripts/test_pr_check.pycovers a dirty baseline alone and a valid baseline alongside it.CONTRIBUTING.mdclarifies that both runs need clean checkouts.Tested
python -B -m unittest discover -s scripts -p test_pr_check.pyon Python 3.12.6. The new test failed on main and all 7 passed with the fix.scripts/test.ps1rancargo build --workspaceandcargo 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_maskandgpu_wave32_program_in_wave64_hardware.Not tested
AI use
@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
python -m pytest scripts/test_pr_check.pyat the head: 7 passed.930e8b4): 1 failed:test_main_baseline_must_have_no_uncommitted_changes. So the new test catches the problem the PR fixes.Not tested
AI use
@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!
@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 actualpr_check.py --localCLIs 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.Reproduction script. From a checkout with the three listed commits available,
python -B verification/compare_smoke_baselines.pychecked 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.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.