Repository navigation
PR checks: files built into xcl.exe outside src need a regression run - #1003
berkay8987 wants to merge 1 commit into
Conversation
runtime() only counted paths under crates/xcl/src/, so a PR that changed only crates/xcl/data/stubdb.toml (compiled in with include_str! and deciding how imports are routed), crates/xcl/build.rs, crates/xcl/Cargo.toml, the workspace Cargo.toml (release profile) or Cargo.lock was not asked for xcl-smoke runs. These paths now count as runtime too. Fixes xcl-dev#964 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I opened #964. I read the diff: Since this comes from my report, could you add me as co-author when you next push?
Thanks! AI use: diff read and comment drafted by Claude Code (Claude Opus 5.5) at my request. |
|
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 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. |
runtime()inscripts/pr_check.pyonly counted paths undercrates/xcl/src/, so a PR that changes only files built intoxcl.exefrom elsewhere was not asked for a regression run. These now count as runtime:crates/xcl/data/(stubdb.tomlis compiled in withinclude_str!instubs.rsand routes imports),crates/xcl/build.rs,crates/xcl/Cargo.toml,Cargo.lock, and the workspaceCargo.toml(it holds[profile.release], which changes the release binary). The issue's list did not include the workspaceCargo.toml. The test-file exclusions are unchanged, and other workspace members (tests/testtitle,tests/testgamedll) still need no smoke run.Fixes #964
What is in it
scripts/pr_check.py:RUNTIME_DIRS/RUNTIME_FILES, checked byruntime()scripts/test_pr_check.py:RuntimeOutsideSrcTests: each of the five paths gets the two Regression run problems; the test crates,scripts/andREADME.mdget noneTested
python -m unittest test_pr_check -v(inscripts/): 7 tests, OKmain'scheck()with the issue's repro returns 0 problems for each of the five paths; with this change it returns the two Regression run problemscargo build --workspace && cargo test --workspace -- --test-threads=4on this tree: 727 passed, 0 failed, 41 ignored; SKIPPED:gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu_wave32_program_in_wave64_hardware(no wave64)Regression run
scripts/changesNot tested
pr-check.ymlworkflow itself on GitHub (it runsmain's copy of the checker, so this change only takes effect after merge)AI use
🤖 Generated with Claude Code