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

Closed
opened 2026-11-26 04:38:31 +00:00 by github-bot · 2 comments
Owner

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

runtime() only counts paths under crates/xcl/src/:

github.com/ivall/xcl@077ce40/scripts/pr_check.py (L46-L47)

Some files outside it change what xcl.exe does:

  • crates/xcl/data/stubdb.toml: compiled in with include_str! (stubs.rs:184), and it decides how imports are routed
  • crates/xcl/build.rs
  • crates/xcl/Cargo.toml and Cargo.lock (dependency versions)

A PR that changes only these gets no smoke-run requirement.

Repro (run locally):

from pr_check import check
body = "**Tested**\n- x\n**Not tested**\n- y\n**AI use**\n- none\n"
files = [("crates/xcl/data/stubdb.toml", "modified", False, lambda: 10)]
print(check(body, "abc1234def", files, lambda s: True))   # [] - no Regression run asked for

Suggested fix: count crates/xcl/data/, crates/xcl/build.rs, crates/xcl/Cargo.toml and Cargo.lock as runtime. #497 rewrites runtime(), so this could build on it.

AI use: found, checked and written up by Claude Code (Claude Opus 5.5) at my request.

**@⁠Conrage** on GitHub · 2026-11-24 09:36 UTC · [original](https://github.com/xcl-dev/xcl/issues/964) `runtime()` only counts paths under `crates/xcl/src/`: https://github.com/ivall/xcl/blob/077ce40/scripts/pr_check.py#L46-L47 Some files outside it change what `xcl.exe` does: - `crates/xcl/data/stubdb.toml`: compiled in with `include_str!` ([stubs.rs:184](https://github.com/ivall/xcl/blob/077ce40/crates/xcl/src/stubs.rs#L184)), and it decides how imports are routed - `crates/xcl/build.rs` - `crates/xcl/Cargo.toml` and `Cargo.lock` (dependency versions) A PR that changes only these gets no smoke-run requirement. **Repro (run locally):** ```python from pr_check import check body = "**Tested**\n- x\n**Not tested**\n- y\n**AI use**\n- none\n" files = [("crates/xcl/data/stubdb.toml", "modified", False, lambda: 10)] print(check(body, "abc1234def", files, lambda s: True)) # [] - no Regression run asked for ``` **Suggested fix:** count `crates/xcl/data/`, `crates/xcl/build.rs`, `crates/xcl/Cargo.toml` and `Cargo.lock` as runtime. #497 rewrites `runtime()`, so this could build on it. **AI use:** found, checked and written up by Claude Code (Claude Opus 5.5) at my request.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:38:31 +00:00
Author
Owner

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

I'll take this one.

Plan: in scripts/pr_check.py, a PR that changes any of these also needs the regression run, next to runtime():

  • crates/xcl/data/ (stubdb.toml is compiled in by stubs.rs)
  • crates/xcl/build.rs
  • crates/xcl/Cargo.toml
  • Cargo.lock
  • the workspace Cargo.toml: its [profile.release] sets how xcl.exe is built

The test-only approval still waives it, as for crates/xcl/src.

I'll add the paths as a list that check() tests next to runtime(p), and leave runtime() itself alone. #497 rewrites that function, so both can merge without a conflict in it. Tests go in scripts/test_pr_check.py: each path needs the run, the approval waives it, and crates/xcl/tests/, tests/testtitle/Cargo.toml and docs still don't need it.

AI use: Claude Code (Claude Opus 5.5).

**@⁠fromthemoonx** on GitHub · 2026-11-24 10:05 UTC · [original](https://github.com/xcl-dev/xcl/issues/964#issuecomment-7128292040) I'll take this one. **Plan:** in `scripts/pr_check.py`, a PR that changes any of these also needs the regression run, next to `runtime()`: - `crates/xcl/data/` (`stubdb.toml` is compiled in by `stubs.rs`) - `crates/xcl/build.rs` - `crates/xcl/Cargo.toml` - `Cargo.lock` - the workspace `Cargo.toml`: its `[profile.release]` sets how `xcl.exe` is built The `test-only` approval still waives it, as for `crates/xcl/src`. I'll add the paths as a list that `check()` tests next to `runtime(p)`, and leave `runtime()` itself alone. #497 rewrites that function, so both can merge without a conflict in it. Tests go in `scripts/test_pr_check.py`: each path needs the run, the approval waives it, and `crates/xcl/tests/`, `tests/testtitle/Cargo.toml` and docs still don't need it. AI use: Claude Code (Claude Opus 5.5).
Author
Owner

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

Fixed by #995 (e74dda2): crates/xcl/data/, crates/xcl/build.rs, both Cargo.toml files and Cargo.lock now need the regression run, and the test-only approval waives it as for crates/xcl/src. Thanks for the report.

**@⁠ivall** on GitHub · 2026-11-24 10:35 UTC · [original](https://github.com/xcl-dev/xcl/issues/964#issuecomment-7128990139) Fixed by #995 (e74dda2): `crates/xcl/data/`, `crates/xcl/build.rs`, both `Cargo.toml` files and `Cargo.lock` now need the regression run, and the `test-only` approval waives it as for `crates/xcl/src`. Thanks for the report.
This discussion has been locked. Commenting is limited to contributors.
No description provided.