Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/atlas-search-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion home/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
35 changes: 16 additions & 19 deletions pkgs/atlas-search/book/development/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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`.
Expand Down
7 changes: 3 additions & 4 deletions pkgs/atlas-search/book/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion pkgs/atlas-search/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down