Skip to content

Run rustfmt on both manifests; main's fmt gate has been red since #67 - #71

Merged
adbarc92 merged 1 commit into
mainfrom
fix/fmt-clippy-after-cors
Sep 8, 2026
Merged

Run rustfmt on both manifests; main's fmt gate has been red since #67#71
adbarc92 merged 1 commit into
mainfrom
fix/fmt-clippy-after-cors

Conversation

@adbarc92

@adbarc92 adbarc92 commented Sep 8, 2026

Copy link
Copy Markdown
Owner

cargo fmt --all fails on main in both cargo workspaces, and has since #67 merged on 2026-09-06. #68 added more. Both are mine.

Why it went unnoticed is the interesting part

fmt + clippy is not a required status check on this repo — only cargo test (workspace) is. So a red fmt doesn't block a merge, and three PRs merged past a failing gate without anyone choosing to override it.

That is I1's corollary arriving from the other direction: a check that cannot block is not a gate. It ran, it failed, and the merge happened anyway. Same shape as the Announce gate and parse_blockers — the fourth instance this week.

Changes

No logic. rustfmt's own preferences only:

  • crates/fleetd/src/server.rs — import moved to its sorted position
  • cockpit/ui/src-tauri/src/dashboard.rs — two chained expressions wrapped

Clippy is clean on both manifests with -D warnings, and already was. Tests unchanged: 90 fleetd + 30 fleet-core.

Recommendation

Make fmt + clippy required alongside cargo test, so this class of drift can't land again. One settings change; I can't make it from here.

…nce #67

cargo fmt --all fails on main, in both cargo workspaces, and has since #67
merged on 2026-09-06. #68 added more. Both are mine.

The reason it went unnoticed is worth recording: "fmt + clippy" is not a
REQUIRED status check on this repo - only "cargo test (workspace)" is - so a red
fmt does not block a merge. Three PRs merged past a failing gate without anyone
choosing to override it.

That is exactly I1's corollary from the doctrine side, arriving from the other
direction: a check that cannot block is not a gate. It ran, it failed, and the
merge happened anyway.

No logic changes. rustfmt's own preferences only:
  server.rs      import moved to its sorted position
  dashboard.rs   two chained expressions wrapped

Clippy is clean on both manifests with -D warnings, and was already. Tests
unchanged: 90 fleetd + 30 fleet-core.

Recommend making "fmt + clippy" required alongside "cargo test", so this class
of drift cannot land again.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@adbarc92
adbarc92 merged commit e1e8ab7 into main Sep 8, 2026
16 checks passed
@adbarc92
adbarc92 deleted the fix/fmt-clippy-after-cors branch September 8, 2026 21:19
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.

1 participant