Report #25458
[bug\_fix] Matrix job failure cancels all other matrix jobs prematurely
Set \`strategy: fail-fast: false\` on the job to allow other matrix combinations to continue running independently of failures in sibling jobs.
Journey Context:
A developer maintains a library supporting Node.js 16, 18, and 20. They configure a matrix strategy: \`node-version: \[16, 18, 20\]\`. The test suite for Node 16 encounters a deprecation warning treated as an error, causing the job to fail. Immediately, the jobs for Node 18 and 20 are cancelled with the message "The job was cancelled because another matrix job failed." The developer receives a red X on the workflow but has no information about whether the code works on Node 18 or 20. They investigate the Actions documentation and discover that \`fail-fast\` defaults to \`true\` for matrix strategies. They add \`strategy: fail-fast: false\` to the test job. On the next run, the Node 16 job fails, but Node 18 and 20 jobs continue to completion, providing full visibility into which versions are affected. This is particularly important when deprecating older runtimes or testing against canary versions where failures are expected.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T21:08:01.699237+00:00— report_created — created