Skip to content

CI: Fall back to other macOS runners when one is not acquired - #669

Closed
albert-steinhof wants to merge 4 commits into
acidanthera:masterfrom
bridgepatcher:ci/macos-runner-fallback
Closed

albert-steinhof wants to merge 4 commits into
acidanthera:masterfrom
bridgepatcher:ci/macos-runner-fallback

Conversation

@albert-steinhof

Copy link
Copy Markdown
Contributor

The macOS XCODE5 build was cancelled with "The job was not acquired by Runner of type hosted even after multiple attempts" because GitHub's macOS arm64 runners were short on capacity.

The macOS jobs in Build and Analyze now try macos-latest first. If that job does not succeed, they fall back to macos-26, macos-15, macos-26-intel and macos-15-intel in that order. Each fallback only runs if no earlier job succeeded. A result job fails if none of them did, so a real failure still turns the run red. The macOS artifact and release uploads overwrite files left by an earlier failed attempt.
This fixes an error when for example the macOS-latest runner is overloaded and fails to take the action, to fall back to the next one that is not busy and can take that action.

albert-steinhof and others added 4 commits December 3, 2026 11:28
Generate SHA256SUMS.txt plus a .sha256 file per zip in the macOS job,
include them in the CI artifacts and the job summary, attest build
provenance for the release zips, and upload all checksum files to the
GitHub release alongside the binaries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WB1L24sLVsB1pbh1hUZh3i
CI: Publish SHA256 checksums and build provenance with releases
The macOS XCODE5 build was cancelled with "The job was not acquired by
Runner of type hosted even after multiple attempts" because GitHub's
macOS arm64 runners were short on capacity.

The macOS jobs in Build and Analyze now try macos-latest first. If that
job does not succeed, they fall back to macos-26, macos-15,
macos-26-intel and macos-15-intel in that order. Each fallback only runs
if no earlier job succeeded. A result job fails if none of them did, so
a real failure still turns the run red. The macOS artifact and release
uploads overwrite files left by an earlier failed attempt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WB1L24LAX3ADTZfTgzmZ53
Resolve the build.yml conflict with #1: the SHA256 checksum, attestation
and release upload steps move into the shared macos-steps anchor so every
fallback runner runs them, and the id-token/attestations permissions are
part of macos-permissions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WB1L213BE9JhHD1A7YMQo4
@vit9696

vit9696 commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

We would rather not run CI on random OS version, so it is better to fail than to succeed on something we do not know about.

@vit9696 vit9696 closed this Dec 3, 2026
@albert-steinhof

Copy link
Copy Markdown
Contributor Author

We would rather not run CI on random OS version, so it is better to fail than to succeed on something we do not know about.

I opened another PR so it no longer runs on macos-latest: #670
macos-latest is now macOS Tahoe, but GitHub could release a Golden Gate runner and with no notice your runners may all of a sudden start running on Golden Gate, without a warning. This PR exactly fixes this, so the team would be the one managing on which release runs the runner.
@vit9696

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants