A change to a shared pipeline template broke builds in 80 repos at once. How do you prevent that?
IntermediateScenarioPipelines at scale
Answer
Situation read → The template is production software for every team, but it was released like a quick edit.
What I'd do →
- Immediate: revert the template change, and post in the platform channel.
- Version templates with semver tags; consumers pin to a major (
@v3), and breaking changes go to@v4. - Test the template: a set of sample repos (Node, Python, Go, Docker) run the new version in CI before release.
- Roll out gradually: canary a few volunteer repos on the new version before moving the
v3tag. - Changelog and announcement for every release.
Why → Templates multiply both fixes and breakages; treat them with the same release discipline as code.
Interview tip → Say "the platform is a product"; it shows you think about internal users.
More on Pipelines at scale
The CI pipeline takes 45 minutes. Developers want it under 10. How do you approach it?IntermediateYou have a monorepo with 40 services. Every commit builds and tests all of them. How do you fix that?AdvancedFlaky tests fail 1 in 5 runs and developers just click "re-run". How do you fix this culture and the tests?BeginnerYour self-hosted GitHub runners can't keep up at peak and sit idle at night. How do you run them at scale?AdvancedDocker builds in CI take 12 minutes because every runner starts with an empty cache. How do you speed them up?IntermediateHow do you secure the software supply chain from commit to production?Advanced