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

Closed
github-bot wants to merge 1 commit from gh-pr/1003/head into gh-pr/1003/base
Owner

@⁠berkay8987 on GitHub · 2026-11-24 10:15 UTC · original
berkay8987:pr-check-runtime-files-964 → main · +23 −1 · 2 files · 1 commits · closed without merging

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

**@⁠berkay8987** on GitHub · 2026-11-24 10:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/1003) `berkay8987:pr-check-runtime-files-964` → `main` · +23 −1 · 2 files · 1 commits · closed without merging `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)
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 #964

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:39:56 +00:00
github-bot closed this pull request 2026-11-26 04:39:56 +00:00
Author
Owner

@⁠Conrage on GitHub · 2026-11-24 10:24 UTC · original

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.

**@⁠Conrage** on GitHub · 2026-11-24 10:24 UTC · [original](https://github.com/xcl-dev/xcl/pull/1003#issuecomment-7128747228) 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.
Author
Owner

@⁠dcastell1 on GitHub · 2026-11-24 10:35 UTC · original

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.

**@⁠dcastell1** on GitHub · 2026-11-24 10:35 UTC · [original](https://github.com/xcl-dev/xcl/pull/1003#issuecomment-7128985973) 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.
Author
Owner

@⁠ivall on GitHub · 2026-11-24 10:35 UTC · original

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.

**@⁠ivall** on GitHub · 2026-11-24 10:35 UTC · [original](https://github.com/xcl-dev/xcl/pull/1003#issuecomment-7128989303) 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

This discussion has been locked. Commenting is limited to contributors.
No description provided.