Interview Prep/GitHub Actions/Pipeline Design & Triggers

Developers complain CI takes 25 minutes. Where do you start?

IntermediateScenarioPipeline Design & Triggers
Answer

Situation read → Need data before optimizing.

What I'd do →

  1. Pull timings: gh run view <id> --json jobs --jq '.jobs[] | {name, startedAt, completedAt}' across 20 runs, and check queue time vs execution time.
  2. Look for: serial jobs that could be parallel, missing caches (setup step minutes), Docker builds without layer cache, tests not sharded, a full matrix on every PR.
  3. Fix in order of impact: caching, parallelism with needs graph, test sharding with matrix, PR-only reduced matrix, cancel superseded runs.
  4. If queue time dominates, the account's concurrency limit or self-hosted capacity is the bottleneck, not the YAML.

Why → Queue time and run time have completely different fixes.

Interview tip → Quote a before-and-after number from your own experience.

All GitHub Actions questions Roadmap: GitHub Actions

More on Pipeline Design & Triggers