Repository navigation
fleet-queue: re-base the canonical lane seed on the post-rename universe (#8097) - #8548
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 48 minutes. View limit details
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. |
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. |
This was referenced Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The defect
canonical_lanes()inpkgs/fleet/crates/fleet-queue/src/turso_queue.rsstill hardcoded the pre-rename lane universe (code-a..z, opencode-a/b, openchamber-a/b, nix-a/b), andensure_schema()re-seeds missing rows from it via INSERT OR IGNORE at every broker start — withenabledhardcoded to 1. Hand-deleting a lane row therefore only lasted until the next seed run: openchamber-a/b, deleted 2026-11-10, silently came back enabled=1 (root-caused during the 2026-11-11 lane rename; full record on #8097, comment 6787833559). Left unfixed, the next broker restart would resurrect all 16 stale ids the seed still names (code-k..z, nix-a, nix-b, opencode-a, opencode-b, openchamber-a, openchamber-b), undoing the rename's deletions.The fix
canonical_lanes()now returns exactly the post-rename universe: the 35 final lanes (code-a..j, not-code-a..f, any-a..s), each with the worker its live registry row carries (mapped through the rename: not-code-a keeps repo-worker-nix from nix-a, not-code-b/not-code-e keep repo-worker-opencode, not-code-d keeps repo-worker-openchamber, everything else repo-worker-code) and tonight's end-state enabled flag. No other lane id appears in the seed set.1): the 16 working lanes seed enabled, the 19 trimmed lanes seed disabled, so a restored registration comes back with exactly its canonical fields. Queue binding stays the one-queue'*'for every lane.Tests
canonical_lanes_are_exactly_the_post_rename_universe_8097: pins the exact 35-id set, asserts the absence of every legacy id (openchamber-a/b, nix-a/b, opencode-a/b, code-k..z, tmp-*), pins the enabled set to exactly the 16 working lanes, and spot-checks worker ownership across both surfaces.lane_seed_sql_is_insert_or_ignore_over_the_canonical_set: every seeded SQL tuple must carry the lane's exact (worker, '*', enabled) fields, and the statement must not name any legacy id.Local evidence (laptop, the fleet build host):
cargo test -p fleet-queue --features queue-broker --lib— 228 passed, 0 failed, including both seed tests above. (Thequeue-brokerfeature gates the turso_queue module; a default-features run does not compile it.)Deploy note
Code-only change; the live registry is untouched (35 rows / 16 enabled, verified by direct read before this PR). Once this is in the deployed broker binary, the broker is safe to restart: a restart can no longer resurrect any deleted lane. Refs #8097.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.