UI tests turn on Automation Mode, which by default asks for a password
that nobody is at the runner to type. Turn that off with
automationmodetool enable-automationmode-without-authentication. It asks
for root's password even under sudo; root has none, so feed it an empty
line. Verify that automationmodetool reports no authentication needed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Nobody is at the runner's screen, and a locked session gets in the way of
Screen Sharing and UI tests. Set the runner's screen saver to never start
and turn its screen lock off with sysadminctl, which needs the account's
password: the one bootstrap.sh was given, or the automatic login password
in /etc/kcpassword. Verify both.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Actions runner (.NET), URLSession, SwiftPM and xcodebuild validate
against the keychain rather than SSL_CERT_FILE, so on a fresh image every
bumped host failed with UntrustedRoot. Adding a trusted root needs an
on-screen confirmation, and on macOS 27 root cannot relax that rule
(authorizationdb write returns -60005), so the squid step only checks and
prints the command to run on the runner's screen. verify gains the same
check, and the README describes the manual step after a re-image.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Automatic login: sysadminctl set autoLoginUser but left the previous
user's password in /etc/kcpassword (macOS 27), so the machine stopped at
the login screen. Write and verify /etc/kcpassword ourselves, and treat
automatic login as working only if the stored password authenticates
(probe-user.sh, verify).
- Command Line Tools: move to a separate "clt" step, which also updates
outdated tools after a macOS upgrade (Homebrew refuses to build squid with
them). softwareupdate offers them even when current, so the step
reinstalls every time; add --skip to leave it out.
- Xcode: accept an .xip already on the runner (--xcode-xip-on-runner /
XCODE_XIP_ON_RUNNER) and delete the .xip only once the whole step succeeds.
- Squid: remove a leftover sh.brew.squid LaunchAgent (Homebrew 7 label) and
check for the patch without a pipefail-unsafe pipe. Update squid-patch.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
bootstrap.sh recreates the MacStadium runner after a re-image: passwordless
sudo, machine settings (power, Spotlight, software update, screen sharing,
key-only SSH), Homebrew and build dependencies, the patched Squid proxy from
the squid-patch submodule (as a boot-time LaunchDaemon), the runner account
with automatic login, the GitHub Actions runners, Xcode from a provided .xip,
weekly cache cleanup, and a read-only verify step. All settings live in
config.env; the machine address goes in the git-ignored config.local.env.
backup.sh pulls the runner's secrets (SSH host keys, Squid CA, runner
registrations, automatic login password) into the git-ignored secrets/
directory, and bootstrap.sh restores them instead of generating new ones.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>