Scripts: require the current smoke baseline #2396
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2406"
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 mokkamokacaffe on 2026-11-25T17:54:50Z.
Review follow-up
On
37b3bf14, the source review found the conflict intest_pr_check.pycorrectly resolved and requested a rebase. The checker requires a smoke run on the exact PR base SHA, while CONTRIBUTING.md permits a run on a commit of main. Maintainers still need to choose the baseline policy across #1056, #2230 and this PR, and reconcile the PR-side checks with #2219. AI-assisted source reviewFixes #2226 by requiring a runtime PR’s smoke baseline to come from the base commit recorded in the pull request event. If that base moves, the contributor needs a clean run on the new base for the same title and duration.
What is in it
.github/workflows/pr-check.ymlpassesgithub.event.pull_request.base.shatoscripts/pr_check.pyas--base. The checker can verify the baseline without a GitHub ancestry lookup.82bc450. The branch also contains8968118from #2388, which closed in favor of #2219. If maintainers select the exact-base rule, only the baseline change needs to be carried forward.Tested
Conflict repair on Windows at head
37b3bf1458, merging maina815de932c. The Python PR-checker suite passed all 14 baseline tests and all 19 repaired-head tests, with zero skips. The upstream smoke-header-in-title case uses a complete smoke fixture. Hosted workflow integration remains untested.Linux, Python 3.12.14. The original run of
python -I -m unittest discover -s scripts -p "test_*.py" -vreported 30 passed, 0 failed.git diff --checkpassed.@RavenCurseBurg tested exact head
82bc4503a6d56f3ef88bc731c22f823d02150880on Windows 11 with Python 3.14.3. All 38 local CLI cases returned the expected status and diagnostic. Against a synthetic baseline of 100 frames and 1,000 MB, 80 frames and 1,250 MB passed. Lowering the count to 79 or raising memory to 1,251 MB failed. The cases also covered stale, dirty, duplicate and mismatched baselines. CLI report@FIJI1299 reported 18 passed, 0 failed in the checker suite on the exact head under Windows 11. On an RTX 5070 (driver 621.35), the Rust library suite reported 1,215 passed, 5 failed, 26 ignored. The tester identified four DXIL fuzz-test out-of-memory failures and one bridged-mask assertion as pre-existing. Reported GPU skips were 13 for wave64, 3 for wave32 VOP3 modifiers and 1 requiring Windows Developer Mode. Windows report
@DavidM1911 tested the branch merged with then-current
mainon Windows 11 and an RTX 3060 Ti. The parallel library run reported 1,038 passed, 1 failed. The single-threaded rerun reported 1,039 passed, 0 failed. The tester linked the intermittent failure to #1978. Merged-tree reportRegression run
A paired retail
xcl-smokerun is exempt under the PR template. This diff changes the description workflow, its Python checker and its tests.Not tested
pull_request_targetrun executing the proposed workflow and checker together.AI use
OpenAI Codex with GPT-5 implemented the baseline check and regression tests and ran the original Linux checks. OpenAI Codex (GPT-6) prepared this description update from the diff and the linked contributor reports.
Imported from ivall/xcl. Originally posted by alexmircea1299 on 2026-11-25T18:02:16Z.
Tested commit
82bc450on Windows:Environment
621.35,wave32)1.8.2502.11(Windows SDK10.0.26100.0)Results
python -m unittest discover -s scripts -t scripts -p "test_pr_check.py" -v): 18 passed, 0 failed (0.006s), includingtest_main_block_must_be_the_exact_pr_base,test_main_block_must_come_from_a_clean_checkout, andtest_several_matching_main_blocks_are_ambiguous..\scripts\test.ps1): 1215 passed, 5 failed, 26 ignored — the 5 failures are pre-existinggpu::*issues on this adapter (E_OUTOFMEMORY0x8007000Eonfuzz_validate_and_gpu_0..3with this driver, anda_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier).13(no wave64),3(wave32unsupported VOP3 modifiers),1(driver cache disable requires Windows Developer Mode:0x887A002D).Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T18:06:33Z.
Tested
82bc4503a6d56f3ef88bc731c22f823d02150880with Python 3.14.3 on Windows 11 (build 26100.9711).82bc4503a6d5and fixture BASE89681182b554(its parent). Every exit status and expected diagnostic matched. The checker selected the matching title and duration in every block order, including descriptions with an unrelated title, duration or historical revision. An old-only or dirty baseline, duplicate matching baselines, and a mismatched duration all failed. The 80-frame / 1250 MB boundary against a 100-frame / 1000 MB baseline passed. At 79 frames or 1251 MB it failed.BASEfromgithub.event.pull_request.base.shaand passes it to the checker. The CLI usage already shows the flag. The contributor guide still allows “a commit of main” and the PR template just says “from main.” The two-file wording update spells out which baseline to run again when the base moves. All 18 checker tests, including the template tests, passed before and after that edit.These are synthetic local CLI checks. No hosted workflow, retail game, Rust suite or GPU workload ran. OpenAI Codex (GPT-6) ran the checks and prepared the documentation change and report.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T19:28:02Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). 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 throny on 2026-11-26T00:58:31Z.
Two contributors checked independently and found that #2230 solves the same problem (for #2226) in a different way: #1607, group D117. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.
This is a hint from the community triage in #1607, not a maintainer decision.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-26T17:04:18Z.
Thanks @throny for flagging the overlap, and @RavenCurseBurg for testing both checkers on the same Git history.
The case that separates them is a contributor who already has a clean smoke run from one commit behind the PR base. #2230 accepts that baseline and reports its age. #2406 requires a run from the base SHA recorded in the PR event, so the contributor has to rerun it.
I’m keeping this as a draft pending one maintainer decision on #2226: should an older clean baseline be accepted with its age visible, or should the check require the recorded PR base? If the former is preferred, I’m happy to close this in favor of #2230.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:58:45Z.
Triage (#1607) – head
82bc450#1056, #2230 and this PR all make
scripts/pr_check.pyrefuse a main smoke block marked(uncommitted changes)(#2226), each in a different way. #1056 only filters dirty blocks. #2230 picks the newest clean main block and reports how far behind main it is. This PR requires the block to be on the PR's exactbase.sha, requires exactly one matching block, and adds the PR-sideexit/peak commit/numeric checks. Which rule applies is the maintainer's call.The branch also carries
8968118("require complete successful smoke runs", from the closed #2388), which overlaps the still-open #2219. On its own, the baseline change is only82bc450.Requiring the main block on exactly
github.event.pull_request.base.shameans a contributor has to rerun the main smoke on the base tip GitHub records whenever the PR's base moves. CONTRIBUTING.md currently only asks for "a commit of main", so merging this needs a docs update too.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-03T13:22:10Z.
Follow-up review of
37b3bf14, since82bc450(code reading only, not a merge-check; draft) · 3 mediumIn short: The only new commit since
82bc450is37b3bf14, which mergesmaininto the branch and resolves a conflict inscripts/test_pr_check.py. The two PR commits are unchanged, and the conflict is resolved correctly. The points from the earlier triage comment are still open, and the branch should be rebased rather than merged withmain.Medium
mainis merged into the branch instead of rebased. CONTRIBUTING.md asks to keep a PR up to date "by rebasing ontomain, not by mergingmaininto it". Because history is merged with merge commits,37b3bf14would land inmainas is, with its conflict resolution hidden inside it. Rebase the two commits ontomainand force-push. The resolution can stay as it is:test_smoke_header_in_title_does_not_end_blockusesself.RUN.The exact-base rule is not in CONTRIBUTING.md (still open).
checknow accepts only a main block made ongithub.event.pull_request.base.sha(pr_check.py~140). Item 3 of "What a PR needs to be merged" still asks for a block "made on a commit ofmain". So a contributor who rebases, as item 1 asks, also has to rerun the main smoke on the new base. Update CONTRIBUTING.md in this PR, so the rule and the check change together.Overlap with #1056, #2230 and #2219 (still open). All three are open:
89681182(from the closed #2388) also carries.Only one baseline rule should land, so the maintainer has to choose. If it is this one, drop
89681182or say here that it replaces #2219.Checked and fine
test_pr_check.pyis right. The test now needs a full run, because a PR block must haveexit,peak commit,device removalsandcrashes(PR_SMOKE_FIELDS), andself.RUNhas all of them.smoke_problemskeeps the PR'smain_commitparameter.scripts/smoke.ps1printsexit: 0x…(orkilled (no exit)) andpeak commit: N MB(~100, ~139-144), which match the newexitandpeak commitchecks.BASEand the script requires--base. Both come frommainunderpull_request_target, so they switch together.checkor the removedis_main_ancestor. The GitHub compare call goes away with it.Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.
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.