~396 integration-test binaries (149 GB target/): consolidate into harness binaries per crate, then audit the registries #530
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#530
Loading…
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?
Consolidated scope (triage 2026-11-09)
Priority: Medium: target/ is 149 GB; link time and disk on every gate run.
Original report
Summary
Integration tests are spread over ~396 separate test binaries:
tests/*.rscounts are indexer 163, daemon 100, mcp-server 92, cli 41. Onlysdk-tests,guest-kitandguestsetautotests = false. Every file links the whole crate graph into its own executable.This is a likely large contributor to:
target/per worktree recorded in the operator notes. The primarytarget/is 149 GB today (du -sh target, 2026-11-09).Test code totals about 397k lines against 335k lines of source. 94 gate/registry/parity/contract/disclosure files make up 94k lines, of which 33
*registry*files are 39k.Proposal
autotests = falseand add one or a few harness binaries (tests/main.rswithmod <suite>;per former file, possibly split by "fast" and "corpus/slow"). There is no semantic change, and test names keep their module path.set_current_dir, global loggers, panic hooks) must be found first. nextest's process-per-test model keeps isolation if CI uses it.--test <binary>, so update those commands andci.ymlin the same PR.*registry*test, record which defect it caught last, or which mutation it kills, and merge registries that check the same axis into table-driven tests.Acceptance
target/size after a fullcargo test --workspace --no-run, wall-clock for the CLAUDE.md gate set, and CI duration.baseline.jsonunchanged.Found by an automated bloat review (2026-11-09). Counts verified by hand; the disk and link-time benefit is plausible but not measured yet.
Filed from a five-agent review of master @
e3ec6ead(bloat, robustness, agent usefulness, docs, architecture). Every finding was spot-checked in the main session before filing.Merged into #42.
Explicit guest/guest-kit/sdk-test harnesses exist; the requested indexer/daemon/MCP/CLI consolidation is not delivered.
Remaining: Test binaries and isolation, including usefulness audit and before/after measurements.