Fix 1 of 1
Speed up CI and quarantine flaky tests
Most slow pipelines have a few big causes: no caching, tests not split, and flaky tests that force reruns. Fixing these once saves every engineer time every day.
- 1Look at your CI timing report and find the three slowest steps.
- 2Turn on dependency and build caching, and run only the tests affected by the change where your tooling supports it.
- 3Split the test suite across parallel runners.
- 4Use flaky-test detection (Trunk, Buildkite Test Engine, Datadog CI Visibility or your CI's built-in) to quarantine flaky tests and open a ticket for each.
- 5Set a target build time and review it monthly.
Tools: GitHub Actions, GitLab CI, CircleCI or Buildkite · Trunk Flaky Tests · Datadog CI Visibility · Nx, Turborepo or Bazel caching