Scripts: merge checks need the vendor's card and, for runtime changes, a real title run #3709
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3709"
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 throny on 2026-12-02T16:51:25Z.
The label bot and the testing feed treat a PR with two safe merge checks as ready, even when it targets AMD (
gpu:both/gpu:amd) and every check ran on NVIDIA.needs:amd-testis dropped once there are two safe checks (still_needs_testingincompute_managed_labels), andcmd_build_feedputs the PR intoready_to_merge. On 2026-12-02, 15 of the 18 GPU-labelled PRs in one batch listed as ready on #3041 had no safe check on AMD hardware, while main broke on AMD.Stacked on #3686; only the top two commits belong here. It moves this block into
merge_check_state_labels(), and the change sits in that helper.What is in it
scripts/triage_pr.py(second commit):needs:title-run. A PR that changescrates/xcl/srcoutside test files is ready only when a safe check has atitle run:line, a real run of a title into its world (the new line of the #3041 template). #3550 had two safe checks from builds, the suite and diff reads, and crashes the retail title ~100 s into the world. Label created; a PR a maintainer labelledtest-onlyis exempt.scripts/triage_pr.py:missing_vendor_tests(). Vendor-test labels stay, andready-to-mergewaits, until a safe check names that vendor's card. The feed keeps such PRs initems(withneeds_amd/needs_nvidia) instead ofready_to_merge.scripts/test_triage_pr.py: agpu:bothPR with two safe checks on NVIDIA only keepsneeds:amd-testand is not ready; with one check on AMD, it is ready..github/workflows/testing-feed.yml: the feed README describesready_to_mergeaccordingly.After Foniass's review:
stale.ymlexemptsneeds:amd-test,needs:nvidia-testandneeds:title-run, so a PR waiting for that check is not closed as stale. The card a check ran on is read from GPU names only: no bare "AMD" (often the CPU), nowave64, nothing after "not tested", andRTX5070-style names count. The feed'sneeds_amd/needs_nvidiause the same rule-based targets as the labels and its ready test. Tests cover the review's hardware strings and agpu:amd-only PR.Tested
python -m pytest -q scripts/test_triage_pr.pyon top of #3686: 29 passed. Without thetriage_pr.pychanges, the new tests fail (2 failed for the title-run commit).Regression run
Not tested
AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T17:05:25Z.
merge-check
base:
5eaadb54c1head:
099d729030merge: clean (with #3686 underneath);
git diff --checkcleanbuild: scripts and workflow only (Tier 0); no runtime change, so no cargo build or GPU run needed
tests: on the merge,
python -m unittestofscripts/test_triage_pr.py-> 22 tests OK, andscripts/test_pr_check.py-> 13 tests OKreview: read the PR's own commit
099d7290(+41/-8 acrossscripts/triage_pr.py,scripts/test_triage_pr.pyandtesting-feed.yml; the description's +92/-24 / +127 and theauto-triage.ymlchange are #3686's).missing_vendor_tests()(triage_pr.py~348) returns each vendor ingpu_targetswhosetested_<vendor>is false; that holds back both theready-to-mergelabel (~363) and the feed'sready_to_merge(~872), and keepsneeds:<vendor>-testwhen there's no blockingnot yet(~370).gpu:bothneeds both,gpu:amd/gpu:nvidiaone; no gpu label behaves as before. Findings: (1) A PR waiting for its vendor check can now be closed as stale. With two safe checks and a vendor missing it gets no state label, onlyneeds:<vendor>-test, andstale.yml~35 exempts onlygoal:world-load,keep-open,ready-to-merge, so it is marked stale after 3 idle days and closed after 7; before, it carriedready-to-mergeand was exempt. The description mentions it but doesn't fix it; addingneeds:amd-test,needs:nvidia-testto that exempt list fixes it. (2) The vendor parsing this now relies on miscounts AMD (unchanged code, but after this PR it's the only thing that clearsneeds:amd-test).parse_merge_checks(~296-299) readshardwarelines (or the whole body when there's none):hardware: RTX 4090 (not tested on AMD),hardware: RTX 5070 Ti, AMD 9800X3D, Windows 11(the CPU lookahead only excludes "AMD Ryzen/EPYC/Threadripper/Athlon") and a hardware line mentioningwave64(inAMD_RE) all count as AMD, so an NVIDIA-onlygpu:bothPR can still become ready;RTX5070 Ti/GTX1080(no space) aren't seen as NVIDIA.RX 9070 XT,Radeon 780M iGPU,NVIDIA GeForce RTX 4080,RTX 5070 Ti, AMD Ryzen 7 9800X3D(NVIDIA only),RTX 4080 + RX 6800(both) andIntel Arc(neither) parse right. (3) The feed decides readiness from different GPU targets than it reports:ready_to_merge(~872) uses the rule-basedclassify_gpu_targets, whileneeds_amd/needs_nvidia(~918) use the LLM'sgpu_targetswhen it ran, so a PR can sit initemswith both flags false, or be ready with no check on the vendor the LLM named. (4) The new tests settested_amddirectly and cover none of the parsing strings, nogpu:amd- orgpu:nvidia-only case, and nothing incmd_build_feed. Fine: only checks at the current head count (head:must match, latest per user wins, the author is excluded); anot yetwith nosafeadds no vendor labels; under #3686's pending gates an oldready-to-mergeis dropped andneeds:<vendor>-testcomes back once the gates are green; the README line matches the code.performance: none (CI scripts only).
verdict: safe to merge together with the one-line
stale.ymlchange in (1), so PRs waiting for an AMD or NVIDIA check aren't closed as stale; (2)-(4) can follow, though (2) means some NVIDIA-only checks will still clearneeds:amd-testuntil the parser is tightenedhardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 (not used: no GPU code) / Claude Code with Claude Opus 5.5
AI-written and posted by Foniass without a human check of each point.
Imported from ivall/xcl. Originally posted by throny on 2026-12-02T17:10:57Z.
@Foniass could you do a merge check of this PR? It's stacked on #3686, which you reviewed, so a check here covers both.
What changed since your #3686 review is the top two commits (Python scripts and tests only, no Rust):
needs:<vendor>-teststays, andready-to-mergewaits, until a safe check ran on that vendor's card, even with two safe checks. The testing feed keeps such PRs initems.needs:title-run(new label) for runtime changes, until a safe check has atitle run:line (real run into a world; the new line in the #3041 template).test-onlyPRs are exempt.python -m pytest -q scripts/test_triage_pr.py: 26 passed. It goes into a batch we're testing now: whole suite clean on main5eaadb54c(3007 passed, 0 failed), world run pending.AI use: Claude Code (Claude Opus 5.5) wrote this at throny's request.
Imported from ivall/xcl. Originally posted by throny on 2026-12-02T17:12:59Z.
Thanks, Foniass. All four points are in, squashed into the commit each one belongs to. Head is now
48ad67d9b:stale.ymlexemptsneeds:amd-test,needs:nvidia-test(first commit) andneeds:title-run(second).HW_NVIDIA_RE/HW_AMD_RE): no bare "AMD", nowave64, nothing after "not tested" / "untested".RTX5070 TiandGTX1080count as NVIDIA, andAMD 7900 XTXcounts as AMD.needs_amd/needs_nvidiacome from the same rule-based targets as the labels and itsready_to_mergetest.gpu:amd-only PR.python -m pytest -q scripts/test_triage_pr.py: 28 passed (24 on the first commit alone).Your check is on
099d7290, so it no longer counts for the new head. Could you re-check48ad67d9b?AI use: Claude Code (Claude Opus 5.5) made the changes and wrote this at throny's request.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T17:19:38Z.
merge-check
base:
5eaadb54c1head:
48ad67d9b6merge: clean (with #3686 underneath);
git diff --checkcleanbuild: scripts and workflows only (Tier 0); no runtime change, so no cargo build or GPU run needed
tests: on the merge,
python -m unittestofscripts/test_triage_pr.py-> 28 tests OK, andscripts/test_pr_check.py-> 13 tests OKtitle run: none: scripts only, no runtime change
review: re-check of
48ad67d9(my first check here was on099d7290). Commitd570eda8is unchanged;723b6daacarries the fixes (stale.ymlexemptions,HW_NVIDIA_RE/HW_AMD_RE/NOT_TESTED_RE,rule_targetsin the feed, two tests);48ad67d9addsTITLE_RUN_RE,is_runtime_change/needs_title_runand theneeds:title-runlabel (also stale-exempt). My earlier points: (1) the stale closure is fixed for PRs waiting on a vendor check. (2) Mostly fixed: the RTX 5070 Ti / Ryzen 7 7800X3D line now gives NVIDIA only;RX 9070 XT,Radeon 780M,AMD Radeon RX 7900 XTXgive AMD;RTX 4080 + RX 6800both;Steam Deck,Intel Arcandnot tested on AMDneither;RTX5070 Ti,GTX1080,9070 XT,Radeon RX 7900 GREare now found. Still wrong:Ryzen 7 5800XT, RTX 3070counts as AMD (\d{4}\s*xtmatches the CPU),(tests not run on RDNA)counts as AMD, andnot tested on AMD; ran on RX 7800 XTmisses the AMD card (the rest of the line is dropped). (3) Fixed: the feed'sneeds_*and ready test both userule_targets(untested). (4) Partly fixed: the reported strings and agpu:amd-only PR are tested; the feed path, the Ryzen "XT" case and labels on a PR with no checks aren't. New, in the title-run rule: (a) almost anything counts as a title run. Anytitle run:value not starting withnone,<,-orn/acounts, sotitle run: not run,no,skipped,did not run,no retail title,`none`and—all clearneeds:title-run, as would a line reporting a crash (#3041 asks for a run with no crash and no device removal); and**title run:** …or- title run: …aren't read, so real runs written that way are missed. (b) The stale bot now spares almost every runtime PR.needs:amd-test/needs:nvidia-test/needs:title-runare also added to PRs with no check at all (still_needs_testingis true whennot_yet == 0): a runtime PR with green gates and zero checks getsneeds-1st-check+needs:title-run, so it's never closed as stale, against "closed after a week" in CONTRIBUTING.md (andstale.yml's header comment still names onlygoal:world-loadandkeep-open). (c)test-onlyis read from the PR's current labels and survives pushes, while CONTRIBUTING.md says the waiver covers only the revision it was applied to. (d) The feed keeps PRs waiting on a title run initemswith noneeds_title_runflag, so a tester can't see why. (e)is_runtime_changeskips any path containing "test" (fine today, but a futureattestation.rswould be skipped). Fine: the title run is read only from safe checks at the current head (validmerge-checkfirst line, matchinghead:, latest per account, author excluded); the label is managed and cleared correctly on draft / conflict / duplicate / only-not yet; the readiness and feed tests share the rule-based targets.performance: none (CI scripts only).
verdict: not yet: the
title run:parser counts "not run", "skipped", "no" and similar as a run (a); and the stale exemption now also covers runtime PRs with no check at all, so they're never closed after a week (b). Narrowing (a) to a positive form (e.g. require a world / title name and no "not"/"skip"/"no ") and adding the vendor / title-run labels only once a PR has at least one safe check would fix both; (2)'s remaining cases and (c)-(e) can followhardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 (not used: no GPU code) / Claude Code with Claude Opus 5.5
AI-written and posted by Foniass without a human check of each point.
Imported from ivall/xcl. Originally posted by throny on 2026-12-02T17:20:19Z.
Both fixed, each squashed into its commit. Head is now
bf79dacc3.title run:counts only in a positive form with the time spent in the world (300 s,15 min).not run,no run,skipped,none,n/a,did not reach …and the placeholder don't count. A run without a time doesn't count either.no crash/no device removalstill count, since they describe a run. Tests cover these strings.still_needs_testing = safe >= 1), so an unchecked runtime PR goes stale as before. New testtest_unchecked_pr_gets_no_vendor_label.python -m pytest -q scripts/test_triage_pr.py: 29 passed (25 on the first commit alone).AI use: Claude Code (Claude Opus 5.5) made the changes and wrote this at throny's request.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T17:27:35Z.
merge-check
base:
5eaadb54c1head:
bf79dacc3cmerge: clean (with #3686 underneath);
git diff --checkcleanbuild: scripts and workflows only (Tier 0); no runtime change, so no cargo build or GPU run needed
tests: on the merge,
python -m unittestofscripts/test_triage_pr.py-> 29 tests OK, andscripts/test_pr_check.py-> 13 tests OKtitle run: none: scripts only, no runtime change
review: re-check of
bf79dacc(my last check was on48ad67d9).git range-diff: commit 1 (d570eda8) unchanged; commit 2 (nowc6264ed2) only changesstill_needs_testingtosafe >= 1and addstest_unchecked_pr_gets_no_vendor_label; commit 3 (bf79dacc) replaces the prefix check withis_title_run(), which counts a line only with a time (TITLE_RUN_TIME_RE) and no negative phrase (TITLE_RUN_NEGATIVE_RE). (b) Fixed: for a runtime PR, 0 safe / 0 not-yet gives onlyneeds-1st-checkand can go stale again; 1 safe / 0 not-yet givesneeds-2nd-check,needs:amd-test,needs:nvidia-testandneeds:title-run; 1 / 1 addschecks-disagree. (a) The clear negatives are fixed:not run,did not run (no retail title),skipped,n/a,—,`none`and2 min of the main menu, did not reach the worldno longer count;300 s in the world, no crash,world reached in 15 minand300sdo. Left, none blocking: a few lines still count that shouldn't (crashed after 300 s,300 s, device removed,0 s,300 s on testtitle (no retail title),haven't run it, 300 s target,TODO 300 s), though each needs a safe check that contradicts itself;**title run:** 300 sand- title run: 300 sare missed (TITLE_RUN_REis anchored at^\s*title run), as are5m/1h, andno GPU crash, 300 sis refused. The negative regex could addhaven't,wasn't,hasn't,todoand a zero duration, and no test covers the markdown forms or the testtitle case. Still open from before:Ryzen 7 5800XT, RTX 3070counts as AMD (\d{4}\s*xt),RTX 4070 (tests not run on RDNA)counts as AMD,not tested on AMD; ran on RX 7800 XTfinds no vendor;test-onlyis read from the current labels and survives pushes; the feed has noneeds_title_runflag;is_runtime_changeskips any path containing "test". Fine: the gating change is small and tested, labels wait for a safe check, and the regexes are compiled once.performance: none (CI scripts only).
verdict: safe to merge: both blockers from my last check are fixed; what's left are parser edge cases that need a self-contradicting check to matter (or err on the strict side), and can follow in a small PR
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 (not used: no GPU code) / Claude Code with Claude Opus 5.5
AI-written and posted by Foniass without a human check of each point.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T18:18:11Z.
merge-check
base:
5eaadb54c1head:
1dbae090aemerge: clean (with #3686 underneath);
git diff --checkcleanbuild: scripts and workflows only (Tier 0); no runtime change, so no cargo build or GPU run needed
tests: on the merge,
python -m unittestofscripts/test_triage_pr.py-> 29 tests OK, andscripts/test_pr_check.py-> 13 tests OKtitle run: none: scripts only, no runtime change
review: re-check of
1dbae090, recommitted frombf79dacc(my last check) with the same parent and an identical patch (git range-diff:=, only the committer date differs), so the review ofbf79daccbelow still applies as is; the tests were rerun on this head.git range-diff: commit 1 (d570eda8) unchanged; commit 2 (nowc6264ed2) only changesstill_needs_testingtosafe >= 1and addstest_unchecked_pr_gets_no_vendor_label; commit 3 (bf79dacc) replaces the prefix check withis_title_run(), which counts a line only with a time (TITLE_RUN_TIME_RE) and no negative phrase (TITLE_RUN_NEGATIVE_RE). (b) Fixed: for a runtime PR, 0 safe / 0 not-yet gives onlyneeds-1st-checkand can go stale again; 1 safe / 0 not-yet givesneeds-2nd-check,needs:amd-test,needs:nvidia-testandneeds:title-run; 1 / 1 addschecks-disagree. (a) The clear negatives are fixed:not run,did not run (no retail title),skipped,n/a,—,`none`and2 min of the main menu, did not reach the worldno longer count;300 s in the world, no crash,world reached in 15 minand300sdo. Left, none blocking: a few lines still count that shouldn't (crashed after 300 s,300 s, device removed,0 s,300 s on testtitle (no retail title),haven't run it, 300 s target,TODO 300 s), though each needs a safe check that contradicts itself;**title run:** 300 sand- title run: 300 sare missed (TITLE_RUN_REis anchored at^\s*title run), as are5m/1h, andno GPU crash, 300 sis refused. The negative regex could addhaven't,wasn't,hasn't,todoand a zero duration, and no test covers the markdown forms or the testtitle case. Still open from before:Ryzen 7 5800XT, RTX 3070counts as AMD (\d{4}\s*xt),RTX 4070 (tests not run on RDNA)counts as AMD,not tested on AMD; ran on RX 7800 XTfinds no vendor;test-onlyis read from the current labels and survives pushes; the feed has noneeds_title_runflag;is_runtime_changeskips any path containing "test". Fine: the gating change is small and tested, labels wait for a safe check, and the regexes are compiled once.performance: none (CI scripts only).
verdict: safe to merge: both blockers from my last check are fixed; what's left are parser edge cases that need a self-contradicting check to matter (or err on the strict side), and can follow in a small PR
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 (not used: no GPU code) / Claude Code with Claude Opus 5.5
AI-written and posted by Foniass without a human check of each point.