Fifty teams have copy-pasted pipelines that have drifted apart. How do you standardise them?
IntermediateScenarioPipelines at scale
Answer
Situation read → Copy-paste means every security fix has to be applied 50 times. Centralise the logic, keep a thin per-repo file.
What I'd do →
- Build a small set of reusable workflows (GitHub Actions) or templates (GitLab
include, Jenkins shared library) for the common paths: build-and-test, container build, deploy.
jobs:
ci:
uses: acme/platform-workflows/.github/workflows/container-ci.yml@v3
with:
service-name: checkout
secrets: inherit
- Version them with tags (
@v3) so teams upgrade on purpose, and publish a changelog. - Migrate in waves, starting with teams that want help, and make the template easier than the custom version.
- Allow escape hatches (extra steps before or after) so teams don't fork.
- Use a required workflow or ruleset for non-negotiable checks (secret scanning, SAST).
Why → Central templates make the secure, fast pipeline the easiest choice.
Interview tip → Mention versioning templates; an unversioned template change breaks 50 teams at once.
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