Repository navigation
CI: macOS build on the UCSLabs Mac for trusted runs - #152
Conversation
Pushes and same-repository pull requests build on the self-hosted Mac (org runner group macos); fork pull requests keep GitHub's macos-15, so outside code never runs on it. Frees the org's five hosted macOS slots, which MailCraft shares. The check name is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 43 minutes. View limit details
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. |
Jeremy8776
left a comment
There was a problem hiding this comment.
Works, with one concern. The build (macos-15) job ran on macstudio01 (group macos) and every step passed. Fork PRs stay on hosted macos-15, and release.yml is unchanged.
Concern: Dependabot PRs run on the Mac
Dependabot opens its PRs from branches in this repository, so head.repo.full_name == github.repository is true for them. A dependency bump then compiles the new crate versions' build scripts and proc macros on macstudio01.
The runner is persistent. Anything a build script leaves in ~/.cargo, the target folder or the rust-cache would carry over to later builds of main.
Suggested fix, either of:
- add
&& github.actor != 'dependabot[bot]'to the condition, so dependency bumps stay on hostedmacos-15; or - make the runner ephemeral (JIT runners), so each job starts clean.
Nit
The comment says "org runner group macos", but runs-on as a label array matches labels only. If the group should be pinned, use the object form:
runs-on:
group: macos
labels: [self-hosted, macOS, ARM64]Not checked
I could not read the runner group's repository and workflow restrictions (no org admin rights).
@Jeremy8776 had the idea. Claude Code had the keyboard.



On Team plan the org gets five hosted macOS jobs at once, shared with MailCraft. Today #151 sat in the queue for 12 minutes because of that.
buildjob's macOS entry now runs on[self-hosted, macOS, ARM64](macstudio01, org groupmacos) for pushes to main and for PRs from branches in this repo.macos-15, so outside code never runs on our Mac. Approval for fork PR workflows is alreadyall_external_contributors.build (macos-15).release.ymlis unchanged: releases keep a clean hosted runner and keep signing secrets off long-lived machines.zizmor reports no findings. This PR comes from a branch in this repo, so its own CI is the first run on the Mac. If rustup or the Xcode command-line tools are missing there, that run will show it.
🤖 Generated with Claude Code