Skip to content

fix(ci): a .cargo/ change runs the workspace tests again - #442

Merged
mrnasil merged 2 commits into
mainfrom
fix/affected-tests-dot-paths
Nov 9, 2026
Merged

mrnasil merged 2 commits into
mainfrom
fix/affected-tests-dot-paths

Conversation

@mrnasil

@mrnasil mrnasil commented Nov 9, 2026

Copy link
Copy Markdown
Member

Summary

affected_tests._norm used lstrip("./"), which strips every leading . and /. .cargo/config.toml became cargo/config.toml, never matched the .cargo/ workspace root, and Test (linux) selected nothing (seen on #441: Test passed in 14 s). Now only a leading ./ is dropped.

Test plan

  • New test_cargo_config_runs_everything (.cargo/…, ./.cargo/…, .\.cargo\…): fails on the old script, passes now; 18/18 OK
  • --paths .cargo/config.toml → cargo test --workspace …; ./crates/core/src/lib.rs still maps to the core crate

🤖 Generated with Claude Code

_norm used lstrip("./"), which strips every leading '.' and '/', so
".cargo/config.toml" became "cargo/config.toml" and never matched the
.cargo/ workspace root: Test (linux) selected nothing for it (#441).
Only a leading "./" is dropped now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mrnasil
mrnasil enabled auto-merge (squash) November 9, 2026 12:06
@mrnasil
mrnasil merged commit a83e1b7 into main Nov 9, 2026
7 checks passed
@mrnasil
mrnasil deleted the fix/affected-tests-dot-paths branch November 9, 2026 12:25
@mrnasil mrnasil mentioned this pull request Nov 9, 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.

1 participant