Summary
#1062 improved CI throughput by splitting unit/e2e lanes and partially restoring e2e package parallelism with p=2.
This issue tracks the final step: make tests isolation-safe enough to remove explicit -p and rely on Go defaults.
Target End State
- E2E/examples run with default Go package parallelism (no explicit
-p cap).
- Unit and e2e suites are isolation-safe under parallel execution.
Clarification
-p controls parallel package test binaries.
-parallel controls parallel test functions within a package (for tests using t.Parallel()).
Both should be intentionally considered in rollout and docs.
Work Plan
- Isolation audit (e2e/examples first)
- temp dirs and file paths
- env vars and process-global state
- fixed ports / network resources
- shared work dirs and module artifacts
- Unit test parallelism audit
- ensure
tparallel remains enforced
- verify places without
t.Parallel() are intentional and safe
- avoid blanket/unsafe
t.Parallel() additions
- Rollout
- step up e2e
-p: 2 -> 3 -> 4 -> default
- run stress validation (
shuffle, repeated runs) between steps
- remove explicit
-p once stability threshold is met
- Documentation
- document final
go test flags and rationale in workflow comments/docs
Acceptance Criteria
- CI e2e/examples pass reliably with no explicit
-p cap.
- No known shared-state race/isolation issues remain.
- Parallelism choices (
-p, -parallel, t.Parallel) are documented.
Related
Cross-links
Summary
#1062improved CI throughput by splitting unit/e2e lanes and partially restoring e2e package parallelism withp=2.This issue tracks the final step: make tests isolation-safe enough to remove explicit
-pand rely on Go defaults.Target End State
-pcap).Clarification
-pcontrols parallel package test binaries.-parallelcontrols parallel test functions within a package (for tests usingt.Parallel()).Both should be intentionally considered in rollout and docs.
Work Plan
tparallelremains enforcedt.Parallel()are intentional and safet.Parallel()additions-p:2 -> 3 -> 4 -> defaultshuffle, repeated runs) between steps-ponce stability threshold is metgo testflags and rationale in workflow comments/docsAcceptance Criteria
-pcap.-p,-parallel,t.Parallel) are documented.Related
nevabinary #979Cross-links