Repository navigation
feat(rust): model local path packages inside the repository instead of blocking it - #256
Conversation
…t a repository-wide fallback Part of DiffCI#131 (external dependency inputs, out-of-workspace Cargo.toml). As agreed in DiffCI#91: a local path package that is not a workspace member but lives inside the repository (an excluded or vendored crate, or a [patch] target) no longer blocks every change. Its files stay unmodelled, so changing one keeps the full suite. Dependency edges now follow non-member packages until they reach members, so a -> vendor/bridge -> b still selects a when b changes. When such a package has a build script, or code that could read other crates' files (path literals, includes outside it, climbing out of its directory, running Cargo), the members that reach it depend on every workspace crate. Path packages outside the repository keep the repository-wide fallback, because they can change without the diff showing it. Signed-off-by: FredApps <[email protected]>
|
#258 is merged (it brought in #232, #248, #250 and #254), along with #228-#231 and #233, so this branch now conflicts with Could you merge |
|
Thanks! Following dependency edges through non-member packages is a real improvement, and it also fixes a miss through
Suggested fix: in Small thing: the bridge scan resolves |
…-deps Signed-off-by: FredApps <[email protected]> # Conflicts: # docs/using-diffci.md
A local path package inside the repository that is not a workspace member was scanned only to decide whether it was opaque. Its build scripts and documentation readers were never added to rustDocumentationReaders, and its program runs never set rustRunsPrograms, so a docs-only change could select no tests even when member tests call bridge code that reads the docs. Every such package is now scanned up front, reached or not. Unreadable or unscannable files count as readers and program runs. #[path] inputs resolve from the inline module base, as for members. Signed-off-by: FredApps <[email protected]>
|
Thanks, this was a real hole. I merged
New tests in
Locally, There's one interaction with #277. Bridge files aren't counted as tool-metadata readers here, because |
Part of #131 (external dependency inputs and out-of-workspace Cargo.toml).
Path dependencies on packages that live inside the repository but aren't workspace members (for example
vendor/bridge) used to add the repo-wide "Local Cargo path dependencies outside the workspace" blocker. This PR models them instead:a → vendor/bridge → bmakesadepend onb.Tests: the excluded nested-crate adapter test and the integration fixture are updated. A new adapter test covers the
a → vendor/bridge → bchain and the opaque cases (build script, path literal, climbing out of the directory, running Cargo). The docs reason table is updated.Local checks on this head: typecheck,
npm testwithDIFFCI_REQUIRE_CARGO=1(1168 pass), build,audit:boundary. Hosted CI passed on this head.Merge order (#131 series: #232, #234, #248, #250, #252, #254, #256, #277, #258). These all edit the one-line Rust paragraph in
docs/using-diffci.md, and some also touchrust.ts/types.ts, so they conflict textually with each other. #258 already includes #232, #248, #250 and #254 with those conflicts resolved. The simplest path: merge #258 (GitHub marks those four as merged), then #234, #252, #256 and #277. After each one lands I mergemaininto the next and resolve the docs line. Merging them one at a time in number order works too, with the samemainmerge after each.