Skip to content

ci(fleet): guard against a fleet Cargo.lock left stale by atlas-search (#10363) - #11739

Merged
dezren39 merged 1 commit into
mainfrom
fix/fleet-lock-guard
Nov 18, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fix/fleet-lock-guard

Conversation

@dezren39

@dezren39 dezren39 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Before: when an atlas-search crate gained a dependency, pkgs/fleet/Cargo.lock went stale without any change under pkgs/fleet, fleet-smoke didn't run, and the first sign was a switch build dying inside fleet-0.1.0.drv with "no matching package named ... found" (#8260, #10362).

After: bash .github/scripts/check-fleet-lock.sh names a stale fleet lock in seconds, with the fix. fleet-smoke runs it before its nix build and now also triggers on atlas-search manifest and crate changes.

How: the guard runs cargo metadata --locked against the real manifests, which refuses when the committed lock isn't the lock cargo would write, and compiles nothing. check-fleet-lock.test.sh builds a path-only fleet/atlas fixture offline and checks fresh, stale (new atlas edge) and fixed. I also confirmed the guard fails on the real lock with atlas-core's unicode-normalization edge removed. check-fleet-smoke.sh gains a leg for the guard step and the atlas path filter, with two new mutation tests.

Closes #10363.


Generated by Claude Code


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

#10363)

fleet-search builds atlas-search crates by path, so an atlas dependency
change could leave pkgs/fleet/Cargo.lock stale without touching the
fleet tree, and the first failure was a switch build dying inside
fleet-0.1.0.drv. Crane's own check compares the lock with a vendor dir
built from that same lock, so it never noticed.

check-fleet-lock.sh re-resolves the workspace with
`cargo metadata --locked` and names the stale lock and the fix. A
path-only fixture test covers pass, stale and fixed. fleet-smoke now
runs both before its nix build and also triggers on atlas-search
manifest changes; its contract checker enforces both legs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dezren39
dezren39 marked this pull request as ready for review November 18, 2026 08:12
@dezren39
dezren39 requested a review from a team as a code owner November 18, 2026 08:12
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • 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 18, 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-18T08:14:13.646266Z 1b3088f Draft marked ready
ℹ️ 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
dezren39 merged commit cdff81a into main Nov 18, 2026
@dezren39
dezren39 deleted the fix/fleet-lock-guard branch November 18, 2026 08:13
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.

Guard: fleet Cargo.lock drifts from atlas path-deps — second occurrence (first: #8260)

2 participants