Repository navigation
fix: give jobs rustup and the /dev/fd links - #10
Merged
Merged
Conversation
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jobs that work on the GitHub-hosted runners fail on runplane in two ways. On telemetry.dev, each job that runs
rustup toolchain installfails withrustup: 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/binonPATHin the imageENVand 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 ofimages.yml, and a job that pins a toolchain inrust-toolchain.tomldownloads that toolchain anyway. On the GitHub-hosted runners stable is the default, so a job that runscargowith no toolchain file must first runrustup default stableon runplane.images.ymlnow also fails whenrunnercannot 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/stderrlinks that runc and systemd add. runplane-init now adds these links after the mounts. With a tmpfs on/devin a container,cat <(echo ok)failed with the same error before the links, and printedokafter 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 newPATH, only with #9. Merge this change after #9. In container mode, rustup works without #9.