AI Hints
CI/CD with GitHub Actions · Lesson 129 of 138

Interview Question 3

Fixing a bad pipeline.

⏱ 2 min read▶ Video at 2:30:20🎓 Free
Watch this lesson in the CI/CD with GitHub Actions courseWatch on YouTube ↗Full CI/CD with GitHub Actions course

Third question. Your team's pipeline takes forty minutes, and fails randomly about one time in five. What would you do? This tests how you solve real problems.

Interview Question 3
From the video: Interview Question 3
  • Forty minutes
  • Fails one in five
  • What would you do?

A strong answer

First, measure. Look at step timings, and track which tests fail randomly. Then fix trust first, because flaky tests make people ignore red. Quarantine and fix the flaky tests. Then speed up. Cache dependencies, run jobs in parallel, split the tests, and skip unneeded work.

  1. Measure
  2. Fix flaky tests
  3. Cache and parallelize
  4. Skip unneeded work
A strong answer
From the video: A strong answer

Showing judgement

Explain your priorities, not just a list of tricks. Trust comes before speed, because a fast but untrusted pipeline is useless. Set a target, like ten minutes. And make small changes, measuring each one, so you know what helped.

keyvalue
Trust firstthen speed
A targetlike 10 minutes
Small stepsmeasure each
Share resultswith the team

Summary

Measure, fix flaky tests first, then speed up with caching, parallel jobs, and skipping. Next, a cheat sheet of workflow syntax.

Key takeaways
  • Measure first
  • Trust before speed
  • Then speed up
Next up: Cheat Sheet: Workflow Syntax — all the keys in one place