Skip to main content

Office MacBook frontend CI

One repository-scoped runner named office-macbook runs as the standard macOS account moda-ci. One runner process accepts one job at a time. It is an Apple M4 Pro MacBook Pro (Mac16,8), ARM64, 24 GB RAM, macOS 26.6.2; initial free disk was 401 GiB. It runs natively, without changing existing VM services.

Routing

Only full frontend Vitest shards in PR Checks use the Mac by default, and only for same-repository PRs. Backend, related-test jobs, guard jobs, fork PRs, and Graphite gtmq_* merge-queue candidates stay on Blacksmith. A busy or unavailable Mac queues eligible jobs; there is no automatic fallback. Apply ci:priority in GitHub or Graphite, or run:
A separate hosted label workflow cancels the active PR Checks run and starts a fresh attempt of that same run for the current revision. It does not contact the Mac. If normal cancellation does not complete within 30 seconds, it force-cancels through GitHub and waits up to another 60 seconds for the server-side terminal state, so an offline running worker cannot hold the queue. Every attempt reads live labels rather than its original event payload; new pushes also select Blacksmith while the label remains. A completed successful run is left alone. Removing the label affects future runs; it does not interrupt useful CI. Unrelated labels never enter the PR Checks concurrency group or create another PR Checks suite. The existing pr-checks-complete gate remains authoritative. Graphite queue candidates stay on Linux because their synthetic PRs do not reliably inherit the source PR’s priority label. Retargeting and unrelated metadata events still do not start PR Checks. No deployment routing changed.

Native trial evidence

Trusted revision 4b7a496f394f559464fda9ba7853ec740c643e55, frontend shard 1/2: comparison run, attempt 2. Both executed 538 test files (533 passed, 5 skipped), 5,819 JUnit cases. Bun’s download cache was absent before install on both; the Mac’s tool cache was already populated by failed setup attempts. Turbo was forced to execute with no remote-cache credentials. The Mac’s first full-history checkout made its whole job slower even though test execution was faster. These are measurements of one shard, not a sustained throughput benchmark. No Linux-specific test failure was observed in that shard. The later full native shard 2 run found four UTC-dependent assertions in evals.render.test.tsx and trace-translation.test.tsx; CI now sets TZ=UTC and includes TZ in the Turbo environment hash, matching hosted Linux without changing the Mac system zone. No VM process was detected in the process inventory; this was not a trial with confirmed running iMessage VMs. The initial trial failed before tests because Apple Command Line Tools were missing; installation enabled Apple Git 2.50.1. PR-path Bash 4 mapfile and jq requirements were replaced with Bash 3-compatible array loading and Node JSON processing while preserving affected selection and result metadata.

Operation

Keep AC power connected and the lid open. AC idle sleep is disabled with sudo pmset -c sleep 0; battery sleep remains unchanged. The runner is a user LaunchAgent: keep moda-ci logged in (fast user switching is fine). After a reboot, log into moda-ci to start its agent; it is not a boot-time system daemon. Do not sign moda-ci into an Apple ID or grant access to personal credentials. From a Terminal logged into moda-ci, in ~/replicas/4e889e9f-7fc3-4412-9a29-05a9bfaea5a2/actions-runner:

Economics

Blacksmith’s standard Ubuntu x64 rate is $0.002 per vCPU-minute: the current 4-vCPU jobs are $0.008 per runner-minute, before temporary discounts. Published pricing. The supplied Nov. 19–26 baseline is $46.74 over seven days for the **two full frontend shards only**. At the same volume, replacing all eligible executions projects $46.74 × 30 / 7 = **$200.31 gross avoided compute per 30-day month**. Multiply by the fraction of those executions that actually move to the Mac; priority, fork and merge-queue executions remain paid. This excludes related jobs and all other CI spend, and does not deduct electricity or maintenance. The sample's discount treatment was not independently audited; if $46.74 is a discounted amount, normalize its billed minutes to the standard rate first. This is a projection, not measured monthly savings.

Rollback

Before merge, close the routing PR to leave default-branch routing unchanged. After merge, revert its commits through the normal Graphite workflow. For an immediate single-PR bypass, apply ci:priority; leave it while new pushes land. To disable the Mac, stop its service as above. That alone leaves eligible jobs queued, so switch routing before stopping it. To remove it permanently, use ./svc.sh uninstall after stopping the service. Then open repository Settings → Actions → Runners → office-macbook → Remove and follow GitHub’s generated removal command as moda-ci. Restore the original AC idle sleep with sudo pmset -c sleep 1 if desired.

Priority acceptance evidence

At revision f579a8783a03c281a4c795cc5d7a6e914a7b2a23, PR #12986’s PR Checks attempt 1 had shard 1/2 running on office-macbook and shard 2/2 queued with the Mac labels. Applying ci:priority started the hosted priority controller, which succeeded and started attempt 2 of the same PR Checks run at the identical head. Both frontend jobs started on distinct Blacksmith runners without waiting for the laptop queue. The original jobs were cancelled. Applying unrelated ci:runner-demo before and during that run left PR Checks’ run ID and attempt unchanged; only the separate priority workflow skipped. The controller never opens a connection to the Mac. This demonstrates the queued switch; a physically offline-Mac test was not performed.