Interview Prep/CI/CD/Pipeline Design and Architecture

What is your strategy for pipeline failures that are not code related (infra flakiness)?

IntermediateProductionPipeline Design and Architecture
Answer

Classify failures. Infrastructure failures (runner lost, registry 503, network timeouts) get targeted automatic retries: GitLab retry: when: runner_system_failure, retry wrappers on docker pull and package downloads, mirrors/caches for registries. Test failures do not auto-retry blindly. We tag the cause of each failure in metrics, so we can see that "40% of red builds are Docker Hub rate limits" and fix that with a pull-through cache rather than more retries.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Pipeline Design and Architecture