ci: run main.yml checks on merge_group (prerequisite for a merge queue)#423
Merged
Conversation
…erge queue) Adds a `merge_group` trigger so lint / unit-test / e2e-test / coverage run on the merge queue's transient ref. This MUST land before a merge queue is enabled on `main`: the queue gates each merge group on these required checks, and without the trigger they'd never run, stalling every queued PR. Mirrors the Python connector (code-coverage.yml runs on merge_group for the same reason). No job-level event guards, so all four required-check jobs run on merge_group exactly as they do on pull_request. Co-authored-by: Isaac Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>
vikrantpuppala
approved these changes
Jun 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Prerequisite for enabling a merge queue on
main. A merge queue gates each merge group on the branch's required status checks — but those checks only run if their workflow triggers on themerge_groupevent.main.ymlcurrently triggers onpush/pull_requestonly, so enabling a queue without this change would leave every queued PR stalled waiting for checks that never run.What
Adds
merge_group:tomain.yml'son:block. All four required-check jobs (lint,unit-test (14/16/18/20),e2e-test,coverage) have no event-level guards, so they run on the merge-group ref exactly as onpull_request. Mirrors the Python connector (code-coverage.ymlruns onmerge_groupfor the same reason).Sequence
merge_queuerule to themainruleset (Squash / ALLGREEN, mirroring Python).Enabling the queue before this lands would stall merges, so this must go first.
This pull request and its description were written by Isaac.