PR checks: a runtime file whose name only contains "tests" still needs a regression run #492
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/497"
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 hmodymac8-droid on 2026-11-24T01:02:48Z.
scripts/pr_check.pydecides which files are runtime code (and so need a Regression run) withruntime(). It treats any path undercrates/xcl/src/that contains/testsor ends intests.rsas a test file. Those are substring checks, so a runtime module whose name only contains "tests", e.g.hle/contests.rs,hle/testsupport/mod.rsorgpu/tests_layout.rs, would be waved through without a regression run, accidentally or on purpose. Now only whole names count: atests.rsor*_tests.rsmodule, or a file under atests/directory.Nothing changes for today's tree: I classified all 181 tracked files with the old and the new
runtime(), and none differs. The three test files there (gpu/recomp/tests.rs,gpu/adapter_tests.rs,gpu/agility_tests.rs) stay test files. This is separate from #452, which is about a label for test-only changes to runtime files; the two don't overlap.What is in it
scripts/pr_check.py:runtime()matches whole file and directory namesscripts/test_pr_check.py(from #507): aRuntimePathTestsclass with test files, runtime files including the names above, paths outside the crate, andcheck()asking for a regression run forhle/contests.rsbut not forgpu/recomp/tests.rsTested
python test_pr_check.py(inscripts/): OK. Againstmain'spr_check.py: 4 failures (contests.rs,testsupport/mod.rs, andtests_layout.rs, pluscheck()asking for no regression run forcontests.rs)python scripts/pr_check.py --localon this description:description okcargo test --workspace -- --test-threads=4at2997c9a: 676 passed, 0 failed, 41 ignored, noSKIPPED(results in #42)Regression run
crates/xcl/srcchangesNot tested
pr-check.ymlitself (it runs this file frommain, so it takes effect after merge);AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-24T02:02:39Z.
I ran 9d4845b's
check()and main's (508a0c7) on 33 PRs: 13 open ones and the 20 most recently merged, with their file lists. They give the same result on all 33. None of the 103 files undercrates/xcl/srcon main changes class. The three test-named files there (gpu/adapter_tests.rs,gpu/agility_tests.rs,gpu/recomp/tests.rs) are still not runtime. Your 5 tests pass, and 3 of their subtests fail against main'sruntime()(contests.rs,testsupport/mod.rs,tests_layout.rs). It merges cleanly with #527, and both test files pass on the merge.requests.rsis not an example of this change. Main already counts it as runtime, because"requests.rs".endswith("tests.rs")is False. So the docstring's example doesn't show the fix, and thecrates/xcl/src/net/requests.rscase in the tests (lines 24 and 35) passes on main too.contests.rs, which the tests already use, would be a better example in the docstring.scripts/pr_check_tests.py, because pr-check.yml checks out onlypr_check.py. #527 adds its tests asscripts/pr_check.tests.py, so if both merge there will be two test files with different names. Should they be one file?🤖 Claude Opus 5.5
Imported from ivall/xcl. Originally posted by hmodymac8-droid on 2026-11-24T02:04:04Z.
Thanks @Kalmarv, a thorough check, and you're right about
requests.rs: it doesn't end intests.rs, somainalready counts it as runtime. Pushed af06a78: the docstring and thecheck()test now usehle/contests.rs, so that test fails onmaintoo (againstmain'sruntime():contests.rs,testsupport/mod.rs,tests_layout.rs, and thecheck()case).requests.rsstays in the list as a runtime control. I fixed the description to match.On the test files: yes, one file is better. #527's
scripts/pr_check.tests.pyname matchesscripts/test-native-stderr.tests.ps1. Whichever of the two lands second should move its cases into that file. If #527 merges first, I'll rebase this one and put these tests there. AI-assisted (Claude Code).Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T13:53:48Z.
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:41:40Z.
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-01T03:36:33Z.
Triage (#1607) – head
507c573No open or merged PR changes
runtime()inscripts/pr_check.py; main still has the substring test ("/tests" not in path and not path.endswith("tests.rs")). The new version matches whole path components only. On main's currentcrates/xcl/srcfiles it classifies every file the same as before, so it changes nothing today and closes thecontests.rs/tests_*.rsgap. No problems found in the diff.The branch has a follow-up commit (
0b4628e3) that should be squashed, and it conflicts with main.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.