feat: affected_tests / suggest_tests — symbol→test map and change-set test selection #23
Labels
No labels
code-review
correctness
dos
performance
security
severity/high
severity/low
severity/medium
tech-debt
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
h-dv/code-index#23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rank 2 of the 2026-07-20 index-data brainstorm (
_prdoc/records/brainstorm-2026-07-20-index-data-catalog.md).What: given a symbol or change-set, return the exact test functions/files that (transitively) exercise it — ready-to-run
cargo testfilters — and warn when NOTHING covers the symbol being edited.Why: directly automates this repo's own #1 recurring review requirement ("every feature needs e2e tests"). Measured: seeding with
apply_resolutionselects 16 of 47 rust test files — a 66% suite cut. Inverse query: 378 of 831 referenced symbols (45%) have zero test-role refs, includingnode_text(68 prod refs),err_json(64),ToolError::new/with_hint(39 each) — the untested-hotspot list falls out of the same GROUP BY.How: same reverse-closure CTE as the impact tool plus a roles-split GROUP BY; span containment already maps 432 symbols to named test functions. 17,272 of 27,716 refs (62%) carry the test-role bit.
Cost: small — no new data. Pairs with the impact tool (rank 1).
Consolidated into #22. Affected-test selection is the test-role projection of the same reverse-reachability traversal, and keeping separate tools would duplicate semantics, confidence reporting, traversal limits, and diff seeding.