Repository navigation
fix(fleet): add missing atlas-proto edge to fleet Cargo.lock — unbreaks the flake build - #8334
Conversation
…8264) ac6dfcb (query-time parameter contract v1, #5774) added atlas-proto as a dependency of atlas-core and updated pkgs/atlas-search/Cargo.lock, but not pkgs/fleet/Cargo.lock. The fleet workspace consumes atlas-core by path under fleet-search's serve feature, and its lock is the one the Nix package pins (pkgs/fleet/default.nix, cargoLock.lockFile), so the flake build - which resolves --locked, offline, in the sandbox - failed while a developer-machine cargo build silently rewrote the lock and passed. Fix is the single line cargo itself generates: atlas-core's lock entry gains the atlas-proto dependency. No source changes. Evidence (this checkout, rust 1.99.0, pinned toolchain): - before: cargo build -p fleet --locked -> error: cannot update the lock file ... because --locked was passed - after: cargo build -p fleet --locked, cold target dir -> Finished - cargo test -p fleet-search --locked -> 19 passed - cargo test -p atlas-core --locked (atlas-search workspace) -> 68 passed
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters: 1
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Merged as |
What broke
The fleet flake build (
fleet-0.1.0) — the thing standing between the merged opencode pincb3968e4f(#8265) and the system path, and behind it the labelled popesdrew quota row (#8260) and the #8264 pin reconcile.Two stacked drifts from today's atlas parameter-contract change
ac6dfcb53d(#5774):SearchOptionsgainedparameters,BranchQuerygainedshard_top_k/global_top_k; fleet-search's initializer sites were missed. Fixed by6f8045664e, fleet-search: main build broken - server.rs initializers missing new atlas-core fields #8268 closed.atlas-protoas a dependency ofatlas-coreand updatedpkgs/atlas-search/Cargo.lock— but notpkgs/fleet/Cargo.lock. The fleet workspace consumes atlas-core by path (fleet-searchservefeature), andpkgs/fleet/default.nixpinscargoLock.lockFile = ./Cargo.lock. The Nix build resolves--locked, offline, in the sandbox, so it fails; a workstationcargo buildsilently rewrites the lock and passes — which is why this survived a green local build and a closed fleet-search: main build broken - server.rs initializers missing new atlas-core fields #8268.Fix
One line — the exact line cargo generates:
atlas-core's entry inpkgs/fleet/Cargo.lockgains"atlas-proto". No source changes.Evidence (rust 1.99.0, the pinned toolchain)
cargo build -p fleet --locked→error: cannot update the lock file ... because --locked was passed to prevent thiscargo build -p fleet --locked→Finished(3m 48s)cargo test -p fleet-search --locked→ 19 passed, 0 failedcargo test -p atlas-core --locked(atlas-search workspace) → 68 passed, 0 failednix build .#fleetrun are the switch lane's cold-environment confirmation path; this PR unblocks the generation switch that Prod service started by its own unit runs a stale binary (3497ea2) baked into the runtime config snapshot — unit ExecStart ignored #8264's lane owns.Refs #8260, #8264.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.