Skip to content

test(fleet-queue): closed-bound sweep wiring assertion vs treefmt layout - #13239

Closed
dezren39 wants to merge 1 commit into
mainfrom
lane-any-n-13221
Closed

dezren39 wants to merge 1 commit into
mainfrom
lane-any-n-13221

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

 pkgs/fleet/crates/fleet-queue/src/turso_queue/closed_bound.rs (tests)
   fn sweep_wiring_runs_the_detective_beside_the_recheckers
-    assert!(flat.contains("run_closed_bound_checks( t, req_i64(req, \"closed_bound_limit\")"));
+    assert!(flat.contains("run_closed_bound_checks("));
+    assert!(flat.contains("t, req_i64(req, \"closed_bound_limit\")"));

Stale source-shape assertion, not a wiring regression. Commit 5a70b6b (style(treefmt): auto-format on main) collapsed the multi-line run_closed_bound_checks call in turso_queue/core.rs onto one line, so the whitespace-flattened source no longer contains checks( t, — it is checks(t,. The detective wiring itself is intact: the call still rides the sweep with its own closed_bound_limit key, the opt-out closed_bound flag defaulting on, and its summary under out["closed_bound"]. The test now asserts the call pieces (function name, then t, req_i64(req, "closed_bound_limit")) so treefmt can lay the call out on one line or many.

Fixes #13221

Evidence

  • Before: CI run 45157413086, job basic: fleet per-variant smoke suite: turso_queue::closed_bound::tests::sweep_wiring_runs_the_detective_beside_the_recheckers fails at closed_bound.rs:822 (assertion failed: flat.contains(...)); 572 passed, 1 failed.
    After: focused run — cargo test -p fleet-queue --features queue-broker --lib turso_queue::closed_bound → 9 passed, 0 failed (including the previously failing test); full lib suite cargo test -p fleet-queue --all-features --lib → 594 passed, 0 failed.

Merge Danger

Door: two-way — one test assertion reverted or restated at any time.

Blast Radius: minimal — test-only change to fleet-queue unit tests; no production code touched.

{
  "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-23T12:00:31Z",
    "session_id": "ses_e5df7dd69c2ffemklEpYIYgJqT",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/fleet/any-n-8299-20261123T112323Z-36b74631",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/fleet/any-n-8299-20261123T112323Z-36b74631",
      "repo": "developing-today/code",
      "branch": "lane-any-n-8299",
      "sha": "898f787cd542c345accabbab5449b84bb6971f04"
    },
    "auth_subject": "code-f",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

See it in action
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

… not spacing

Commit 5a70b6b (style(treefmt): auto-format on main) collapsed the
multi-line run_closed_bound_checks call in turso_queue/core.rs onto one
line, so the flattened-source assertion at closed_bound.rs:822 — which
expected 'run_closed_bound_checks( t, ...' with a space — went stale and
failed main CI fleet-smoke (run 45157413086, issue #13221).

The wiring itself is intact: the detective still rides the sweep with
its own closed_bound_limit key, opt-out closed_bound flag defaulting on,
and its summary under out["closed_bound"]. This asserts the call
pieces (function name, then 't, req_i64(req, "closed_bound_limit")')
so treefmt can lay the call out on one line or many without breaking
the test.

Fixes #13221
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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 32 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c1de4ba8-e259-42bd-8fa5-914924ba0201
Commits

Reviewing files that changed from the base of the PR and between d18c12f and e819c5f.

Files selected for processing: 1

  • pkgs/fleet/crates/fleet-queue/src/turso_queue/closed_bound.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T12:01:55.811198Z e819c5f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39

Copy link
Copy Markdown
Member Author

Closing as superseded: #13221 is already fixed on main by merged #13228 (commit b4d5c3f, whitespace-insensitive sweep-wiring assertion). This PR's piece-wise assertion is a duplicate fix for the same stale assertion; the focused closed_bound suite (9 tests, incl. sweep_wiring_runs_the_detective_beside_the_recheckers) passes on main. Verified by lane code-i.

@dezren39

Copy link
Copy Markdown
Member Author

Closed as superseded. Duplicate fix for #13221; already fixed on main by merged #13228 (b4d5c3f). Focused suite green on main.
Successor: 13228

@dezren39 dezren39 closed this Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

developing-today/code CI failure: fleet-smoke

1 participant