Skip to content

style: restore cargo fmt on main - #1567

Merged
justinchuby merged 1 commit into
mainfrom
squad/roy-fmt-main
Aug 20, 2026
Merged

justinchuby merged 1 commit into
mainfrom
squad/roy-fmt-main

Conversation

@justinchuby

Copy link
Copy Markdown
Owner

cargo fmt --all --check is red on main, so every open PR fails the format gate regardless of its own contents. I hit this validating an unrelated CPU change and the failure was in files I had never touched.

Two files drifted in #1562:

  • crates/onnx-runtime-ep-cuda/src/optimizer.rs
  • crates/onnx-runtime-ep-cuda/src/kernels/global_reduction.rs

Confirmed pre-existing by running rustfmt --check against git show origin/main:<file> rather than against my branch.

Formatting only — the output of cargo fmt --all, no hand edits, no behavioural change.

$ cargo fmt --all --check   # clean after

`cargo fmt --all --check` is red on main, so every open PR fails the format
gate regardless of its own contents. Two files drifted in #1562:
`onnx-runtime-ep-cuda/src/optimizer.rs` and
`onnx-runtime-ep-cuda/src/kernels/global_reduction.rs`.

Formatting only -- `cargo fmt --all` output, no hand edits.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@justinchuby
justinchuby marked this pull request as ready for review August 20, 2026 12:43
@justinchuby
justinchuby merged commit 64cef4a into main Aug 20, 2026
5 of 14 checks passed
@justinchuby
justinchuby deleted the squad/roy-fmt-main branch August 20, 2026 12:44
@codecov

codecov Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.64%. Comparing base (e715494) to head (653e238).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1567   +/-   ##
=======================================
  Coverage   82.64%   82.64%           
=======================================
  Files          12       12           
  Lines        5475     5475           
  Branches     5475     5475           
=======================================
  Hits         4525     4525           
  Misses        757      757           
  Partials      193      193           
Flag Coverage Δ
cli-ort-linux 82.60% <ø> (ø)
cli-ort-windows 82.19% <ø> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

justinchuby added a commit that referenced this pull request Aug 20, 2026
## Problem

`cargo fmt --all --check` is **red on `origin/main`** (`b77e3d3fc`), so
every open PR fails the fmt gate on code it did not touch.

#1578 repaired
`crates/onnx-runtime-ep-cuda/src/kernels/normalization.rs` but left two
rustfmt diffs in the *same crate's* `matmul_nbits.rs`:

- `:19596` — a `.map().collect()` chain that fits on one line
- `:19753` — a stray blank line before a closing brace

## Fix

`cargo fmt --all`. One file, +1/-4, formatting only, no functional
change.

## Verification

```
$ git log --oneline -1
b77e3d3 ci: restore a red main ... (#1578)
$ cargo fmt --all --check    # before
Diff in .../ep-cuda/src/kernels/matmul_nbits.rs:19596
Diff in .../ep-cuda/src/kernels/matmul_nbits.rs:19753
exit 1
$ cargo fmt --all && cargo fmt --all --check    # after
exit 0
```

This is the second time this session that a red-on-main fmt gate has
blocked unrelated PRs (see #1567). Both were introduced by changes that
landed without the fmt gate passing.

Co-authored-by: Roy <roy@squad.local>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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