Repository navigation
Open
Description
Documenting the state and the options so the effort is plannable later. Priority and scheduling are the maintainer's call; this issue documents the current state and the candidate approaches so the effort is plannable. Nothing here blocks a release.
The inventory (2026-09-29)
- Tests collected: ~16,100 (up from ~14,250 a week ago — the quality campaigns added ~1,900: race pins, boundary pins, contract pins; zero real tests removed).
- CI shape: 30 required+reporting legs per PR: lint, typecheck, coverage, build, security, e2e, slow-suite, load-sensitive (serial), test ×3 Python versions, 9× test-extras, 5× test-cross, test-timescale, system-e2e ×4 (numbered shards), deploy (release-gated).
- Known timings: the fast unit tier ≈ 3 min (); the full integration tier ≈ 10–15 min per engine (real containers per test pair); system-e2e shards ≈ 10–16 min each; the coverage leg ≈ 40 min — the suite's runtime is near its CI window; slow-suite + load-sensitive are serial by design. A full PR cycle ≈ 40–50 min wall-clock; the serial review/merge queue pace ≈ one landing per cycle.
The pain
- The coverage leg is the long pole (a full suite re-run under coverage) — it gates every merge.
- The integration tier's container strategy: real containers per test-pair = honest but heavy; 3,400+ integration tests × containers.
- The system-e2e tier: 4 shards × ~15 min, wall-clock-bound fleet tests (the load-sensitivity class is known and being fixed at the pin level).
- Every PR re-runs everything: no test-selection/touched-lane mechanism; a docs-only PR costs the same as a src-only one (the deploy-leg deadlock was a symptom of this shape).
- The serial review queue (one PR at a time by policy) multiplies the wall-clock cost per landing.
The optimization axes (for later consideration — none decided)
- Touched-lane test selection (pytest-testmon/test-checkmate class): skip legs whose paths didn't change — the biggest single win for tests-only/docs-only PRs.
- Coverage leg consolidation: merge coverage into the version legs (one instrumented run instead of two full suites) or shard it.
- Container reuse/pooling in CI (the suite already supports shared-container fixtures) — tradeoff: isolation honesty.
- system-e2e shard rebalancing: the 4 shards are uneven (the fleet tests dominate one shard).
- Matrix pruning: the 9 extras × the cross matrix — are all combinations load-bearing per PR, or nightly?
- A merge queue (GitHub merge queue) to batch the serial queue's landings without breaking the one-at-a-time policy.
- Nightly full-matrix vs per-PR essentials — the classic split; requires deciding which legs are release-blocking vs informational.
Constraints any solution must keep
- The strict ruleset (all required legs green, up-to-date branches) — the speedup must come from FEWER/FASTER legs, not weaker gates.
- The load-sensitive/serial lane stays serial (its tests are load-sensitive by nature).
- No flake-tolerance increases; the weather classes' pins stay honest.
- Real-container integration honesty — the twins' differentials are load-bearing.
Metadata
Metadata
Assignees
Labels
No labels
Activity
[-]meta: the test estate's runtime and cost — inventory, pain, and the optimization axes (not being worked now)[/-][+]meta: the test estate's runtime and cost — inventory, pain, and the optimization axes[/+]