How do you speed up test suites that take 30+ minutes?
IntermediateProductionMetrics, Performance and Cost
Answer
Run tests in parallel on a machine (pytest -n auto, go test -p, JUnit parallel forks), shard across runners using historical timing, run affected tests only (test impact analysis, Nx/Bazel), replace slow E2E with API-level or contract tests, use in-memory or Testcontainers databases with reuse, avoid sleep waits, and move rare slow tests to nightly. Keep a time budget per suite and watch it like any other SLO.
More on Metrics, Performance and Cost
How do you measure DORA metrics in practice?IntermediateWhat do the DORA performance levels look like, and how do you use them?IntermediateWhat are common ways DORA metrics get gamed or misread?AdvancedWhich pipeline metrics do you monitor for the CI platform itself?IntermediateHow do you cut CI cost without hurting developer speed?IntermediateHow do you use a remote build cache (Gradle, Bazel, Turborepo, Nx)?Advanced