How do you keep the pipeline fast when the default branch has 200 commits a day?

AdvancedScenarioGitLab CI
Answer

Situation read → High pipeline concurrency and queue pressure.

What I'd do →

  1. interruptible: true on jobs and enable "auto-cancel redundant pipelines" so superseded commits stop.
  2. Use merge trains/queues and needs DAG.
  3. Autoscale runners, use shallow clones (GIT_DEPTH: 20) and fetch strategy GIT_STRATEGY: fetch on persistent runners.
  4. Cache aggressively and shard tests.

Why → Cancelling stale work and shortening the critical path improves developer wait time.

Interview tip → Do not mark deploy jobs interruptible.

All CI/CD questions Roadmap: GitLab CI/CD

More on GitLab CI