You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rust adapter: select tests by crate dependency #59
Select tests at the crate level: a change inside crate a should run the tests of a and of every workspace crate that depends on a, and nothing else.
Scope
Use cargo metadata --format-version 1 (with dependencies) to read path dependencies between workspace members, including dev-dependencies.
Emit edges so that each crate's test files depend on the source files of the crates they build on (directly or transitively).
Changes to a member's Cargo.toml affect that crate and its dependents. A change to the workspace Cargo.toml or Cargo.lock runs everything for now.
Must fall back (blocker)
A build.rs in the changed crate, since it can read arbitrary files.
include!, include_str! or include_bytes! pointing outside the crate.
Feature-dependent code (#[cfg(feature = ...)]) isn't a blocker by itself, but say in the PR how it's handled.
Done when
Fixtures cover: change in a leaf crate, change in a crate others depend on, an unrelated crate, a build.rs change that falls back, and a Cargo.lock change that falls back.
File-level selection inside a crate (mod/use) is a later step; crate level already saves most of the time in workspaces.
Safety rule: when the adapter is unsure, it adds a blockers entry so DiffCI runs the full suite. An empty graph must never look like "nothing affected".
New to DiffCI? Read the adapter guide and CONTRIBUTING.md. Sign off commits with git commit -s. Comment here to claim it, and ask questions on the issue at any point.
I'll take this after the #58 mapping foundation. The implementation uses Cargo's resolved crate dependencies, including dev-dependencies and an all-features metadata union, with conservative full-run blockers for build scripts, procedural macros, unresolved inputs and external/computed includes.
Done in #92 (squash-merged as b079713): Rust tests are now selected through Cargo crate dependencies, including the follow-up fix for paths built in code that climb out of a crate. Remaining Rust work is tracked in #62.
Activity
FredApps commentedon Nov 10, 2026
I'll take this after the #58 mapping foundation. The implementation uses Cargo's resolved crate dependencies, including dev-dependencies and an all-features metadata union, with conservative full-run blockers for build scripts, procedural macros, unresolved inputs and external/computed includes.
feat(rust): synthesize conservative cargo test commands (#93)
feat(rust): register Cargo adapter with conservative release boundary (…
test(rust): replay pinned public glob history on hosted CI (#95)
adityankale190895 commentedon Nov 16, 2026
Done in #92 (squash-merged as b079713): Rust tests are now selected through Cargo crate dependencies, including the follow-up fix for paths built in code that climb out of a crate. Remaining Rust work is tracked in #62.