All jobs / DevOps / SRE / cloud / Git
DevOps / SRE / cloud interview question · 3–5 years
Production runs v2.3.0. main has two weeks of unreleased work. A critical bug must ship today.
What is your release workflow for this?
The strongest answer
Branch from the v2.3.0 tag, fix and test there, tag v2.3.1 and deploy it; then merge or cherry-pick the fix into main so the next release does not regress
Why it works
Right — ship only the fix, on top of what is actually running, and close the loop with main. Both halves matter.
What a good answer covers
- Branch from what is running.
- Ship only the fix.
- Tag the patch release.
- Merge the fix back to main.
Answers that fall short
- Close, but not the strongest: Branch from the tag, fix, tag v2.3.1 and deploy — done
Close, but without merging back the bug returns with the next release from main. - Weak: Deploy main; the other two weeks were going out eventually anyway
You would ship two weeks of untested change under the label of an emergency — the risk is much larger than the fix. - Red flag: Patch the file on the production servers now and sort out git later
Editing production by hand makes the artifact and the repo lie about what is running; it is an incident, not a workflow.
Who gets asked this
More Git questions
- p95 latency doubled somewhere in the 60 commits between last week’s release and today’s. Nothing in the diffs…
- What do you standardise, and where do you allow a difference?
- When do you rebase, and when must you never?
- A commit on main broke the build; three teammates have already pulled it. How do you undo it?
- What is a git tag for in a release pipeline?