Skip to content

fleet-queue: chunked_list declares required-features=[client] but the crate does not compile with client alone #13078

Open

Description

@dezren39

Problem

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.

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Done — PR #13164 (#13164), branch xaltha/13078-client-feature @ 28ddf5add.

    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.

    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 check passes for all six feature combinations: none, client, secrets-broker, client,secrets-broker, queue-broker, all-features
    • cargo 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 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.)

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions