Scripts: pr_check compares smoke runs only on the same GPU (#2232) #2225
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2235"
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 Creaa on 2026-11-25T10:56:48Z.
Stacked on #2230; only the top commit (
5d1b0a0) belongs here.pr_check.pymatched the PR'sxcl-smokeblock with a main block ontitleandsecondsonly. Thegpu:line was neither required nor compared, so a PR run on one GPU could be held against main on another, and the 80 % frames and 125 % peak-commit limits then compare two machines. Fixes the GPU part of #2232; recording the driver and debug/release in the block needssmoke.ps1to write them and is left for a follow-up.What is in it
scripts/pr_check.py:gpujoinsSMOKE_FIELDS(a block without it is incomplete, as withouttitle); the baseline is a main block with the PR's title, time and GPU (compared without case and extra whitespace, as #2232 suggests); when main blocks of that title and time exist only on other GPUs, the check says "the main and PR regression runs are not on the same GPU (… against …): run both on one machine".smoke.ps1already writesgpu:, so blocks it made are unaffected.scripts/test_pr_check.py:test_runs_on_different_gpus_are_not_compared(main only on another GPU is refused even when the PR's numbers would pass against it; with main blocks on both GPUs the one on the PR's GPU is used; the same name in other case or spacing matches; a block withoutgpu:is incomplete); the existing fixtures get agpu:line andtest_blocks_with_only_commit_lines_failchecks for it too.Tested
python -m unittest discover -s scripts -p "test_pr_check.py": 16 tests, OK. Withpr_check.pyfrom #2230's head the GPU test and the extended field test fail; without the case/whitespace step only the GPU test fails.Regression run
scripts/changes, not the runtime.Not tested
driver:,cpu:,windows:andbuild:lines in the block (needssmoke.ps1), comparing driver and build, and an explicit way to mark an intended GPU mismatch.PR_SMOKE_FIELDSfrom #2219 is not on main yet; whichever lands second addsgputo it.gpu:line would now be asked for it; blocks fromsmoke.ps1have it.AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T11:03:13Z.
Code review on
7a5b2a2(scripts/pr_check.py,scripts/test_pr_check.py):"gpu"toSMOKE_FIELDSand normalizinggpu_name(casefold()+ collapsed whitespace) insame_runcleanly ensurespr_check.pynever comparesframes shownorpeak commitacross mismatched GPUs, while preserving#2230'smain_baselinedistance ordering.45600104173). (Note: if#2230merges first, this PR will need a quick rebase to drop the shared#2230hunks.)Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T14:05:44Z.
Verified
5d1b0a0fa7a9b86cbeba9ccafe8ec2aa08023296viapython -B scripts/pr_check.py --local --body <body> --files <files> --head <sha>from a temporary Git repo with two main commits one commit apart. I varied the adapter name, frames and block order in synthetic input. All six CLI cases matched expectations.RTX 4060 Tiblock and an olderRTX 4060block selected the older matching GPU in both paste orders. Mixed case, extra spaces and a tab in its name still matched.gpudiagnostic.python -B -m unittest discover -s scripts -p test_pr_check.pypassed all 16 tests on Windows 11 26100.9711, i7-13700, RTX 4060, Python 3.14.3. No physical adapter comparisons, retail runs or Rust suite. OpenAI Codex (GPT-6) ran the fixtures and wrote this report.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T16:41:58Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 2 real failures, deterministic (also fail--test-threads=1):Same pair of failures across this batch of PRs — looks like a shared feature area with two broken assertions. Needs fixes before merge.
— Devin
Imported from ivall/xcl. Originally posted by Creaa on 2026-11-25T16:46:26Z.
These two are the
mainbreakage from #2242 (fixed by #2245, merged before this PR was rebased), not this PR: head5d1b0a0is onmain06c9f55and has the fix (pso.rsreads.dxil[67]), and CI passed on it. A localmainolder than #2245 shows them for every PR in the batch.AI use: Claude Code (Claude Opus 5.5) checked this and drafted the reply.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:43:50Z.
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-01T07:38:57Z.
Triage (#1607) – head
5d1b0a0This PR is stacked on #2230: its first commit
a156f8bis #2230. Only5d1b0a0belongs here, and the shared lines are not a duplicate. #2351 (same issue #2232) makessmoke.ps1record the driver and build and is complementary. On mainsmoke.ps1already writes agpu:line.A small issue in
check: when the PR block has nogpu:line but the main blocks do,mis None and the message is "not of the same title for the same time". The missinggpuline is also reported, so this is only a misleading second message.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.