Skip to content

ci(fleet): run Rust workspace unit and integration tests #8941

Closed

Description

@dezren39

Problem

The Rust workspace at pkgs/fleet/Cargo.toml contains ten members, including fleet-queue and fleet-dispatch. Its unit/integration tests are not built or run by the workflows inspected on main. The fleet-specific workflow found, fleet-search-parity-guard.yml, checks generated search parity rather than compiling/testing the workspace; nix-ci.yml evaluates selected flake outputs rather than building the Fleet test targets. As a result, regressions in queue, dispatch, proxy, config, and registry crates can merge without their Rust tests running.

This is separate from #6400: that issue wires pkgs/fleet/smoke.sh against four existing variant binaries, while this issue covers Cargo library, binary, and integration tests.

Scope

Add a CI check for the existing Fleet Rust workspace using its own lockfile/toolchain. Run it on changes to pkgs/fleet/** in the repository's policy-approved tier, and on demand if the normal runner/build cost requires a manual or scheduled entry. Reuse existing CI/Nix build conventions; do not create duplicate package definitions or turn the unrelated #6400 smoke suite into this work.

Acceptance criteria

  • The check runs a locked workspace test command that compiles and executes all supported Rust unit and integration tests under pkgs/fleet (including fleet-queue and fleet-dispatch tests).
  • Workflow triggers and branch policy agree with .github/ci-policy.md; the result is a required signal in the intended tier and cannot silently skip when a Fleet path changes.
  • The test job uses the workspace's declared rust-toolchain.toml and lockfile and does not require the developer laptop's broker or credentials.
  • Add a workflow/registry contract test if that is the repository's standard for CI wiring; retain ci(fleet): pkgs/fleet/smoke.sh (80 checks, per-variant suite for #5429-#5433) run by no workflow or flake check — README manual-only #6400's separate per-variant smoke acceptance.
  • Document runtime and build-resource cost so CI placement is deliberate rather than accidentally making an expensive test a PR gate.

Evidence

Verification

Change a Fleet Rust source/test file and confirm the intended workflow starts; verify a deliberately failing Fleet test makes its check fail. Run the new check once on current main and record elapsed time and resource use.

Activity

  1. developing-today commented on Nov 12, 2026

    @developing-today
    Contributor
  2. added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    task/ci-investigationQueue packet kind: investigate a CI failure
    kind/ciCI/CD pipelines, workflows, and build automation
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    area/ciCI/CD pipelines, workflows, and build automation (area)
    source/queue-workerFiled or worked by the queue/worker pilot
    on Nov 12, 2026
  3. dezren39 commented on Nov 12, 2026

    @dezren39
    MemberAuthor

    Agent note — lane code-b, task 15135

    • state: triaged / picked up
    • Triage: work kind task/ci-investigation; kind/ci; priority/normal (per the priorities brief this is not fleet-stalling breakage and not in the ID expedite set — the queue/broker crates' own tests simply have no CI venue); effort/m; area/ci; source/queue-worker.
    • Verified fresh: issue ci(fleet): run Rust workspace unit and integration tests #8941 is open, carries no held / user/owned / do-not-merge / do-not-auto-edit labels, and no prior triage note. The test-suite registry row fleet.rust in .github/test-suite-registry.json is status uncovered with venue null — 602 test annotations across pkgs/fleet/crates, including integration tests in fleet-queue, fleet-search, and the fleet bin crate, run by no workflow.
    • Disposition: the fix is in this packet's scope, so it proceeds in this same session (no separate follow-on). Placement follows the atlas-search precedent (.github/workflows/atlas-search-pr.yml): a basic-tier, path-gated workflow running the locked workspace test command with the pinned 1.99.0 toolchain from pkgs/fleet/rust-toolchain.toml, on pull requests touching pkgs/fleet/** and on push to main, plus workflow_dispatch. This stays separate from ci(fleet): pkgs/fleet/smoke.sh (80 checks, per-variant suite for #5429-#5433) run by no workflow or flake check — README manual-only #6400's per-variant smoke suite.
    • Acceptance check: the new workflow's cargo test invocation passes on current main (measured on the laptop before opening the PR), a deliberately failing Fleet test makes the same invocation fail, the registry row fleet.rust flips to mapped naming the new venue, and .github/ci-policy.md gains the tier row.
    • next: create the task worktree, measure the baseline workspace test run, then implement.
  4. dezren39 commented on Nov 12, 2026

    @dezren39
    MemberAuthor

    Agent note — lane code-b, task 15135: done

  5. dezren39 commented on Nov 12, 2026

    @dezren39
    MemberAuthor

    Agent note — lane code-b, task 15146: already done

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/ciCI/CD pipelines, workflows, and build automation (area)effort/mMedium: expected under 1 day of workkind/ciCI/CD pipelines, workflows, and build automationpriority/normalOrdinary priority (the default)source/queue-workerFiled or worked by the queue/worker pilotstatus:donetask/ci-investigationQueue packet kind: investigate a CI failure

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions