Skip to content

ci: run the macOS recipe lanes on master, not on pull requests - #1522

Merged
transfix merged 1 commit into
masterfrom
ci/macos-on-master
Nov 24, 2026
Merged

transfix merged 1 commit into
masterfrom
ci/macos-on-master

Conversation

@transfix

Copy link
Copy Markdown
Owner

The macOS recipe lanes were the last macOS jobs every pull request needed. The account runs 5 hosted macOS jobs at a time, so those two lanes still set how fast PRs merged, after package-macos moved to pushes on 2026-11-13. This moves them to master.

What runs where (ci-recipe.yml)

Run Lanes
pull request ubuntu-22.04 Release/Debug, windows-2022 Release
pull request with the macos label all five (adding the label restarts the run)
push to master macos-latest Release/Debug
push to ci/full/**, workflow_dispatch all five
  • A small plan job on a Linux runner builds the lane list, and build-recipe takes it as its matrix. A matrix entry can't be skipped with an if:. A job-level if: can't see matrix, and a step-level one still holds a macOS runner just to skip.
  • A newer push to master doesn't cancel master's run in progress. Merges land faster than a macOS lane finishes, so cancelling would leave master with no finished macOS run. A newer push waits, replacing any push already waiting.
  • Adding a label other than macos gets its own concurrency group and builds nothing, so it doesn't cancel the PR's run.
  • Check names are unchanged (recipe / <os> / <config>).

Not changed

publish-cvcpkg.yml and release.yml build and publish the macOS packages on cvcpkg exactly as before.

Branch protection

Once this merges, recipe / macos-latest / Release and recipe / macos-latest / Debug come off master's required checks. PRs no longer report them, so they would otherwise wait forever. Before tagging a release, check that master's macOS run is green.

Test

  • I ran the plan script locally for each event type: a PR with and without the label, a macos label, another label, a push to master, a push to ci/full/**, and workflow_dispatch. Each gave the lanes in the table.
  • This PR's own run is the first live check. It should show the plan job and the three Linux/Windows lanes, with no macOS lanes.

The account runs 5 hosted macOS jobs at a time, and the two macOS recipe
lanes were the last macOS jobs every PR needed (package-macos moved to
pushes on 2026-11-13), so they still set how fast PRs merged.

A plan job now builds ci-recipe.yml's lane list: pull requests get the
Linux and Windows lanes, plus macOS when the PR has the `macos` label
(adding the label restarts the run with them); a push to master gets
the macOS lanes; ci/full/** pushes and workflow_dispatch get all five.
Master's runs are not cancelled by newer pushes, so each macOS run
finishes. publish-cvcpkg.yml and release.yml, which build the macOS
packages cvcpkg publishes, are unchanged.
@transfix
transfix merged commit 779cc8d into master Nov 24, 2026
3 of 30 checks passed
@transfix
transfix deleted the ci/macos-on-master branch November 24, 2026 05:21
transfix added a commit that referenced this pull request Nov 24, 2026
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