Repository navigation
Commit c35a04d
test(rust): replay pinned public glob history on hosted CI (#95)
* feat(rust): map Cargo packages and test targets (#58)
Signed-off-by: FredApps <[email protected]>
* feat(rust): select workspace tests by crate dependencies (#59)
Signed-off-by: FredApps <[email protected]>
* feat(rust): synthesize conservative Cargo test commands (#60)
Signed-off-by: FredApps <[email protected]>
* feat(rust): register conservative Cargo adapter and document boundaries
Signed-off-by: FredApps <[email protected]>
* test(rust): add pinned public glob replay on hosted CI
Signed-off-by: FredApps <[email protected]>
* docs(rust): publish measured glob replay and fallback limits
Signed-off-by: FredApps <[email protected]>
* test(rust): execute selections from real Git changes
Signed-off-by: FredApps <[email protected]>
* docs(rust): publish Linux selective execution evidence
Signed-off-by: FredApps <[email protected]>
* fix(rust): narrow dependency, feature and runtime-input blockers
Review on #92: the checks were so broad that no real crate could select
fewer tests. Keep failing closed where a subset can actually differ.
- Locked registry/Git dependencies (including build scripts and proc
macros) no longer block; Cargo.lock changes keep the full suite. Local
path dependencies outside the workspace still block.
- A workspace crate with a build script depends on every workspace crate:
it and its dependents run for any Rust change, other crates narrow.
- Feature requests no longer block. Cargo (`cargo tree`) resolves each
tested crate alone and with its dependents; the coverage is recorded
for the planner to check each selected set. Missing evidence blocks.
- Drop the fs/process/unsafe/extern keyword denylist. Literal paths that
reach another crate, and code that runs Cargo/rustc, become crate
dependencies instead of blockers.
- Check only module trees for symlinks and unlisted sources (no 50k
cap; linked LICENSE/README files are fine).
- Read parent-directory and $CARGO_HOME Cargo config, block only
build-changing keys, and include RUSTDOCFLAGS and CARGO_BUILD_TARGET.
Signed-off-by: FredApps <[email protected]>
* fix(rust): select only crates plain cargo test covers; check features per command
Review on #93: plain `cargo test` tests only the root package of a
non-virtual workspace, or `default-members`. Register test targets only
for `workspace_default_members`, so a selective run stays a subset of the
full one; other members remain sources that reach tested dependents.
Metadata without default members (Cargo < 1.71) falls back.
With #92's feature coverage, every synthesized Cargo invocation must
contain a unit Cargo resolved with the full run's features for each
package a selected crate would otherwise build differently; otherwise
the plan is refused. Profiles without coverage are refused.
Also keep release-files.json alphabetical.
Signed-off-by: FredApps <[email protected]>
* fix(rust): keep registration Rust-only; narrow docs, invocation and fixture fallbacks
Review on #94:
1. Documentation changes follow the shared classification (no tests, no
fallback) unless Rust code names a documentation path or a workspace
build script exists; include_str!'d docs stay modelled assets.
.github/** keeps the full suite: it is the invocation evidence.
2. Leave Maven, Python and Go behaviour as on main: the test matcher adds
only Rust targets, goTestPackages only drops Rust contributions, and
hydrated graphs only trust declared test identities for .rs nodes.
3. Accept ordinary CI around a plain `cargo test`: checkout, toolchain and
cache actions, a matrix, output-only env, and build/clippy/fmt/doc/
rustup steps or jobs. Test flags, other runners, compiler env,
conditional or relocated test steps and unknown actions stay advisory.
4. Label Rust support experimental in the docs.
From #91 (point 2): Cargo manifests outside the workspace no longer block
the repository when metadata shows no member depends on them; their files
stay unmodelled, so changing one keeps the full suite.
Also pass Cargo feature coverage and documentation readers to the profile.
Signed-off-by: FredApps <[email protected]>
* ci(rust): run glob replay on demand, execution proof in one Linux job
Signed-off-by: FredApps <[email protected]>
* fix(rust): paths that climb out of a crate in code depend on every crate
Review on #92: a test that reads another crate's files only counted as
depending on it when the code held a literal path to that crate. Tests
that check every crate's files usually build the path instead, through
.parent(), .ancestors(), PathBuf::pop or a formatted '..' path, so a
change to the other crate skipped them.
Treat such code like code that runs Cargo: its crate depends on every
workspace crate. It only fires where the file also works with paths, so
tree parent() methods and Vec::pop keep narrowing. Crate-local paths
built from CARGO_MANIFEST_DIR stay narrow; the literal pass resolves them.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: adityankale190895 <[email protected]>
* fix(rust): find documentation reads through relative and walked paths
Review on #94: a test that reached docs/ through "../docs",
concat!(env!("CARGO_MANIFEST_DIR"), "/../docs") or a directory walk that
matched the "md" extension was not recorded as reading documentation, so
a docs-only change ran no tests and kept no fallback.
Match a documentation directory anywhere in a path, a Markdown name or a
bare md/mdx extension, and count code that climbs out of its crate as a
documentation reader too.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: adityankale190895 <[email protected]>
---------
Signed-off-by: FredApps <[email protected]>
Signed-off-by: adityankale190895 <[email protected]>
Co-authored-by: adityankale190895 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>1 parent 62a9c3c commit c35a04d
9 files changed
Lines changed: 2318 additions & 0 deletions
File tree
- .github/workflows
- docs/research
- scripts
- tests/repo
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
0 commit comments