You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fleet-queue: chunked_list declares required-features=[client] but the crate does not compile with client alone #13078
pkgs/fleet/crates/fleet-queue/Cargo.toml declares the chunked_list integration test with required-features = ["client"], but the crate does not compile with the client feature alone:
$ cargo test -p fleet-queue --features client --test chunked_list
error[E0433]: cannot find `turso_queue` in the crate root
--> crates/fleet-queue/src/client/commands_lifecycle.rs:384:20
error[E0433]: cannot find `validate` in the crate root
--> crates/fleet-queue/src/client/support.rs:682:12
error: could not compile `fleet-queue` (lib) due to 3 previous errors
Client code references crate::turso_queue::BATCH_CLAIM_MAX and crate::validate::validate_not_before, but both modules are configured out unless queue-broker is enabled (lib.rs:48, lib.rs:52). With --features client,queue-broker the same test builds and passes (2 passed, verified 2026-11-23 on main ed65beca46e).
So the declared feature contract for the test is wrong in one direction or the other: either client must stop referencing broker-gated modules (or pull in what it needs), or the test's required-features must name the set that actually builds.
Acceptance
cargo test -p fleet-queue --features client --test chunked_list (exactly the declared required-features) compiles and passes, OR the Cargo.toml declaration is corrected to the feature set the code genuinely requires and the client-only build of the lib target succeeds.
No regression: --features client,queue-broker test suite stays green.
Found by: Lane LF (archer) during the #9001 done-check, 2026-11-23.
Pickup — xaltha lane: reproducing the client-only build failure for fleet-queue, then fixing the feature gating so the crate compiles with client alone (and the full feature matrix stays green). Branch: xaltha/13078-client-feature.
Fix: the declared required-features = ["client"] was right; the gating was wrong, so Cargo.toml is untouched. (1) BATCH_CLAIM_MAX moved from turso_queue::lifecycle to the crate root — both surfaces share the bound (client validates --count locally, broker enforces the same value on the wire) — with turso_queue re-exporting it so existing broker paths are unchanged; client sites now use crate::BATCH_CLAIM_MAX. (2) validate is now gated any(client, queue-broker): it is the shared validation library and depends only on serde_json, so the client can use validate_not_before without pulling in broker-only code.
Before (main fa75486a0):cargo check -p fleet-queue --no-default-features --features client → 3× E0433 (2× turso_queue, 1× validate), exactly as filed.
cargo test --features client → lib 332 passed, 0 failed, doctests ok
20 test-result lines in the run log, all ok. (An earlier dispatch, run 45145124821, failed in setup — cargo not on the container PATH, exit 127 before any code ran — and is superseded by the run above.)
Activity
developing-today commentedon Nov 23, 2026
CODE-4770
dezren39 commentedon Nov 23, 2026
Pickup — xaltha lane: reproducing the client-only build failure for fleet-queue, then fixing the feature gating so the crate compiles with
clientalone (and the full feature matrix stays green). Branch:xaltha/13078-client-feature.fix(fleet-queue): make the client surface compile on its own (#13078)
dezren39 commentedon Nov 23, 2026
Done — PR #13164 (#13164), branch
xaltha/13078-client-feature@28ddf5add.Fix: the declared
required-features = ["client"]was right; the gating was wrong, soCargo.tomlis untouched. (1)BATCH_CLAIM_MAXmoved fromturso_queue::lifecycleto the crate root — both surfaces share the bound (client validates--countlocally, broker enforces the same value on the wire) — withturso_queuere-exporting it so existing broker paths are unchanged; client sites now usecrate::BATCH_CLAIM_MAX. (2)validateis now gatedany(client, queue-broker): it is the shared validation library and depends only onserde_json, so the client can usevalidate_not_beforewithout pulling in broker-only code.Before (main
fa75486a0):cargo check -p fleet-queue --no-default-features --features client→ 3× E0433 (2×turso_queue, 1×validate), exactly as filed.After — remote dispatch verification (Fleet command run
dezren39/fleet#45146692567, https://github.com/dezren39/fleet/actions/runs/45146692567, toolchain 1.99.1): one chain, exit 0 —cargo checkpasses for all six feature combinations: none,client,secrets-broker,client,secrets-broker,queue-broker,all-featurescargo test --features client --test chunked_list→ 2 passed (acceptance 1)cargo test --features client,queue-broker→ lib 526 passed, 0 failed (acceptance 2, no regression)cargo test --all-features→ lib 549 passed, 0 failed (incl.broker_bin_args)cargo test --features client→ lib 332 passed, 0 failed, doctests ok20 test-result lines in the run log, all ok. (An earlier dispatch, run 45145124821, failed in setup —
cargonot on the container PATH, exit 127 before any code ran — and is superseded by the run above.)