A shared reusable workflow change broke 120 pipelines on Monday. How do you prevent a repeat?
IntermediateScenarioReuse at Scale: Reusable Workflows & Actions
Answer
Situation read → Consumers referenced @main and got an untested change.
What I'd do →
- Stop
@mainreferences: publish semver tags; consumers use@v2or SHAs. - Add a test matrix in the workflows repo that calls each reusable workflow against sample apps on every PR.
- Release breaking changes as a new major with a migration note and overlap period.
- Canary: bump a few internal repos first via Renovate grouping.
Why → Shared CI is production software and deserves release engineering.
Interview tip → "We treat the platform workflow repo like a library with semver."
More on Reuse at Scale: Reusable Workflows & Actions
Forty microservice repos each have a slightly different copy of the same build workflow. How do you standardize?IntermediateA team wants to share "checkout, setup Java, Maven cache, run Sonar" steps. Reusable workflow or composite action?BeginnerA called reusable workflow needs a Sonar token, an npm token and AWS access. How do you pass them?AdvancedYou want to ensure only the central deploy workflow can assume the production AWS role, not arbitrary workflows in app repos. How?AdvancedYou need an action that comments a Terraform plan summary on PRs and must work on Linux and Windows. Which kind?BeginnerA reusable workflow needs to return the deployed URL to the caller. How?Beginner