Skip to content

[CI] enable fail-fast for merge-group runs#3978

Open
mitchdz wants to merge 2 commits intoNVIDIA:mainfrom
mitchdz:fail-fast-merge-group
Open

[CI] enable fail-fast for merge-group runs#3978
mitchdz wants to merge 2 commits intoNVIDIA:mainfrom
mitchdz:fail-fast-merge-group

Conversation

@mitchdz
Copy link
Collaborator

@mitchdz mitchdz commented Feb 17, 2026

Summary

Enable fail-fast: true for matrix jobs when the workflow is triggered by a merge group (merge queue). For normal PR/push runs, matrix jobs keep fail-fast: false so the full matrix still runs for debugging.

Motivation

When a merge-group run has a failing job, we want the run to fail quickly so the merge group is marked failed and the queue can move on to the next group. With fail-fast enabled only for merge-group:

  • The first failing matrix combination cancels the rest of that job’s matrix (saves time and runners).
  • The workflow run fails as soon as that job fails, so the merge group check fails and the next groups can start sooner.
  • Regular PR and push runs are unchanged and still run the full matrix for debugging.

Changes

  • Set fail-fast: ${{ github.event_name == 'merge_group' }} on all matrix jobs: devdeps, wheeldeps, source_build, build_and_test, gen_code_coverage, docker_image, python_wheels, and binaries.

Signed-off-by: Mitchell <mitch_dz@hotmail.com>
@github-actions
Copy link

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

@github-actions
Copy link

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

Copy link
Collaborator

@1tnguyen 1tnguyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants