PR checks: runtime files outside crates/xcl/src skip the regression run #964
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#964
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Conrage on GitHub · 2026-11-24 09:36 UTC · original
runtime()only counts paths undercrates/xcl/src/:github.com/ivall/xcl@077ce40/scripts/pr_check.py (L46-L47)Some files outside it change what
xcl.exedoes:crates/xcl/data/stubdb.toml: compiled in withinclude_str!(stubs.rs:184), and it decides how imports are routedcrates/xcl/build.rscrates/xcl/Cargo.tomlandCargo.lock(dependency versions)A PR that changes only these gets no smoke-run requirement.
Repro (run locally):
Suggested fix: count
crates/xcl/data/,crates/xcl/build.rs,crates/xcl/Cargo.tomlandCargo.lockas runtime. #497 rewritesruntime(), so this could build on it.AI use: found, checked and written up by Claude Code (Claude Opus 5.5) at my request.
@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 toruntime():crates/xcl/data/(stubdb.tomlis compiled in bystubs.rs)crates/xcl/build.rscrates/xcl/Cargo.tomlCargo.lockCargo.toml: its[profile.release]sets howxcl.exeis builtThe
test-onlyapproval still waives it, as forcrates/xcl/src.I'll add the paths as a list that
check()tests next toruntime(p), and leaveruntime()itself alone. #497 rewrites that function, so both can merge without a conflict in it. Tests go inscripts/test_pr_check.py: each path needs the run, the approval waives it, andcrates/xcl/tests/,tests/testtitle/Cargo.tomland docs still don't need it.AI use: Claude Code (Claude Opus 5.5).
@ivall on GitHub · 2026-11-24 10:35 UTC · original
Fixed by #995 (
e74dda2):crates/xcl/data/,crates/xcl/build.rs, bothCargo.tomlfiles andCargo.locknow need the regression run, and thetest-onlyapproval waives it as forcrates/xcl/src. Thanks for the report.