Skip to content

perf(ci): remaining build-performance levers (shard, coverage-gate, runner, path-filter) — follow-ups to #357 #363

Description

@scottschreckengaust

Summary

Umbrella tracking issue for the remaining CI build-performance levers identified during the profiling that produced #357. Item #1 of the original 5 recommendations is done (PR #359 — skip the redundant jest type-check via isolatedModules): build step 710s → 346s (−51%), //cdk:test 649s → 298s. This issue tracks the other four.

Each is its own measurable experiment; this issue holds the sequence, rationale, and implementer notes. Spin out a child issue per item when work starts (governance per ADR-003).

Recommendations — status & remaining work

# Recommendation Status Effect
1 Skip the redundant jest type-check (transpile-only; was originally framed as "swap to @swc/jest") Done — PR #359 build step 710s → 346s (−51%); //cdk:test 649s → 298s
2 Shard the CDK suite across a job matrix (jest --shard=N/M) ⬜ Open ~298s → ~75–100s wall (4-way); stacks on top of #1
3 Gate collectCoverage to merge_group only (skip on PR push) ⬜ Open trims instrumentation on the high-frequency PR event
4 Bump the default runner (4-core → 8/16-core; workflow already supports the label path) ⬜ Open direct win for jest workers + parallel synth
5 Path-filtered builds (dorny/paths-filter) so docs/CLI/agent-only PRs skip //cdk:test ⬜ Open biggest win for the long tail of non-CDK PRs

Suggested sequencing

  1. Docs: specify that you can't use the agent with the canned repo #2 (shard) — attacks the now-dominant 298s long pole directly; ~298s → ~75–100s. Biggest remaining bang.
  2. feat: add Iteration 3e for memory security and integrity (OWASP ASI06) #5 (path filters) — orthogonal; removes the whole tax from docs/CLI/agent-only PRs.
  3. feat: add FargateAgentStack as alternative compute backend #4 (bigger runner) — cheap experiment, immediate, but recurring $ cost; good to A/B against Docs: specify that you can't use the agent with the canned repo #2.
  4. Docs: user guide hard-codes us-east-1 #3 (PR-only coverage) — smallest win; fold in opportunistically.

Insights for implementers

Definition of done (this umbrella)


🤖 Generated with Claude Code

Metadata

Metadata

Labels

approvedWhen an issue has been approved and ready

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions