Repository navigation
ci: run the pull request build in the merge queue - #1544
Conversation
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.
|
@danditomaso is attempting to deploy a commit to the Meshtastic Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Description
#1534 merged with a failing
build-and-packagebecausemainhas no required status checks, so the merge queue's ALLGREEN has nothing to wait for. Makingbuild-and-packagerequired needs this first. The queue tests each entry on a temporary branch, andpr.ymlonly ran onpull_request, so a required check would never report there and every queued PR would time out after 60 minutes.Changes Made
Chores
pr.ymlonmerge_groupas well aspull_request.github.refwhen there's no PR number. Otherwise every queue entry sharespr--ciand they cancel each other.merge_groupthere's nopull_requestpayload, so the job always runs.Testing Done
oxfmt --checkpasses on the workflow.merge_grouprun can only be exercised by the queue itself. This PR's own queue entry is the first real test.build-and-packagegets added as a required check in the "main protection" ruleset. That ruleset change isn't in this PR.Summary by CodeRabbit