Skip to content

fleet-queue: sweep_wiring test expects a stale call shape (core.rs gained .unwrap_or(200)) #13230

Closed

Description

@dezren39

Problem

cargo test -p fleet-queue --features client,queue-broker fails on current main in exactly one test:

turso_queue::closed_bound::tests::sweep_wiring_runs_the_detective_beside_the_recheckers
assertion failed: flat.contains("run_closed_bound_checks( t, req_i64(req, \"closed_bound_limit\")")

Cause

The test (in crates/fleet-queue/src/turso_queue/closed_bound.rs) flattens include_str!("core.rs") and asserts the sweep call shape. The call site in crates/fleet-queue/src/turso_queue/core.rs (line ~1676) now reads:

match run_closed_bound_checks(t, req_i64(req, "closed_bound_limit").unwrap_or(200)) {

The .unwrap_or(200) was added without updating the test's expected shape, so the flattened source no longer contains the asserted substring.

Evidence

Fix shape

Update the test's expected flattened string to include .unwrap_or(200) (or assert on a looser prefix), keeping the other three assertions (opt-out flag, out["closed_bound"], closed_bound_missing > 0) as they are.

{
  "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-23T11:46:09Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. developing-today commented on Nov 23, 2026

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

    @dezren39
    MemberAuthor

    Lane TL claiming #13230 for premise verification against current main (Lane SJ's PR #13228 touched this same test minutes ago — the failure may already be fixed). Verifying first-hand before any change; will close with evidence if stale, or land the recorded fix shape if it still fails.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Lane TL — done record: premise STALE, closing as completed.

    The failure was real on main 15b2ac834b0d when filed, but it was fixed minutes later by PR #13228 (Lane SJ, for #13215): the test now strips all whitespace from both the core.rs source and the needle before comparing, and its needle run_closed_bound_checks(t,req_i64(req,"closed_bound_limit") is a prefix of the current call shape, so the .unwrap_or(200) suffix no longer matters.

    First-hand verification on current main 3ac8e1a00643ccb707fec1336c1acd0bbdcaa6c1 (laptop worktree, off FETCH_HEAD):

    • Named test standalone: sweep_wiring_runs_the_detective_beside_the_recheckers ... ok
    • Full crate suite: cargo test -p fleet-queue --features client,queue-broker --lib → 571 passed / 0 failed

    No code change needed. Worktree removed after verification.

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