From 9af7a991fbe3dc01f915453171a9c08791da9741 Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Mon, 23 Nov 2026 07:11:04 -0600 Subject: [PATCH] fix(atlas-search): align toolchain pin references to 1.99.1 (#13286) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rust-toolchain.toml pins channel 1.99.1 (what the Nix build and the laptop toolchain actually use, mirroring pkgs/id), but CI installed 1.99.0 and ran the test suites under it, and the flake.nix and home/common/default.nix comments also said 1.99.0 — CI tested a different compiler than the build ships. - atlas-search-pr.yml: install and test with 1.99.1; note the pin's home - pkgs/atlas-search/flake.nix, home/common/default.nix: comment figures - Atlas book (building.md, installation.md): record the aligned state per the docs-sync contract No build behaviour changes: the toolchain file itself is untouched. --- .github/workflows/atlas-search-pr.yml | 12 ++++--- home/common/default.nix | 2 +- .../atlas-search/book/development/building.md | 35 +++++++++---------- .../book/getting-started/installation.md | 7 ++-- pkgs/atlas-search/flake.nix | 2 +- 5 files changed, 28 insertions(+), 30 deletions(-) diff --git a/.github/workflows/atlas-search-pr.yml b/.github/workflows/atlas-search-pr.yml index 75a69803cc..f26dca8238 100644 --- a/.github/workflows/atlas-search-pr.yml +++ b/.github/workflows/atlas-search-pr.yml @@ -31,20 +31,22 @@ jobs: steps: - uses: actions/checkout@v7 + # Toolchain pin lives in pkgs/atlas-search/rust-toolchain.toml; + # keep this install in step with its channel. - name: Install Rust toolchain - run: rustup toolchain install 1.99.0 --profile minimal + run: rustup toolchain install 1.99.1 --profile minimal - name: Test atlas-search - run: cargo +1.99.0 test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-search --all-targets + run: cargo +1.99.1 test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-search --all-targets - name: Test atlas-core - run: cargo +1.99.0 test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-core --all-targets + run: cargo +1.99.1 test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-core --all-targets - name: Test atlas-proto - run: cargo +1.99.0 test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-proto --all-targets + run: cargo +1.99.1 test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-proto --all-targets # gate_a's model test stays #[ignore]d here: it requires # ATLAS_ORT_LIB and the pinned model snapshot (see the test's # file docs) — the venue runs the crate's remaining targets. - name: Test atlas-embed - run: cargo +1.99.0 test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-embed --all-targets + run: cargo +1.99.1 test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-embed --all-targets diff --git a/home/common/default.nix b/home/common/default.nix index 105259a9d7..0891652fe4 100644 --- a/home/common/default.nix +++ b/home/common/default.nix @@ -53,7 +53,7 @@ let atlasSearchPort = 18760; # The atlas-search package (pkgs/atlas-search), built with the # toolchain pinned by its own rust-toolchain.toml (channel - # 1.99.0) through the fleet's rust-overlay lock — the pkgs/id + # 1.99.1) through the fleet's rust-overlay lock — the pkgs/id # pattern (cf. rustToolchain in nixos/environment/default.nix). # Used as the atlas-search unit's ExecStart below and, since # the step-6 cutover (#5356), as a home package below so the diff --git a/pkgs/atlas-search/book/development/building.md b/pkgs/atlas-search/book/development/building.md index 3e3853d268..08e2df2774 100644 --- a/pkgs/atlas-search/book/development/building.md +++ b/pkgs/atlas-search/book/development/building.md @@ -76,23 +76,20 @@ cargo test -p atlas-core cargo test -p atlas-search ``` -Per-crate runs mirror what CI does (below). Two facts about the toolchain -pin, stated exactly as the sources give them, because they do not quite -agree: - -- CI installs **1.99.0** (`rustup toolchain install 1.99.0 --profile minimal`) - and the `flake.nix` comment describes the pin as "the pinned toolchain - (`rust-toolchain.toml`, channel 1.99.0) — the same rustup toolchain the - step 1–4 gates ran under on the laptop". -- The `rust-toolchain.toml` file itself, as checked on the laptop for this - book, reads `channel = "1.99.1"` (with `rustfmt` and `clippy` - components, profile `default`). The file also carries the warning that - changing the channel may cause rustc itself to build, so a channel bump - is committed only once nixpkgs has the new compiler cached. - -Per this book's rule — where sources disagree, state the source behaviour -and say so — the file wins for what a Nix or rustup build actually uses, -and the CI/comment figure is recorded here as the discrepancy it is. +Per-crate runs mirror what CI does (below). The toolchain pin lives in +exactly one place: `rust-toolchain.toml` reads `channel = "1.99.1"` (with +`rustfmt` and `clippy` components, profile `default`), mirroring the +pkgs/id pin. Every other source states the same figure: CI installs +**1.99.1** (`rustup toolchain install 1.99.1 --profile minimal`), the +`flake.nix` comment describes the pin as "the pinned toolchain +(`rust-toolchain.toml`, channel 1.99.1) — the same rustup toolchain the +step 1–4 gates ran under on the laptop", and the laptop's home +configuration builds its Atlas toolchain from the same file. (Until +2026-11-23 the CI workflow and the comments still said 1.99.0, so CI +tested a different compiler than the Nix build shipped; #13286 records +the alignment.) The file also carries the warning that changing the +channel may cause rustc itself to build, so a channel bump is committed +only once nixpkgs has the new compiler cached. Separately, the workspace manifest's `rust-version = 1.96` is a *minimum* (the oldest compiler the code claims to support), not the pin. @@ -117,11 +114,11 @@ presentation somewhere, and the `on:` block is the truth in each case. exists in the file; the header cites the 2026-11-16 nightly-main-CI policy, and the name is the stale part. - One job ("basic: atlas-search Rust checks"), `ubuntu-latest`, 30-minute - timeout, `contents: read`: checkout, install the 1.99.0 toolchain, then + timeout, `contents: read`: checkout, install the 1.99.1 toolchain, then four test steps — one per crate, each of the shape: ```sh - cargo +1.99.0 test --manifest-path pkgs/atlas-search/Cargo.toml --all-targets -p atlas-core + cargo +1.99.1 test --manifest-path pkgs/atlas-search/Cargo.toml --all-targets -p atlas-core ``` for `-p atlas-search`, `-p atlas-core`, `-p atlas-proto`, `-p atlas-embed`. diff --git a/pkgs/atlas-search/book/getting-started/installation.md b/pkgs/atlas-search/book/getting-started/installation.md index 7577e0132a..63cab8d24e 100644 --- a/pkgs/atlas-search/book/getting-started/installation.md +++ b/pkgs/atlas-search/book/getting-started/installation.md @@ -16,10 +16,9 @@ Source: https://github.com/developing-today/code/blob/main/pkgs/atlas-search/def Atlas lives in the repository at `pkgs/atlas-search/`, a self-contained package with its own Cargo workspace, its own `flake.nix`, and a -`rust-toolchain.toml` pinning the Rust toolchain (the file itself reads -channel 1.99.1; the `flake.nix` comment and CI still say 1.99.0 — the file -wins for what a build actually uses, and the disagreement is recorded in -[Building and testing](../development/building.md)). +`rust-toolchain.toml` pinning the Rust toolchain at channel 1.99.1 — +the single place the pin lives; the `flake.nix` comment and CI state the +same figure (see [Building and testing](../development/building.md)). **Route 1 — the package's own sub-flake.** From the repository root: diff --git a/pkgs/atlas-search/flake.nix b/pkgs/atlas-search/flake.nix index 45ec10884c..11c59138c1 100644 --- a/pkgs/atlas-search/flake.nix +++ b/pkgs/atlas-search/flake.nix @@ -41,7 +41,7 @@ overlays = [ (import rust-overlay) ]; }; # The pinned toolchain (rust-toolchain.toml, channel - # 1.99.0) — the same rustup toolchain the step 1-4 gates + # 1.99.1) — the same rustup toolchain the step 1-4 gates # ran under on the laptop, so the packaged build compiles # with the compiler the parity evidence belongs to. rustToolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;