Skip to content
Closed
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
10 changes: 5 additions & 5 deletions .github/workflows/atlas-search-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ jobs:
- uses: actions/checkout@v7

- 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
33 changes: 14 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,18 @@ 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 agrees
across its sources: 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
`rust-toolchain.toml` file itself 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. (CI and the comment briefly said 1.99.0 while the file
said 1.99.1; #13286 aligned them on the file's value, since the file is
what Nix and rustup builds actually use.)
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 +112,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
3 changes: 1 addition & 2 deletions pkgs/atlas-search/book/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ 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
channel 1.99.1; the `flake.nix` comment and CI agree — 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