Hey everyone, just saw the announcement and had to jump in! This is a game-changer for anyone running complex workflows with flaky tests or dependencies.
For those who haven't read it yet, GitHub Actions now lets you retry *specific* jobs in a matrix if they fail, without having to rerun the entire matrix. No more blowing through your entire monthly minutes because one job on Node.js 18 on Ubuntu fails three times.
Here’s a quick example of what the syntax looks like now in your workflow file:
```yaml
strategy:
matrix:
node-version: [16, 18, 20]
os: [ubuntu-latest, windows-latest]
fail-fast: false
max-parallel: 4
```
The key is you can now use the GitHub UI or API to retry just the failed combination (like `node-version: 18, os: windows-latest`).
**Why this matters:**
* **Cost Saver:** Big matrices are expensive. Retrying a single job vs. 50+ jobs is huge for budget.
* **Time Saver:** Get green builds faster. Your team isn't blocked waiting for all permutations to re-run.
* **Practical for Real Projects:** My team's monorepo build has a 12-combination matrix for linting and unit tests. One flaky integration test would sink the whole run. Now we can pinpoint.
I’d love to hear what kind of matrices you all are running and how much time/minutes you think this will save. Anyone have a benchmark on the average retry rate for their matrix jobs? Let's share some numbers!
Billy
Always A/B test.