Skip to content

A self-improving RLM agent for coding workflows and long-running autonomous tasks.

Rust

use the pinned rust compiler in release prep (#3279)

ktae2c5767921c
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 977c49611d..748ade0a4b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -164,9 +164,8 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- - uses: dtolnay/rust-toolchain@ce678459e9fc7500d337468f904b95f1b5c10b5e # 1.98.1 action pin; toolchain pinned below
+ - uses: dtolnay/rust-toolchain@ce678459e9fc7500d337468f904b95f1b5c10b5e # 1.98.1 action pin; the SHA selects the toolchain
with:
- toolchain: "1.98.1"
components: rustfmt
- run: cargo fmt --all --check
@@ -179,9 +178,8 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- - uses: dtolnay/rust-toolchain@ce678459e9fc7500d337468f904b95f1b5c10b5e # 1.98.1 action pin; toolchain pinned below
+ - uses: dtolnay/rust-toolchain@ce678459e9fc7500d337468f904b95f1b5c10b5e # 1.98.1 action pin; the SHA selects the toolchain
with:
- toolchain: "1.98.1"
components: clippy
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2
with:
@@ -229,18 +227,17 @@ jobs:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- - uses: dtolnay/rust-toolchain@ce678459e9fc7500d337468f904b95f1b5c10b5e # 1.98.1 action pin; toolchain pinned below
- with:
- toolchain: "1.98.1"
+ - uses: dtolnay/rust-toolchain@ce678459e9fc7500d337468f904b95f1b5c10b5e # 1.98.1 action pin; the SHA selects the toolchain
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2
with:
cache-on-failure: true
- # One shared dependency cache for all legs: every shard compiles
- # the same dependency set, so per-shard keys held 8x ~500 MB per
- # ref and evicted the release-build caches (the repo sits at the
- # 10 GB Actions-cache quota; the shards were 83% of it). Parallel
- # legs race on the single entry and only the first save sticks,
- # which is fine: the content is the pruned dependency tree.
+ # One shared dependency cache for all legs: per-shard keys held
+ # 8x ~500 MB per ref and evicted the release-build caches (the
+ # repo sits at the 10 GB Actions-cache quota; the shards were 83%
+ # of it). The shards' dev-dependencies differ, and whichever leg
+ # saves first defines the shared entry, so other legs get a
+ # partial hit and compile the rest. Slower hits, no correctness
+ # issue.
shared-key: test-shards
- name: Install uv (the kernel tests bootstrap the Python kernel venv with it)
run: |
diff --git a/.github/workflows/release-prepare.yml b/.github/workflows/release-prepare.yml
index de2ea7f3d0..4a01c63450 100644
--- a/.github/workflows/release-prepare.yml
+++ b/.github/workflows/release-prepare.yml
@@ -103,9 +103,10 @@ jobs:
# add-commits anywhere in that history.
fetch-depth: 0
persist-credentials: false
- - uses: dtolnay/rust-toolchain@e081816240890017053eacbb1bdf337761dc5582 # 1.95.0 action pin; toolchain pinned below
- with:
- toolchain: "1.98.1"
+ # The pinned SHA is the toolchain pin: this action version has no
+ # `toolchain` input, and its parse step hard-codes 1.98.1. Change the
+ # compiler by changing the SHA; a `toolchain:` input is ignored.
+ - uses: dtolnay/rust-toolchain@ce678459e9fc7500d337468f904b95f1b5c10b5e
- name: Guard the lineage (refuse an existing tag or a below-tip version)
env:
INPUT_VERSION: ${{ inputs.version }}
diff --git a/.github/workflows/windows-runtime-triage.yml b/.github/workflows/windows-runtime-triage.yml
index 5d8fabac7e..7990683db3 100644
--- a/.github/workflows/windows-runtime-triage.yml
+++ b/.github/workflows/windows-runtime-triage.yml
@@ -37,9 +37,7 @@ jobs:
with:
persist-credentials: false
ref: ${{ inputs.ref || github.ref }}
- - uses: dtolnay/rust-toolchain@ce678459e9fc7500d337468f904b95f1b5c10b5e # 1.98.1 action pin; toolchain pinned below
- with:
- toolchain: "1.98.1"
+ - uses: dtolnay/rust-toolchain@ce678459e9fc7500d337468f904b95f1b5c10b5e # 1.98.1 action pin; the SHA selects the toolchain
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2
with:
key: windows-triage