Skip to content

Trials can't use the Rust toolchain their task's commit pins #1369

Closed

Description

@JacobStephens2

Problem

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

  1. added
    bug
    ready-for-agent
    on Oct 26, 2026
  2. added
    in-progress
    and removed
    ready-for-agent
    on Oct 26, 2026
  3. removed
    in-progress
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions