PR checks: files built into xcl.exe outside src need a regression run #996

Closed
berkay8987 wants to merge 1 commit from upstream-pr/1003 into main
berkay8987 commented 2026-11-24 10:15:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by berkay8987 on 2026-11-24T10:15:04Z.


runtime() in scripts/pr_check.py only counted paths under crates/xcl/src/, so a PR that changes only files built into xcl.exe from elsewhere was not asked for a regression run. These now count as runtime: crates/xcl/data/ (stubdb.toml is compiled in with include_str! in stubs.rs and routes imports), crates/xcl/build.rs, crates/xcl/Cargo.toml, Cargo.lock, and the workspace Cargo.toml (it holds [profile.release], which changes the release binary). The issue's list did not include the workspace Cargo.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 by runtime()
  • scripts/test_pr_check.py: RuntimeOutsideSrcTests: each of the five paths gets the two Regression run problems; the test crates, scripts/ and README.md get none

Tested

  • NVIDIA GeForce RTX 5070 (driver 32.0.16.1742), Intel Core i5-14600KF, Windows 11 build 26200, Rust 1.96.0, Python 3.12.7, debug
  • python -m unittest test_pr_check -v (in scripts/): 7 tests, OK
  • main's check() with the issue's repro returns 0 problems for each of the five paths; with this change it returns the two Regression run problems
  • cargo build --workspace && cargo test --workspace -- --test-threads=4 on 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

  • not needed: only scripts/ changes

Not tested

  • the pr-check.yml workflow itself on GitHub (it runs main's copy of the checker, so this change only takes effect after merge)
  • AMD GPUs; no title run (scripts only)

AI use

  • Claude Code with Claude Opus 5.5: wrote the change, the tests and this description; I reviewed the diff and the test run.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:6579511630 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1003). Originally posted by [berkay8987](https://github.com/berkay8987) on 2026-11-24T10:15:04Z. --- `runtime()` in `scripts/pr_check.py` only counted paths under `crates/xcl/src/`, so a PR that changes only files built into `xcl.exe` from elsewhere was not asked for a regression run. These now count as runtime: `crates/xcl/data/` (`stubdb.toml` is compiled in with `include_str!` in `stubs.rs` and routes imports), `crates/xcl/build.rs`, `crates/xcl/Cargo.toml`, `Cargo.lock`, and the workspace `Cargo.toml` (it holds `[profile.release]`, which changes the release binary). The issue's list did not include the workspace `Cargo.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 by `runtime()` - `scripts/test_pr_check.py`: `RuntimeOutsideSrcTests`: each of the five paths gets the two **Regression run** problems; the test crates, `scripts/` and `README.md` get none **Tested** - NVIDIA GeForce RTX 5070 (driver 32.0.16.1742), Intel Core i5-14600KF, Windows 11 build 26200, Rust 1.96.0, Python 3.12.7, debug - `python -m unittest test_pr_check -v` (in `scripts/`): 7 tests, OK - `main`'s `check()` with the issue's repro returns 0 problems for each of the five paths; with this change it returns the two **Regression run** problems - `cargo build --workspace && cargo test --workspace -- --test-threads=4` on 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** - not needed: only `scripts/` changes **Not tested** - the `pr-check.yml` workflow itself on GitHub (it runs `main`'s copy of the checker, so this change only takes effect after merge) - AMD GPUs; no title run (scripts only) **AI use** - Claude Code with Claude Opus 5.5: wrote the change, the tests and this description; I reviewed the diff and the test run. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
upstream-sync closed this pull request 2026-11-24 11:05:21 +00:00
Conrage commented 2026-11-24 11:05:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Conrage on 2026-11-24T10:24:52Z.


I opened #964. I read the diff: runtime() now covers crates/xcl/data/, build.rs, both Cargo.tomls and Cargo.lock, and the tests use the same paths as the issue's repro, so this fixes it. Good catch on the workspace Cargo.toml ([profile.release]). #995 is an overlapping fix for the same issue.

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.

<!-- greyfinch-sync:ivall/xcl:comment:7128747228 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1003#issuecomment-7128747228). Originally posted by [Conrage](https://github.com/Conrage) on 2026-11-24T10:24:52Z. --- I opened #964. I read the diff: `runtime()` now covers `crates/xcl/data/`, `build.rs`, both `Cargo.toml`s and `Cargo.lock`, and the tests use the same paths as the issue's repro, so this fixes it. Good catch on the workspace `Cargo.toml` (`[profile.release]`). #995 is an overlapping fix for the same issue. Since this comes from my report, could you add me as co-author when you next push? `Co-authored-by: Conrage <65290519+[email protected]>` Thanks! AI use: diff read and comment drafted by Claude Code (Claude Opus 5.5) at my request.
dcastell1 commented 2026-11-24 11:05:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by dcastell1 on 2026-11-24T10:35:35Z.


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@6efdabc (baseline 727 passed, 0 failed, 41 ignored on this box):

patch -p1 < this PR            # clean, no fuzz
cargo test --workspace -- --test-threads=4
727 passed; 0 failed; 41 ignored   (exit 0)

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.

<!-- greyfinch-sync:ivall/xcl:comment:7128985973 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1003#issuecomment-7128985973). Originally posted by [dcastell1](https://github.com/dcastell1) on 2026-11-24T10:35:35Z. --- 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@6efdabc` (baseline **727 passed, 0 failed, 41 ignored** on this box): ``` patch -p1 < this PR # clean, no fuzz cargo test --workspace -- --test-threads=4 727 passed; 0 failed; 41 ignored (exit 0) ``` 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.
ivall commented 2026-11-24 11:05:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-24T10:35:44Z.


Thanks. #995 made the same change for #964, was opened first and also covers the test-only waiver, so it was merged (e74dda2). Closing this one as a duplicate.

<!-- greyfinch-sync:ivall/xcl:comment:7128989303 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1003#issuecomment-7128989303). Originally posted by [ivall](https://github.com/ivall) on 2026-11-24T10:35:44Z. --- Thanks. #995 made the same change for #964, was opened first and also covers the `test-only` waiver, so it was merged (e74dda2). Closing this one as a duplicate.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!996
No description provided.