CI: allow reviewed test-only diffs without retail smoke #502
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/507"
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 ZekkJJ on 2026-11-24T01:05:20Z.
Implements the maintainer-label approach proposed in #452. A test-only edit in a runtime source file can be exempted from retail smoke after someone with repository triage access reviews the diff and applies
test-only.What is in it
test-onlylabel event when the live PR still matches the event's head, target branch, and description. Subsequent pushes and edits use normal validation until the label is reapplied.The workflow routes unrelated label changes to a separate check to preserve the last description result. Thanks to PHeitor1 for testing the waiver and reporting the label interaction.
Tested
python -B -m unittest discover -s scripts -p test_pr_check.py -vpassed 3 tests.cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --nocapturepassed on the2997c9abase with this patch. 676 passed, 0 failed, 41 ignored. Two wave64 cases reported runtime skips.Not tested
ivall/xcl. Trying them requires the repository label and the updated workflow on the base branch. The patch changes only CI and contributor documentation.AI use
Imported from ivall/xcl. Originally posted by PHeitor1 on 2026-11-24T01:26:24Z.
Ran this PR's
scripts/pr_check.py(302615f) with--localagainst the two cases that motivated it, using Python 3.13.17 on Windows 11. The body is #264's description, which has noxcl-smokeblocks.--test-only--test-onlyhle/d3d12x/vram.rs+gpu/recomp/tests.rsdescription okhle/kernelx.rs(the skip line kept out of it)description okcrates/xcl/src/(exe.rs.dll, binary)So the flag drops only the smoke check, as described. The PR's
test_pr_check.py: 3 tests, all OK.One gap: the job runs on every
labeled/unlabeledevent, butTEST_ONLY_APPROVALis true only when the label in that event istest-only.test-onlyand the check goes green. If anyone later adds or removes another label (bug,gpuand so on), that event re-runs the check without--test-only, and the PR goes red again with no new push or edit.A fix: for a
labeled/unlabeledevent of another label, keep the waiver when the live PR still carriestest-onlyand the label was applied after the head commit was pushed.gh api repos/$REPO/issues/$NUMBER/timeline): the lastlabeledevent fortest-onlyagainst the lasthead_ref_force_pushed/committedevent.exit 0) or a job-levelif:would not do. Both report success, which would also turn a real failure green.Reviewed and written with Claude Code (Claude Opus 5.5).