Interview Prep/CI/CD/GitHub Actions

A very long job is flaky near the end and you want to retry only failed jobs.

BeginnerScenarioGitHub Actions
Answer

Situation read → Rerunning the whole workflow wastes time.

What I'd do →

  1. Use "Re-run failed jobs" in the UI or gh run rerun <id> --failed.
  2. Split the long job into smaller ones so a retry is cheap.
  3. Fix the flake, and use step-level retry only for network calls.

Why → Smaller jobs mean smaller retries and clearer failure signals.

Interview tip → Say you quantify flakiness rather than normalise reruns.

All CI/CD questions

More on GitHub Actions