Skip to content

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

Closed
berkay8987 wants to merge 1 commit into
xcl-dev:mainfrom
berkay8987:pr-check-runtime-files-964
Closed

berkay8987 wants to merge 1 commit into
xcl-dev:mainfrom
berkay8987:pr-check-runtime-files-964

Conversation

@berkay8987

@berkay8987 berkay8987 commented Nov 24, 2026 •

Copy link
Copy Markdown

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

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>
@Conrage

Conrage commented Nov 24, 2026

Copy link
Copy Markdown

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 <65290519+Conrage@users.noreply.github.com>

Thanks!

AI use: diff read and comment drafted by Claude Code (Claude Opus 5.5) at my request.

@dcastell1

Copy link
Copy Markdown

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

ivall commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

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 ivall closed this Nov 24, 2026
@upipibi upipibi mentioned this pull request Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PR checks: runtime files outside crates/xcl/src skip the regression run

4 participants