Skip to content

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

Done

Description

@Conrage

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), 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.

Activity

  1. fromthemoonx commented on Nov 24, 2026

    @fromthemoonx

    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).

  2. ivall commented on Nov 24, 2026

    @ivall
    Collaborator

    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.

  3. added a commit that references this issue on Nov 24, 2026
    ef48a18
  4. added a commit that references this issue on Nov 27, 2026
    a9520dd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions