All jobs / Engineering manager / tech lead / Code & Development Practices
Engineering manager / tech lead interview question · 0–1 years
A developer asks what the CI pipeline is actually for. What do you tell them?
The strongest answer
It builds and tests every change the same way on a clean machine, so within minutes we know whether the branch is safe to merge — not on someone’s laptop, not next week
Why it works
Exactly — the same build for every change, on a clean machine, with an answer fast enough to act on.
What a good answer covers
- Every change, same way, fast.
- Clean machine, not a laptop.
- An answer in minutes.
- Red means stop.
Answers that fall short
- Close, but not the strongest: It runs the tests automatically so nobody has to remember to run them before merging
Running the tests is most of it; the clean environment and the speed of the answer are the rest. - Weak: It is how we deploy to production; that is the point of having a pipeline
Deployment may be a later stage, but continuous integration is about proving every change integrates. - Red flag: It is a formality — when it fails and we know the change is fine, we merge anyway
A pipeline people override on judgement has stopped telling anybody anything.
Who gets asked this
More Code & Development Practices questions
- When is a story done on your team?
- Pull requests on your team sit for two or three days, and the branches grow while they wait. What do you do?
- The test suite fails on about one run in five, and the team has learned to hit “re-run”. What is your policy?
- You inherit a team with almost no automated tests. Where do you start?
- Trunk-based development or long-lived feature branches — which do you put a team on, and why?
- The pipeline takes fifty minutes, and most of it is end-to-end tests running against a deployed environment…
- Your organisation releases once a month, in an evening, with everyone on standby. How do you get to weekly or…
- As tech lead, what is code review on your team for?