Skip to content

test(fleet-queue): make closed-bound wiring assertion whitespace-insensitive - #13226

Closed
dezren39 wants to merge 1 commit into
mainfrom
queue/code-h-13215
Closed

dezren39 wants to merge 1 commit into
mainfrom
queue/code-h-13215

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

- flat source matcher requires a space after the opening paren
+ compact source matcher removes whitespace and checks the full configured call

Fixes #13215.

Evidence

  • Before: focused main test failed because the source assertion expected whitespace that rustfmt does not emit.
  • After: cargo +1.99.1 test --manifest-path pkgs/fleet/Cargo.toml -p fleet-queue --lib --locked --features queue-broker sweep_wiring_runs_the_detective_beside_the_recheckers — passed (1 passed, 0 failed; run: https://github.com/dezren39/fleet/actions/runs/45176386271). The dispatch used ghcr.io/developing-today/fleet-build:full with inline rustup installation because the image has no cargo on PATH.
  • git diff --check passes.
  • cargo fmt --check reports unrelated pre-existing formatting drift in other fleet-queue files; no unrelated files changed.

Merge Danger

Door: two-way

Blast Radius: test-only}

{
  "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:27:44Z",
    "session_id": "ses_e5df826db95ffeR53LvhjRQ1Og",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/fleet/code-h-13215-20261123T111419Z-7d42ee2d",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/fleet/code-h-13215-20261123T111419Z-7d42ee2d",
      "repo": "developing-today/code",
      "branch": "queue/code-h-13215",
      "sha": "342ac0e8b757f90de06a86b10fb0e75f3e0b9f00"
    },
    "auth_subject": "oc-code-07",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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

Summary by CodeRabbit

  • Tests
    • Updated a check that verifies closed-bound sweep wiring and its default limit.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The sweep-wiring test now removes all whitespace from core.rs before checking for the closed-bound check call and its default limit of 200.

Changes: Sweep wiring test

Layer / File(s) Summary
Normalize the source assertion
pkgs/fleet/crates/fleet-queue/src/turso_queue/closed_bound.rs
The test removes all whitespace from core.rs before checking for the closed-bound check call with the default limit of 200.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other · Severity of issue fixed: Low

Merge Risk: Minimal · up to 342ac

This change only makes a test assertion insensitive to formatting differences, so it has no production impact. It looks safe to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the test change: making the closed-bound wiring assertion whitespace-insensitive in fleet-queue. The raw summary says the sweep-wiring test now strips whitespace from core.rs before ch…
Linked Issues check Passed Issue #13215 is closed and directly linked, so it supplies background only. No active directly linked targets remain, so no linked-issue coding requirements apply to this pull request. For context, th…
Out of Scope Changes check Passed The PR description and raw summary report one changed file, closed_bound.rs, with +7/-2 lines, all in the sweep-wiring test that #13215 names. The change does not alter declarations of exported or pub…
Full details: Title check

Explanation

The title names the test change: making the closed-bound wiring assertion whitespace-insensitive in fleet-queue. The raw summary says the sweep-wiring test now strips whitespace from core.rs before checking the run_closed_bound_checks call, which matches the title. The title is specific, uses a conventional test(scope) prefix, and is under 80 characters. It does not mention the rustfmt cause, but that detail is not required.

Full details: Linked Issues check

Explanation

Issue #13215 is closed and directly linked, so it supplies background only. No active directly linked targets remain, so no linked-issue coding requirements apply to this pull request. For context, the change targets the same test named in #13215: the sweep_wiring_runs_the_detective_beside_the_recheckers source assertion in pkgs/fleet/crates/fleet-queue/src/turso_queue/closed_bound.rs. Per the raw summary, the assertion now strips whitespace from core.rs before checking the run_closed_bound_checks call with the closed_bound_limit default of 200. The test body lies past the truncation point of the file read, so the exact assertion code was not directly confirmed. The author-reported focused test run is not independently verified.

Full details: Out of Scope Changes check

Explanation

The PR description and raw summary report one changed file, closed_bound.rs, with +7/-2 lines, all in the sweep-wiring test that #13215 names. The change does not alter declarations of exported or public entities. No unrelated files are reported as changed. The whole-PR diff could not be read because changed blobs are missing from the checkout, so this verdict relies on the PR description and summary rather than the diff hunks.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • 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

Recent review info

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: d8a1384f-2f77-4e3e-ac22-381973906103
Commits

Reviewing files that changed from the base of the PR and between b5332dc and 342ac0e.

Files selected for processing: 1

  • pkgs/fleet/crates/fleet-queue/src/turso_queue/closed_bound.rs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@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:54:00.793395Z 342ac0e Draft marked ready
ℹ️ 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: PR #13228 fixed the same test the same way (whitespace-stripping matcher) and merged at 2026-11-23T11:33:25Z, closing #13215. My branch's focused test did pass (dezren39/fleet#45176386271: 1 passed, 0 failed), but there is nothing left to merge here.

@dezren39

Copy link
Copy Markdown
Member Author

Closed as superseded. Superseded by #13228, which fixed the same test the same way and merged, closing #13215. Focused test on this branch passed (dezren39/fleet#45176386271), but there is nothing left to merge.
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.

fleet-queue: sweep_wiring_runs_the_detective_beside_the_recheckers fails on main (whitespace-sensitive source assertion)

1 participant