Skip to content

fix(fleet): add missing atlas-proto edge to fleet Cargo.lock — unbreaks the flake build - #8334

Merged
dezren39 merged 1 commit into
mainfrom
fix/fleet-lock-atlas-proto
Nov 10, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fix/fleet-lock-atlas-proto

Conversation

@dezren39

@dezren39 dezren39 commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

What broke

The fleet flake build (fleet-0.1.0) — the thing standing between the merged opencode pin cb3968e4f (#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):

  1. E0063 type drift (already fixed): SearchOptions gained parameters, BranchQuery gained shard_top_k/global_top_k; fleet-search's initializer sites were missed. Fixed by 6f8045664e, fleet-search: main build broken - server.rs initializers missing new atlas-core fields #8268 closed.
  2. Lock drift (this PR): the same commit 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 (fleet-search serve feature), and pkgs/fleet/default.nix pins cargoLock.lockFile = ./Cargo.lock. The Nix build resolves --locked, offline, in the sandbox, so it fails; a workstation cargo build silently 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 in pkgs/fleet/Cargo.lock gains "atlas-proto". No source changes.

Evidence (rust 1.99.0, the pinned toolchain)

Refs #8260, #8264.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…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
@dezren39
dezren39 requested a review from a team as a code owner November 10, 2026 22:58
@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters: 1

  • pkgs/fleet/Cargo.lock is excluded by !**/*.lock

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 825e7951-4830-4a24-b704-e0532c3f2b38

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T23:00:14.448579Z 534d3a8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39

Copy link
Copy Markdown
Member Author

Merged as a5946ee5f2f0. Post-merge note: GitHub CI checks were still QUEUED (fleet-wide queue stall, none had started) at merge time; the merge went ahead under Drew's merge authority on the strength of the local evidence in the PR body (locked cold builds ×2, tests green). The laptop nix build .#fleet from this branch was past resolution and in the release compile phase at last check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fleet-search: main build broken - server.rs initializers missing new atlas-core fields

1 participant