All jobs / Engineering manager / tech lead / Code & Development Practices
Engineering manager / tech lead interview question · 3–5 years
The pipeline takes fifty minutes, and most of it is end-to-end tests running against a deployed environment.
What do you change?
The strongest answer
Split it: fast unit and integration tests block the merge, the end-to-end set runs in parallel and after merge, and each check moves to the cheapest level that can still catch its bug
Why it works
Right — stage the feedback, and push each check down to the cheapest level that still catches the bug.
What a good answer covers
- Stage the feedback.
- Fast checks block the merge.
- End-to-end runs in parallel.
- Test at the cheapest level.
Answers that fall short
- Close, but not the strongest: Run the end-to-end tests in parallel across more machines so the pipeline finishes sooner
More machines buy time and no change in shape; the pipeline slows down again as the suite grows. - Weak: Move the end-to-end tests to a nightly run so the pipeline is fast again
Nightly is a real option, but on its own it means a whole day of changes before you learn anything. - Red flag: Delete most of the end-to-end tests; they are slow and they are the ones that keep failing
Deleting the tests that catch integration bugs to make a graph look better trades feedback for speed.
Who gets asked this
More Code & Development Practices questions
- 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?
- A developer asks what the CI pipeline is actually for. What do you tell them?
- 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?