feat(mac-mini): an easier agent machine, and disk reclaim that retries #630
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/mac-mini-agent-machine"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The mac-mini had 13 GiB free and needed a password and a PATH export for routine agent work. This makes it an easier agent machine and stops the disk from filling unnoticed.
macos-agent-tools now sets up passwordless sudo, turns Spotlight off and removes its index, stops the Homebrew Tailscale agent that looped on needing root, stops automatic macOS installs (critical and config-data updates stay on), and adds Homebrew to
~/.zshenv. The sudo entry is blanket, by the human's decision, so both runners' workflows get root on this Mac.macos-disk-reclaim now wakes hourly and keeps its weekly pass with a stamp. A run that found CI busy used to lose the whole week, which is why the last one freed 0. It also removes Gradle version caches whose daemon has not run for 30 days, and the Unity guard now actually skips the Unity sections: it logged the skip and pruned anyway. DiskReclaimStale and DiskReclaimSkipped warn when a pass stops or stays skipped.
docs/mac-machines.mdrecords that the 30-day screen prompt cannot be moved from code: macOS restored the plist values on the next capture.Removed: the "no NOPASSWD" statement for the mini, and "now and then" for the prompt.
Verified on the mini: check, apply, then a re-run with
changed=0.sudo -n truepasses there and still fails on mac-studio. 77 GiB free. A fakeRunner.Workerleft no stamp, so the next hourly wake retries.run-tests.shpasses, and the rule tests pass under promtool in a container. The reboot test is still to come, after the Steam cut's Mac jobs.Spotlight off now exists here and in macos-llm-node. This one uses
mdutil -Xbecause-Eleft 42 GB behind on the mini.https://claude.ai/code/session_01BALUC6NN9dmzupYrubiuwG