Repository navigation
Conversation
The chunked_list test declares required-features = ["client"], but the crate did not compile with client alone: client code referenced crate::turso_queue::BATCH_CLAIM_MAX and crate::validate::validate_not_before, and both modules were gated on queue-broker. - BATCH_CLAIM_MAX moves to the crate root (both surfaces share the bound: the client validates --count locally, the broker enforces the same value on the wire); turso_queue::lifecycle re-exports it so turso_queue::BATCH_CLAIM_MAX keeps working. - validate compiles for either surface (any(client, queue-broker)): it is the shared validation library and depends only on serde_json. No Cargo.toml change: the declared required-features were right, the gating was wrong.
|
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 37 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 branch has not been deployed
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.
Closes #13078
Problem
pkgs/fleet/crates/fleet-queue/Cargo.tomldeclares thechunked_listintegration test withrequired-features = ["client"], but the crate did not compile with theclientfeature alone:(reproduced on main
fa75486a0before this change — 2×turso_queue, 1×validate.)Client code referenced
crate::turso_queue::BATCH_CLAIM_MAXandcrate::validate::validate_not_before, but both modules were gated onqueue-broker. The declared feature contract was right; the gating was wrong, so this PR fixes the gating and leavesCargo.tomluntouched.Fix (4 files, feature wiring + one constant move)
BATCH_CLAIM_MAXmoves to the crate root (src/lib.rs), with its feat(queue): batch claim (--count N) + per-item dedicated sub-task dispatch #8217 rationale doc. Both surfaces share the bound: the client validates--countlocally so a bad value fails instantly, and the broker enforces the same value on the wire.turso_queue::lifecyclere-exports it (pub use crate::BATCH_CLAIM_MAX;), soturso_queue::BATCH_CLAIM_MAXand the broker's parse path keep working unchanged. The client sites inclient/commands_lifecycle.rsand theclient.rstests now usecrate::BATCH_CLAIM_MAX.validatecompiles for either surface: itslib.rsgate becomesany(feature = "client", feature = "queue-broker"). It is the shared validation library (the broker validates whole packets; the client validates individual flag values such as--not-beforeagainst the same rules) and it depends only onserde_json— never on a broker-only dependency — so no code had to move.Verification — remote dispatch (Fleet command run)
Run: https://github.com/dezren39/fleet/actions/runs/45146692567
(
dezren39/fleet#45146692567, handlefp_3e812705de06de97cdda5887ba82ed75, toolchain 1.99.1 as infleet-rust-tests.yml; an earlier run, 45145124821, failed before any code ran —cargonot on the container PATH — and is superseded by this run, whose command bootstraps the toolchain.)One command chain, exit 0:
cargo check -p fleet-queuefor every feature combination: (none),client,secrets-broker,client,secrets-broker,queue-broker,all-features— all pass (client-only failed with the 3 E0433s before).cargo test -p fleet-queue --features client --test chunked_list --locked— 2 passed (acceptance 1: exactly the declared required-features).cargo test -p fleet-queue --features client,queue-broker --locked— lib 526 passed, 0 failed (acceptance 2: no regression).cargo test -p fleet-queue --all-features --locked— lib 549 passed, 0 failed, incl.broker_bin_args.cargo test -p fleet-queue --features client --locked— lib 332 passed, 0 failed,chunked_list2,person_wait_cli5, doctests ok.20 test-result lines in the run log, all
ok, 0 failed anywhere.{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-23T09:34:20Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch/workspace/github-work/code", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch/workspace/github-work/code", "repo": "developing-today/code", "branch": "xaltha/9602-3819-note-policy-restart", "sha": "bd7252dd009d4cbe01c53bdefa3a3bfac5094bd9" }, "auth_subject": "xaltha", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.