Modern QA2026Fail-Fast Strategy — tiles
Log inJoin
29 / 48 · 16 CI/CD Pipelines · Pipeline Optimization← prev⊞ allnext →☰ Read as one page

5.4Fail-Fast Strategy

The fail-fast setting controls whether other matrix jobs are cancelled when one fails.

strategy:
  fail-fast: true   # Cancel all jobs if one fails
  fail-fast: false  # Let all jobs complete regardless

When to use fail-fast: true:

  • Unit tests: If one shard fails, the others are likely broken too. Cancel them to save time.
  • Lint/typecheck: If linting fails, there is no point running tests.

When to use fail-fast: false:

  • Browser tests: You want to know the full scope of failures across all browsers and shards. A test that fails in Firefox but passes in Chrome is a different bug than one that fails everywhere.
  • Integration tests with external services: Failures might be isolated to specific test cases.