All jobs / Automation developer / CI/CD
Automation developer interview question · 5+ years
You are writing the rule that decides whether a new test runs on every pull request or only nightly. What is the rule?
The strongest answer
On the pull request if it is fast, deterministic and covers something we would block a merge for; nightly for the slow, the broad matrix and anything whose failure needs a person — and every nightly failure gets an owner by morning or the test leaves the pack
Why it works
Right — and the ownership clause is what stops nightly becoming a graveyard nobody reads.
What a good answer covers
- Block a merge only for blocking risk.
- Slow and broad runs on a train.
- Every nightly failure gets an owner.
- Never demote a test to hide a number.
Answers that fall short
- Close, but not the strongest: Fast and critical tests on the pull request, and everything else nightly
The right shape, missing the part that keeps nightly alive: a named owner for every failure. - Weak: Run everything on the pull request — anything that only runs nightly ends up ignored
A fair worry, and it is answered by ownership, not by making every merge wait. - Red flag: Whatever fits the time budget; when the pull request job gets slow we move tests to nightly until it is fast again
Moving tests until the number looks good is how coverage quietly drains out of the gate.
Who gets asked this
More CI/CD questions
- How do you treat the PR test job like a product?
- A thousand UI tests must finish in 15 minutes. What do you challenge first?
- The nightly suite has been red for three weeks. What do you do?
- Audit asks for “proof of testing.” What do you hand them?
- When should the automated pack run?
- What belongs in the smoke the pipeline must pass to ship?
- A CI test fails and the log says “element not found.” What else should the job keep?
- Your CI job prints test output to the console and nothing else. Why do teams also emit a JUnit XML report?