PR checks: build inputs outside src need a regression run #995
No reviewers
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!995
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/995/head"
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?
@aarushkha on GitHub · 2026-11-24 10:05 UTC · original
aarushkha:pr-checks-runtime-build-inputs→main· +23 −1 · 2 files · 1 commits · merged 2026-11-24 10:35 UTCruntime()only counted paths undercrates/xcl/src/, but some files outside it change whatxcl.exedoes, so a PR that changed only these got no Regression run requirement. They now count as runtime for that check. Fixes #964.What is in it
scripts/pr_check.py:builds_runtime()countscrates/xcl/data/(stubdb.toml, compiled in byinclude_str!instubs.rs),crates/xcl/build.rs,crates/xcl/Cargo.toml, the workspaceCargo.toml(it holds[profile.release]) andCargo.lock;check()asks for the smoke runs when any of them changes.runtime()itself is unchanged, so this does not conflict with #497's rewrite of it.scripts/test_pr_check.py: each of those paths needs both smoke blocks, and thetest-onlyapproval waives them; the test title's and game DLL's manifests and build scripts still do not need themTested
python scripts/test_pr_check.py: 4 passed (the new test fails on main: 5 of its subtests)git merge-treeof this branch with #497, #527, #952 and #988: no conflictscargo test --workspace -- --test-threads=4on main9aec53d(this diff touches no Rust): 724 passed, 0 failed, 41 ignored; SKIPPEDgpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64)Regression run
crates/xcl/srcchangesNot tested
PR checksworkflow itself on a PR that changes only one of these filesCONTRIBUTING.md (item 3 of "What a PR needs to be merged"), AGENTS.md and the PR template still describe the requirement as "
crates/xcl/srcoutside tests"; I left their wording alone so this PR stays one change, and can follow up if you want them to name these files too.AI use
🤖 Generated with Claude Code
@fromthemoonx on GitHub · 2026-11-24 10:09 UTC · original
Independent check of
ef48a1854c43b4f6c104bd968367a0324ad759ae. I had claimed #964 and written the same change locally (check()asks for the runs on the same five paths). This PR went up 2 s after my claim, so I'm not opening a second one. Here is what I checked against yours instead.Tested (Windows 11 26300, Python 3.12, RTX 3060 / Ryzen 7 5700X)
python -m unittest test_pr_checkat the head: 4 passed. Merged onto currentmain02bfd1d(no conflict): 4 passed.pr_check.py, all pass:crates/xcl/data/stubdb.toml,crates/xcl/build.rs,crates/xcl/Cargo.toml,Cargo.tomlandCargo.lockgets both Regression run problemstest_only=Truewaives all fivecrates/xcl/tests/e2e.rs,tests/testtitle/Cargo.toml,tests/testgamedll/src/lib.rs,scripts/pr_check.py,README.md,crates/xcl/datafile.mdorcrates/xcl/data.mdneeds a run, so thedata/prefix doesn't catchdata.mdordatafile.mdpr_check.py --body … --files files.tsv --local): with onlyCargo.lockor onlycrates/xcl/data/stubdb.tomlinfiles.tsv, it exits 1 and names the two missing runs; with--test-onlyit exits 0.gh pr list --state all --limit 150, each with its file list):main'sruntime()and this PR'sruntime() or builds_runtime()give the same answer for 149 of them. The one that changes is #892 (closed), which touched onlyCargo.lock.Not tested
mainhas no Dependabot config yet. If #272 adds one, itsCargo.lockPRs would hit this check, so its exemption for Dependabot matters there.AI use
@DarkPanda69 on GitHub · 2026-11-24 10:18 UTC · original
Test report for head
ef48a1854.Tested on
main9aec53dwith this PR's diff applied: pass.python -m unittest test_pr_check(inscripts/), Python 3.12.10, Windows 11: 4 passed, includingtest_runtime_build_inputs_require_smoke_until_approvedwith all its subtests.check()with a complete description and no smoke blocks:crates/xcl/data/stubdb.tomlremoved, and a new file added undercrates/xcl/data/: the two regression-run problems, as expected.Cargo.tomlmodified: the two regression-run problems (its[profile.release]does changexcl.exe, so counting it looks right to me).tests/testtitle/Cargo.toml: no problems, as expected.One minor note, not a blocker:
.cargo/config.tomlandrust-toolchain.tomlwould also change howxcl.exeis built (rustflags, compiler version), and a PR adding either gets no regression-run requirement with this change. Neither file exists in the repo today, so this only matters if one is added later.Not tested: the
PR checksworkflow on GitHub's runner; this together with #497 (both nearruntime(); this one adds a separate function, so I'd expect at most a small conflict).AI use: Claude Code (Claude Opus 5.5) ran the tests and the extra cases on this machine and wrote this report.
@dcastell1 on GitHub · 2026-11-24 10:21 UTC · original
Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on
main@02bfd1d(baseline 727 passed, 0 failed, 41 ignored on this box; the head of this PR is based on9aec53d, which is why the base is stated):Same count as the baseline (a PR-check script change), nothing regresses.
Tree restored afterwards (full diff against a clean checkout), hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.
@Conrage on GitHub · 2026-11-24 10:25 UTC · original
I opened #964. I read the diff:
builds_runtime()covers the same five paths as the issue's repro, andcheck()asks for both runs when any of them changes, so this fixes it. #1003 is an overlapping fix for the same issue, so only one of the two is needed.Since this comes from my report, could you add me as co-author when you next push?
Co-authored-by: Conrage <[email protected]>Thanks!
AI use: diff read and comment drafted by Claude Code (Claude Opus 5.5) at my request.
@ivall on GitHub · 2026-11-24 10:35 UTC · original
Merged in
e74dda2.python scripts/test_pr_check.pyon the merged tree: OK. Also checked throughcheck():crates/xcl/data/stubdb.tomlandCargo.lockget both Regression run problems, a file undertests/data/andcrates/xcl/datafile.mdnone. Thanks to @Conrage for the report and to @fromthemoonx, @hkgamingdk231-prog and @dcastell1 for the checks.