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 →
interruptible: trueon jobs and enable "auto-cancel redundant pipelines" so superseded commits stop.- Use merge trains/queues and
needsDAG. - Autoscale runners, use shallow clones (
GIT_DEPTH: 20) and fetch strategyGIT_STRATEGY: fetchon persistent runners. - 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.
More on GitLab CI
How does GitLab CI/CD work at a high level?BeginnerWhat is a GitLab Runner and what executors exist?IntermediateWhat are the types of runners (shared, group, project) and tags?IntermediateHow do `rules:` work and how do they replace `only/except`?IntermediateWhat are workflow rules and how do they prevent duplicate pipelines?AdvancedHow do artifacts and cache differ in GitLab CI?Intermediate