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.
More on Pipeline Design and Architecture
What does a good production CI/CD pipeline look like end to end?BeginnerWhat is your target feedback time for CI and how do you hit it?IntermediateHow do you structure repositories: app repo, config repo, pipeline library?IntermediateHow do you design a pipeline for a monorepo with 50 services?AdvancedShould every merge to main deploy to production automatically?IntermediateHow do you keep pipeline definitions DRY across hundreds of repos?Intermediate