PR checks: a runtime file whose name only contains "tests" still needs a regression run #497
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!497
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@hmodymac8-droid on GitHub · 2026-11-24 01:02 UTC · original
hmodymac8-droid:scripts/pr-check-runtime-paths→main· +31 −2 · 2 files · 3 commits · openscripts/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
@Kalmarv on GitHub · 2026-11-24 02:02 UTC · original
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
@hmodymac8-droid on GitHub · 2026-11-24 02:04 UTC · original
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).@DavidM1911 on GitHub · 2026-11-25 13:53 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.