fix: main's rustfmt and test_windows_on_linux pass again #2596

Merged
HumanBean merged 1 commit from HumanBean/Longshot:fix/main-fmt-renderer-count into main 2026-11-26 04:35:57 +00:00
Owner

Summary

Two checks fail on main:

  • cargo fmt --check (CI's Rust job): the line I added in #2594 to builder/crates/longshot-builder/src/dev/site_hooks.rs was too long. It is now formatted as rustfmt wants.
  • tests/test_windows_on_linux.py: it counts "compile --only renderer" in ci.yml's renderer job and expects 2. #2568's step names put the phrase into the job's name too, making 3. The test now counts the two compile commands, "$BUILDER" compile --only renderer.

Testing

Tested: through the job queue, cargo fmt --check -p longshot-builder is clean and tests/test_windows_on_linux.py passes.

Still to test: None.

Measurements

Nothing to measure.

Risks

None: formatting and a test's count.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named). (the two checks this fixes)
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

https://claude.ai/code/session_017vw8e1RP1VgcWpgA7Kq6ec

## Summary Two checks fail on main: - **`cargo fmt --check`** (CI's Rust job): the line I added in [#2594](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2594) to `builder/crates/longshot-builder/src/dev/site_hooks.rs` was too long. It is now formatted as rustfmt wants. - **`tests/test_windows_on_linux.py`:** it counts "compile --only renderer" in `ci.yml`'s renderer job and expects 2. [#2568](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2568)'s step names put the phrase into the job's name too, making 3. The test now counts the two compile commands, `"$BUILDER" compile --only renderer`. ## Testing **Tested:** through the job queue, `cargo fmt --check -p longshot-builder` is clean and `tests/test_windows_on_linux.py` passes. **Still to test:** None. ## Measurements Nothing to measure. ## Risks None: formatting and a test's count. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). (the two checks this fixes) - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017vw8e1RP1VgcWpgA7Kq6ec
fix: main's rustfmt and test_windows_on_linux pass again
All checks were successful
PR description / Title and description (pull_request_target) Successful in 17s
CI / What the change needs (pull_request) Successful in 18s
CI / Third-party parts and guide screenshots (pull_request) Successful in 29s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 2m43s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m6s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 4m56s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Successful in 6m22s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 9m37s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 9m14s
CI / Website build and checks (pull_request) Successful in 2m52s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Successful in 34m1s
7d574bf1d3
site_hooks.rs's line from #2594 is formatted as rustfmt wants, and test_windows_on_linux counts the renderer job's
compile commands, not its name, which #2568's step names made say 'compile --only renderer' a third time.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e1RP1VgcWpgA7Kq6ec
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2596
No description provided.