Skip to content

ci: run main.yml checks on merge_group (prerequisite for a merge queue)#423

Merged
msrathore-db merged 1 commit into
mainfrom
msrathore/ci-merge-group-trigger
Jun 5, 2026
Merged

ci: run main.yml checks on merge_group (prerequisite for a merge queue)#423
msrathore-db merged 1 commit into
mainfrom
msrathore/ci-merge-group-trigger

Conversation

@msrathore-db

Copy link
Copy Markdown
Contributor

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 the merge_group event. main.yml currently triggers on push/pull_request only, so enabling a queue without this change would leave every queued PR stalled waiting for checks that never run.

What

Adds merge_group: to main.yml's on: 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 on pull_request. Mirrors the Python connector (code-coverage.yml runs on merge_group for the same reason).

Sequence

  1. This PR (merge_group trigger) — merge first.
  2. Then add the merge_queue rule to the main ruleset (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.

…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>
@msrathore-db msrathore-db merged commit 03936ec into main Jun 5, 2026
8 checks passed
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.

2 participants