fix: the tests and the formatting failing on main #3140

Merged
HumanBean merged 1 commit from HumanBean/Longshot:fix/main-tests into main 2026-12-04 00:54:47 +00:00
Owner

Summary

main had a test that does not compile, two failing tests and an unformatted file. This fixes them.
No behaviour changes.

  • game/mods/cheats/src/system_mod.rs: two empty lists in the inventory test have no type, so the crate's tests do not
    compile. My mistake in #3069.
  • game/crates/modtool/src/service/tests.rs: a_mod_written_off_the_first_time_... expected an emulator mod written
    down off the first time. #3105's review changed that:
    the first time, each mod keeps what it did (record.rs's module text). The test now says so.
  • website/tests/graphics-settings.test.ts: it rewrote the settings table's Profile line by its exact text, which has
    since gained "(Minimum: Handheld)".
  • game/crates/game-core/src/video.rs: rustfmt.

(The lint error this also fixed is already fixed on main.)

Testing

Tested: Linux. The sysmod-cheats tests (59 passed), modtool's service tests (36 passed), the website tests
(101 passed), cargo clippy --workspace --all-targets --keep-going -- -D warnings (clean) and cargo fmt --check --all
(clean). Nothing run in the game: the one change to code the game runs is formatting.

Still to test: None.

Measurements

Nothing to measure: tests and formatting.

Risks

Next to none; a revert is enough.

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. (not run in the game: no change in what it does)
  • mise run test passes (any failure that also fails on main is named). (run as its parts above, not whole)
  • 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 check under tests/ that reads changed source is updated, not weakened.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • 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_017vw8e2fJhRpDrY7pgVx6oJ

## Summary `main` had a test that does not compile, two failing tests and an unformatted file. This fixes them. No behaviour changes. - `game/mods/cheats/src/system_mod.rs`: two empty lists in the inventory test have no type, so the crate's tests do not compile. My mistake in [#3069](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3069). - `game/crates/modtool/src/service/tests.rs`: `a_mod_written_off_the_first_time_...` expected an emulator mod written down off the first time. [#3105](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3105)'s review changed that: the first time, each mod keeps what it did (`record.rs`'s module text). The test now says so. - `website/tests/graphics-settings.test.ts`: it rewrote the settings table's Profile line by its exact text, which has since gained "(Minimum: Handheld)". - `game/crates/game-core/src/video.rs`: `rustfmt`. (The lint error this also fixed is already fixed on `main`.) ## Testing **Tested:** Linux. The `sysmod-cheats` tests (59 passed), `modtool`'s `service` tests (36 passed), the website tests (101 passed), `cargo clippy --workspace --all-targets --keep-going -- -D warnings` (clean) and `cargo fmt --check --all` (clean). Nothing run in the game: the one change to code the game runs is formatting. **Still to test:** None. ## Measurements Nothing to measure: tests and formatting. ## Risks Next to none; a revert is enough. ## Checklist ### Ready for review - [x] 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. (not run in the game: no change in what it does) - [ ] `mise run test` passes (any failure that also fails on `main` is named). (run as its parts above, not whole) - [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 check under `tests/` that reads changed source is updated, not weakened. - [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. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] 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_017vw8e2fJhRpDrY7pgVx6oJ
fix: the tests, the lint and the formatting failing on main
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Successful in 6s
CI / Third-party parts and guide screenshots (pull_request) Successful in 11s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 14s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m21s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 16m59s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 16m20s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 20m57s
CI / Website build and checks (pull_request) Successful in 1m9s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 52m39s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m6s
6fe6302be9
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ
HumanBean changed title from WIP: fix: the tests, the lint and the formatting failing on main to WIP: fix: the tests and the formatting failing on main 2026-12-04 00:52:21 +00:00
HumanBean force-pushed fix/main-tests from 6fe6302be9
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Successful in 6s
CI / Third-party parts and guide screenshots (pull_request) Successful in 11s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 14s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m21s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 16m59s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 16m20s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 20m57s
CI / Website build and checks (pull_request) Successful in 1m9s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 52m39s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m6s
to c7e0a188e6
Some checks failed
PR description / Title and description (pull_request_target) Failing after 5s
2026-12-04 00:52:21 +00:00
Compare
HumanBean changed title from WIP: fix: the tests and the formatting failing on main to fix: the tests and the formatting failing on main 2026-12-04 00:54:41 +00:00
HumanBean deleted branch fix/main-tests 2026-12-04 00:54:48 +00:00
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!3140
No description provided.