Repository navigation
PR checks: a runtime file whose name only contains "tests" still needs a regression run - #497
hmodymac8-droid wants to merge 3 commits into
Conversation
|
I ran 9d4845b's
🤖 Claude Opus 5.5 |
…eady counts requests.rs as runtime) Review by Kalmarv on xcl-dev#497. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks @Kalmarv, a thorough check, and you're right about On the test files: yes, one file is better. #527's |
…s a regression run runtime() treated any path under crates/xcl/src containing "/tests" or ending in "tests.rs" as a test file, so a runtime module such as requests.rs, contests.rs or hle/testsupport/mod.rs would have skipped the regression run. Only a tests.rs or *_tests.rs module, or a file under a tests/ directory, counts as test code now. No file in the tree is classified differently. Adds scripts/pr_check_tests.py. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eady counts requests.rs as runtime) Review by Kalmarv on xcl-dev#497. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cl-dev#507) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
af06a78 to
507c573
Compare
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
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 CI: allow reviewed test-only diffs without retail smoke #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 GPU test results: NVIDIA RTX 3080 (wave32) and AMD RDNA2 iGPU (no mesh shaders) #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