Skip to content

ci: run the pull request build in the merge queue - #1544

Merged
danditomaso merged 1 commit into
meshtastic:mainfrom
danditomaso:ci/pr-checks-in-merge-queue
Nov 26, 2026
Merged

danditomaso merged 1 commit into
meshtastic:mainfrom
danditomaso:ci/pr-checks-in-merge-queue

Conversation

@danditomaso

@danditomaso danditomaso commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Description

#1534 merged with a failing build-and-package because main has no required status checks, so the merge queue's ALLGREEN has nothing to wait for. Making build-and-package required needs this first. The queue tests each entry on a temporary branch, and pr.yml only ran on pull_request, so a required check would never report there and every queued PR would time out after 60 minutes.

Changes Made

Chores

  • Run pr.yml on merge_group as well as pull_request.
  • Key the concurrency group by github.ref when there's no PR number. Otherwise every queue entry shares pr--ci and they cancel each other.
  • Skip only draft pull requests. On merge_group there's no pull_request payload, so the job always runs.

Testing Done

  • oxfmt --check passes on the workflow.
  • The merge_group run can only be exercised by the queue itself. This PR's own queue entry is the first real test.
  • After this merges, build-and-package gets added as a required check in the "main protection" ruleset. That ruleset change isn't in this PR.

Summary by CodeRabbit

  • Chores
    • Build checks now run for merge-queue events, including when the associated pull request is a draft. For other pull-request events, checks continue to run only when the pull request is not a draft.
    • Workflow concurrency now accounts for events that do not include a pull-request number, helping keep merge-queue checks distinct and properly managed.

build-and-package is about to become a required check on main. The merge
queue tests each entry on a temporary branch and waits for every required
check there, but pr.yml only ran on pull_request, so the check would never
report and each queued PR would time out after 60 minutes.

Run it on merge_group too, key its concurrency group by ref when there is
no PR number (otherwise every queue entry would share one group and cancel
the others), and skip only draft pull requests.
@vercel

vercel Bot commented Nov 26, 2026

Copy link
Copy Markdown

@danditomaso is attempting to deploy a commit to the Meshtastic Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull-request workflow now listens for merge_group events. Its concurrency group uses github.ref when a pull-request number is unavailable. The build job runs for merge-group events regardless of draft status.

Changes: Pull-request workflow

Layer / File(s) Summary
Merge-group workflow conditions
.github/workflows/pr.yml
The workflow adds the merge_group trigger and uses github.ref as a concurrency fallback. The build job runs for merge-group events regardless of draft status; other events still require a non-draft pull request.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested reviewers: vidplace7

Merge Risk: Minimal · up to 3a308

This change lets the build-and-package check run on merge-queue entries, with distinct concurrency groups so entries do not cancel each other. No merge-blocking risk was found; the queue behavior will be exercised by this PR's own queue entry.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "ci: run the pull request build in the merge queue" names the main change: pr.yml now runs on merge_group events so build-and-package reports on merge-queue entries. It is specific, concise,…
Description check Passed The description covers the problem (main has no required checks, and queued entries never report on pr.yml), lists the changes under Chores, and includes a Testing Done section that notes what is veri…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "ci: run the pull request build in the merge queue" names the main change: pr.yml now runs on merge_group events so build-and-package reports on merge-queue entries. It is specific, concise, and matches the workflow diff and the PR objectives.

Full details: Description check

Explanation

The description covers the problem (main has no required checks, and queued entries never report on pr.yml), lists the changes under Chores, and includes a Testing Done section that notes what is verified and what remains untested. It omits the template's Related Issues section and the Checklist, and it does not link #1534 or #1544 with the template's Fixes/Relates to syntax. These are non-critical gaps, so the description is mostly complete.

Finishing Touches

Fix failing CI checks

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the workflow gate,
Merge groups now join the queue.
Drafts pass through that special path,
Other drafts still wait their turn.
The reference fills the missing number,
And builds hop onward, neat and true.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9cb2e8c5-0a7b-4d8a-9162-6f658c1259cb
Commits

Reviewing files that changed from the base of the PR and between df0eb52 and 3a30806.

Files selected for processing: 1

  • .github/workflows/pr.yml

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.

@danditomaso
danditomaso added this pull request to the merge queue Nov 26, 2026
Merged via the queue into meshtastic:main with commit fe4f3d6 Nov 26, 2026
3 of 4 checks passed
@danditomaso
danditomaso deleted the ci/pr-checks-in-merge-queue branch November 26, 2026 03:36
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.

1 participant