Scripts: require a clean main checkout for smoke baselines #1049
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by zohaiblazuli on 2026-11-24T10:58:46Z.
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.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
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:15:14Z.
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
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T09:04:46Z.
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!
Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-26T01:06:05Z.
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.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:40:45Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:42:37Z.
Triage (#1607) – head
dcef418#2230 makes the same filter (main blocks with "uncommitted" in their commit line are not a baseline) and also chooses the newest main block (#2226). #2406 refuses a dirty baseline as well, but compares against the PR's base commit. This PR is the earliest and smallest of the three, and the only one that updates CONTRIBUTING.md to match. Main's
pr_check.pystill accepts a main block with uncommitted changes.No problems found in the diff.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.