#600

Self-hosted Mac jobs fail installing rustup (shell profile not writable)

Openwiiiimmopened 17d ago

Since stealth-factory/opscope#608 moved the Mac jobs to self-hosted runners, every ci macos job and both Apple build targets in release fail on one of the Macs before compiling anything. Jobs that land on another Mac pass.

The cause is not x86_64. Both arches fail the same way: the Mac has no rustup, so dtolnay/rust-toolchain runs rustup-init, which tries to add itself to the runner account's ~/.zshenv. macOS refuses the write (Operation not permitted), and the step exits 1. The x86_64 target is cross-compiled on the ARM64 Mac, as before, and needs no Intel runner.

Fix: before dtolnay/rust-toolchain, install rustup with --no-modify-path when it is missing and add its bin directory to GITHUB_PATH. dtolnay then finds rustup and only adds the toolchain.

Related: stealth-factory/opscope#608.

Agent notes

Failing runs on 2026-11-12: release 43149708967, 43145794791, 43077688757; ci 43149671521. Passing runs on the same day landed on a Mac that already had rustup.

The runner install script requires uname -m = arm64, and the jobs matched the ARM64 label, so the failing Mac is Apple Silicon.

Activity

4
linear-code[bot]17d ago
admin added ai-software-factoryConfigurationImprovement labels17d ago