From 3dea5dc8bbf2e28ddc45f801bcda258e9ec04906 Mon Sep 17 00:00:00 2001 From: cargo-affected-bot <282014906+cargo-affected-bot@users.noreply.github.com> Date: Wed, 3 Jun 2026 08:07:26 +0000 Subject: [PATCH] docs: correct run.rs widen condition in CLAUDE.md (unreachable, not diverged) Co-Authored-By: Claude Opus 4.8 --- CLAUDE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 4921199..3a55792 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -22,7 +22,7 @@ the functional test suite. - `fingerprint.rs` — SHA-256 of `Cargo.lock`, workspace `Cargo.toml`s, `rustc -vV`, `RUSTFLAGS`, `CARGO_BUILD_TARGET`. Queries scoped to the current fingerprint naturally miss when any tracked input changes — no explicit invalidation path. - `db.rs` — SQLite at `target/affected/coverage.db`. `test_regions` rows carry a per-row `collect_sha` so `--diff` can leave unaffected tests anchored at their original sha while re-anchoring rerun tests at the new HEAD; multiple shas can coexist for one fingerprint. Diverged-sha rows linger until `cargo affected clean`. Crate roots ride the same table with sentinel `(1, i64::MAX)` ranges (the structural-edit backstop). Legacy schemas drop on open. - `selection.rs` — Shared between `run`, `status`, and `collect --diff`. Owns reachability classification (`check_shas_reachable`), per-sha diff collection (`changed_ranges_per_sha`), the divergence notice, and the affected + new + listed selection itself. -- `run.rs` — `collect_shas` → reachability → per-sha `git diff -U0` → selection → `nextest run` against the generated filter config. Widens to all tests only when every sha is diverged. +- `run.rs` — `collect_shas` → reachability → per-sha `git diff -U0` → selection → `nextest run` against the generated filter config. Widens to all tests only when no `collect_sha` is reachable (all missing from the repo); a reachable-but-diverged sha keeps the partial selection (`hit-with-divergence`). - `status.rs` — Dry-run variant of `run`. ## Principles