Interview Prep/GitHub Actions/Pipeline Design & Triggers

A flaky test fails 1 in 10 runs and blocks merges. What do you do with the pipeline?

BeginnerScenarioPipeline Design & Triggers
Answer

Situation read → Pipeline reliability problem with a code root cause.

What I'd do →

  1. Quantify: search failed runs for the test name (gh run view --log-failed), tag it.
  2. Quarantine: move it to a separate non-blocking job with continue-on-error: true and a tracking issue with an owner and date.
  3. Fix the cause (time, ordering, shared state, network) and move it back.
  4. Avoid blanket retries in the pipeline; if used, retry only the specific test with the framework's retry and report retries.

Why → Retries hide flakiness; quarantine keeps visibility while unblocking the team.

Interview tip → "Flaky tests are bugs with an owner and a deadline."

All GitHub Actions questions Roadmap: GitHub Actions

More on Pipeline Design & Triggers