All jobs / Automation developer / Automation Fundamentals
Automation developer interview question · 1–3 years
How do you debug a flake that only happens in CI?
The strongest answer
Reproduce with the trace, clock, and seed: wait, shared data, time, and parallelism — I do not add sleep and close the ticket
Why it works
Exactly. Flakes have causes: time, data, waits, isolation. Traces exist so you stop guessing.
What a good answer covers
- Use the trace and the seed.
- Check waits, data, time, parallel.
- Do not timeout your way out.
- Do not outsource the cause.
Answers that fall short
- Close, but not the strongest: Bump the timeout to 60s and move on
A bigger timeout is a slower guess. - Weak: Mark it flaky in the runner and forget it
A label without an owner is a junk drawer. - Red flag: Blame the cloud vendor and skip the job
The vendor did not write your selector.
Who gets asked this
More Automation Fundamentals questions
- The framework offers retries: 2 on every test. When do you use it?
- You quarantine a flake. What else is required?
- When do you stub the payment API in a UI test?
- The UI pack is 70% of runtime and finds 10% of bugs. What do you do?
- How do you talk about flakes with a director?
- People rerun the PR pipeline “until green.” What do you change?
- What is a fair quarantine SLA for a money-path flake?
- What does a good flake RCA fit on?