You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Trials can't use the Rust toolchain their task's commit pins #1369
A Trial's repository is checked out at the Eval task's historical commit, and that commit may pin a Rust toolchain the host doesn't have. In the A/A Experiment for #1267, thirdshift's own tasks pinned Rust 1.99.0, while the host had only 1.99.1, the current pin since #1080. Inside the sandbox, rustup tried to download 1.99.0, and the Trial proxy refused it. The reviewer said so:
Validation is blocked by the environment: no Rust toolchain is installed, and the pinned Rust 1.99.0 download fails through the network tunnel. Formatting, linting and tests therefore could not run; the reports will record that limit.
At least 22 of the 102 code-review attempts hit this, 11 in each Arm. Other attempts found the installed toolchain by an explicit path and ran tests. So Trials of the same task ran in unequal environments, depending on what the reviewer happened to try. It decided no outcome in that run, but it adds noise to every Experiment and it will get worse as the pin moves on.
What to build
Make the pinned toolchain available before the session starts, outside the sandbox, so every Trial of a task gets the same environment:
When preparing a Trial's repository, read its rust-toolchain.toml or rust-toolchain. If that toolchain (with its listed components) isn't installed, install it with rustup on the host. Do this once per toolchain, not once per Trial.
If the install fails, the Trial is void with session_unavailable and isn't counted as failed.
Don't widen the Trial proxy's allowlist for this. The sandbox stays offline.
Acceptance criteria
A Trial whose repository pins an uninstalled toolchain finds it installed when the session starts, and cargo --version inside the sandbox reports the pinned version.
An install that fails voids the Trial with session_unavailable.
Two Trials of the same task share one install.
docs/guide.md says Trials get their repository's pinned Rust toolchain installed before the session.
Activity