Skip to content

fix: give jobs rustup and the /dev/fd links - #10

Merged
ephraimduncan merged 2 commits into
mainfrom
fix/runner-rustup-dev-fd
Nov 6, 2026
Merged

ephraimduncan merged 2 commits into
mainfrom
fix/runner-rustup-dev-fd

Conversation

@aikins01

@aikins01 aikins01 commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Jobs that work on the GitHub-hosted runners fail on runplane in two ways. On telemetry.dev, each job that runs rustup toolchain install fails with rustup: command not found, and bash process substitution (done < <(sort ...)) fails with /dev/fd/63: No such file or directory.

The base images now install rustup in the home folder of runner, and put /home/runner/.cargo/bin on PATH in the image ENV and in /etc/environment. The images have no Rust toolchain. A stable toolchain adds 540 to 640 MB, which takes three of the four images over the 3072 MB limit of images.yml, and a job that pins a toolchain in rust-toolchain.toml downloads that toolchain anyway. On the GitHub-hosted runners stable is the default, so a job that runs cargo with no toolchain file must first run rustup default stable on runplane. images.yml now also fails when runner cannot use rustup.

In VM mode, runplane-init mounts a devtmpfs on /dev. A devtmpfs has only device nodes. It does not have the /dev/fd, /dev/stdin, /dev/stdout, and /dev/stderr links that runc and systemd add. runplane-init now adds these links after the mounts. With a tmpfs on /dev in a container, cat <(echo ok) failed with the same error before the links, and printed ok after them. No test boots a VM, so this is not tested in a real VM.

In VM mode, a job gets the image ENV, and thus the new PATH, only with #9. Merge this change after #9. In container mode, rustup works without #9.

Jobs that run rustup failed with "rustup: command not found". The images
now install rustup in the home folder of runner with the minimal profile
and no toolchain, and put ~/.cargo/bin on PATH in the image ENV and in
/etc/environment. A stable toolchain would take three of the four images
over the 3072 MB limit.
A devtmpfs has only device nodes, so in a VM bash process substitution
failed with "/dev/fd/63: No such file or directory". runc and systemd add
these links; runplane-init now adds them after it mounts /dev.
@aikins01 aikins01 self-assigned this Nov 6, 2026
@ephraimduncan
ephraimduncan merged commit b3fa9cf into main Nov 6, 2026
1 of 8 checks passed
ephraimduncan added a commit that referenced this pull request Nov 6, 2026
Merge b3fa9cf of main (#10). The change keeps the behavior of main.

rustup for the runner user: the one images/Dockerfile gets the rustup
step and the PATH entry of main. Main had the same change in its two
Dockerfiles. Thus the two builtin images get it from one place.
images.yml examines rustup after the size check, and the two READMEs
tell about rustup.

The /dev/fd and /dev/std* links: runplane-init adds them in VM mode
after it mounts /dev, as in main.

No Go code uses /home/runner/.cargo/bin or the /dev/fd links. Thus
internal/sandbox/guest gets no new constant, and the tests that compare
the Dockerfile with Go stay the same.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants