PR checks: a test-only change in a runtime file needs a regression run #452
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#452
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@TheHoracio on GitHub · 2026-11-24 00:31 UTC · original
scripts/pr_check.pytreats every file undercrates/xcl/src/as runtime unless its path contains/testsor ends intests.rs. A change that only touches#[cfg(test)]code in a runtime file therefore needs anxcl-smokerun on a retail title, even though the builtxcl.exedoes not change.Example: the fix for #343 that @PHeitor1 posted in the issue. It is one
#[cfg(test)]line inhle/d3d12x/vram.rs(pub(super)→pub(crate)onVRAM_TEST_LOCK) and a guard ingpu/recomp/tests.rs. It has been tested on NVIDIA and AMD RDNA3, but nobody has opened a PR becausepr_checkasks for a regression run. The lock cannot be reached from atests.rsfile without touchingvram.rsord3d12x/mod.rs.Plan (a small PR to
scripts/pr_check.pyand.github/workflows/pr-check.yml, no runtime change):test-onlydoes not need the Regression run blocks. The workflow passes the PR's labels to the checker, and the workflow also runs onlabeledandunlabeled.pr_check.py --localwith and without the label on a runtime-path PR.I also considered detecting
#[cfg(test)]-only hunks automatically. That needs a Rust-aware parse of both sides of each file inside apull_request_targetgate, and a mistake would let runtime changes through without a regression run. A label is simpler and keeps the decision with the maintainer.Does this direction work for you, or would you rather apply test-only fixes like #343's yourself? If the label is fine, I'll open the PR.
AI use: Claude Code (Claude Opus 5.5) helped read the checker and draft this; I checked it before posting.
@Diskuss on GitHub · 2026-11-24 09:34 UTC · original
This looks resolved by #507 (merged as
b74867b, "CI: allow reviewed test-only diffs without retail smoke (#452)").scripts/pr_check.pynow takes--test-only, and CONTRIBUTING.md item 3 documents thetest-onlylabel. #507 didn't link this issue as closing, so it is still open. The automatic#[cfg(test)]-hunk detection was set aside in favour of the label, as discussed above.AI use: checked with Claude Code (Claude Opus 5.5).
@ivall on GitHub · 2026-11-24 11:03 UTC · original
Resolved by #507: reviewed test-only changes can use the test-only label.
@PHeitor1 on GitHub · 2026-11-24 00:57 UTC · original · edited 2026-11-24 17:19 UTC
A second case for the label, from #264: @Mayzkl found the same captured
SKIPPEDlines intitle_textures.rs(7 skip paths) andkernelx.rs:1789. All are#[cfg(test)]code, and they were kept out of #264 only becauseruntime()would then ask for anxcl-smokerun. A maintainer-settest-onlylabel would cover both this and #343'sVRAM_TEST_LOCKchange.Edited: this comment first said #343's test failure was a race in runtime code (
real::init()). That was wrong. I disproved theinit()lock in https://github.com/ivall/xcl/issues/343#issuecomment-7118831203, and the causes found since (https://github.com/ivall/xcl/issues/343#issuecomment-7119667197) are in the tests.Written with Claude Code (Claude Opus 5.5).