You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fleet-queue: sweep_wiring_runs_the_detective_beside_the_recheckers fails on main (whitespace-sensitive source assertion) #13215
The test flattens turso_queue/core.rs by splitting on whitespace and joining with single spaces, then asserts the call appears as run_closed_bound_checks( t, ... — with a space after the open paren, which only holds when the call is formatted across multiple lines.
The call in core.rs (line 1654) is currently formatted on one line:
so the flattened text contains run_closed_bound_checks(t, and the assertion fails. The wiring itself is correct — the detective does run beside the recheckers; only the whitespace-sensitive source assertion broke, most likely when the call was reformatted onto one line.
Evidence
Found while running the full fleet-queue suite for the #13191 repair-verb work: 556 passed, 1 failed (this test). Both core.rs and closed_bound.rs are untouched by that change — the failure is pre-existing on main.
Fix options
Make the assertion whitespace-insensitive (e.g. strip all whitespace from both sides before comparing), or
Reformat the call in core.rs back to multi-line form.
The first is more durable: source-shape assertions should not depend on formatter line-breaking.
Claim — Lane SJ (archer): taking this. The failing assertion is in crates/fleet-queue/src/turso_queue/closed_bound.rs; fix = make the source-shape assertion whitespace-insensitive (strip all whitespace both sides) rather than reformatting the call in core.rs, per the issue's preferred durable option. Worktree off current main on the laptop; will verify the test fails pre-fix and passes post-fix, then run the fleet-queue suite.
Progress — Lane SJ: PR #13228 open (head b4d5c3fa0ba). The assertion now strips all whitespace from both sides. Verified on the laptop: pre-fix failure reproduced at closed_bound.rs:822; post-fix the named test passes and the full fleet-queue suite (--features client,queue-broker) is green — lib 564/564. Remote dispatch attempted (run 45165675392); the container's missing-cargo gap (code#13170) makes the laptop run the verifying route.
Done — Lane SJ. PR #13228 merged (70423c0e035a, head SHA-guarded at b4d5c3fa0ba); issue closed as completed (verified by read-back).
The fix: sweep_wiring_runs_the_detective_beside_the_recheckers now strips all whitespace from both the core.rs source and the needle before comparing, so the assertion pins the closed-bound call's shape rather than the formatter's line-breaking.
Verification (laptop route):
Pre-fix failure reproduced first-hand in the worktree: FAILED at closed_bound.rs:822 with the issue's exact assertion.
Post-fix: named test passes; full cargo test -p fleet-queue --features client,queue-broker green — lib 564 passed / 0 failed, integration suites green (2 + 5).
Mutation check: restoring the old whitespace-joined assertion fails the test; the new one passes.
rustfmt --check clean on the touched file.
Remote dispatch attempted first-class (dezren39/fleet run 45165675392): failed with cargo: command not found, exit 127 — the fleet-build container toolchain gap tracked as code#13170 (family of flag-held code#13159). An environment failure, not a test result; the laptop run is the verifying route.
Activity
developing-today commentedon Nov 23, 2026
CODE-4820
dezren39 commentedon Nov 23, 2026
Claim — Lane SJ (archer): taking this. The failing assertion is in
crates/fleet-queue/src/turso_queue/closed_bound.rs; fix = make the source-shape assertion whitespace-insensitive (strip all whitespace both sides) rather than reformatting the call incore.rs, per the issue's preferred durable option. Worktree off current main on the laptop; will verify the test fails pre-fix and passes post-fix, then run the fleet-queue suite.dezren39 commentedon Nov 23, 2026
Progress — Lane SJ: PR #13228 open (head
b4d5c3fa0ba). The assertion now strips all whitespace from both sides. Verified on the laptop: pre-fix failure reproduced atclosed_bound.rs:822; post-fix the named test passes and the full fleet-queue suite (--features client,queue-broker) is green — lib 564/564. Remote dispatch attempted (run 45165675392); the container's missing-cargo gap (code#13170) makes the laptop run the verifying route.dezren39 commentedon Nov 23, 2026
Done — Lane SJ. PR #13228 merged (
70423c0e035a, head SHA-guarded atb4d5c3fa0ba); issue closed as completed (verified by read-back).The fix:
sweep_wiring_runs_the_detective_beside_the_recheckersnow strips all whitespace from both thecore.rssource and the needle before comparing, so the assertion pins the closed-bound call's shape rather than the formatter's line-breaking.Verification (laptop route):
closed_bound.rs:822with the issue's exact assertion.cargo test -p fleet-queue --features client,queue-brokergreen — lib 564 passed / 0 failed, integration suites green (2 + 5).rustfmt --checkclean on the touched file.cargo: command not found, exit 127 — the fleet-build container toolchain gap tracked as code#13170 (family of flag-held code#13159). An environment failure, not a test result; the laptop run is the verifying route.dezren39 commentedon Nov 23, 2026
Fixed by PR #13226 (branch
queue/code-h-13215, commit 342ac0e). Focused verification: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): https://github.com/dezren39/fleet/actions/runs/45176386271