test: the game-free checks that fell behind the mod API's code pass again #2848

Merged
HumanBean merged 1 commit from HumanBean/Longshot:test/mod-api-fixtures into mod-api 2026-11-30 01:29:30 +00:00
Owner

Summary

Fourteen of the game-free checks (tests/run_all.py) failed on mod-api, on the old head (816d2354) as on the one rebased on main 46291934: each fixture copies real code out of the tree and had not followed it. While they fail, CI's game-free checks on #2822 cannot pass. Test fixtures only; no game, renderer or builder code changes.

  • Video (catch-up, hold early, input limit, vcore acquire): a movie_now stand-in, host/nn_video.c's clock without the background hold.
  • Shader cache and memory (program cache cleanup and one variant, loaded modules drop, Linux pressure): the shader store held as a pointer, as vk_progcache.cpp holds it.
  • Present source crop: drain_framegen_sets. Guest holes: UploadLayoutGuard and the transfer layout.
  • Windows display startup and screensaver: the window icons and DPI, and WM_NCDESTROY.
  • Controller in background: read through PADS_IN_BACKGROUND_SETTING (off while Pause in background is on); the fixture takes that macro from host/nn_hid.c.
  • Text keyboard policy: newer clang's -Wunused-but-set-global on the fixture's counter.
  • Windows on Linux: the renderer job runs dev compile.

Read first: tests/test_input_background.py (the only check whose reading changed, not just its stand-ins).

Testing

Tested: Linux (CachyOS, clang and gcc): the 14 checks pass with tests/run_all.py --exact; before this change each failed on the old mod-api head and on the rebased one. Nothing the game runs changes, so no game run.

Still to test: None (CI's game-free checks run them on Linux and Windows).

Measurements

Nothing to measure: test fixtures only.

Risks

None for players: only tests change. A fixture's stand-in could hide a real change in the code it copies; each stand-in mirrors the code's own behaviour as named above.

Checklist

Ready for review

  • One topic, on current mod-api; 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).
  • 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

## Summary Fourteen of the game-free checks (`tests/run_all.py`) failed on `mod-api`, on the old head (816d2354) as on the one rebased on main 46291934: each fixture copies real code out of the tree and had not followed it. While they fail, CI's game-free checks on [#2822](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2822) cannot pass. Test fixtures only; no game, renderer or builder code changes. - **Video** (catch-up, hold early, input limit, vcore acquire): a `movie_now` stand-in, host/nn_video.c's clock without the background hold. - **Shader cache and memory** (program cache cleanup and one variant, loaded modules drop, Linux pressure): the shader store held as a pointer, as `vk_progcache.cpp` holds it. - **Present source crop**: `drain_framegen_sets`. **Guest holes**: `UploadLayoutGuard` and the transfer layout. - **Windows display startup and screensaver**: the window icons and DPI, and `WM_NCDESTROY`. - **Controller in background**: read through `PADS_IN_BACKGROUND_SETTING` (off while Pause in background is on); the fixture takes that macro from host/nn_hid.c. - **Text keyboard policy**: newer clang's `-Wunused-but-set-global` on the fixture's counter. - **Windows on Linux**: the renderer job runs `dev compile`. Read first: tests/test_input_background.py (the only check whose reading changed, not just its stand-ins). ## Testing **Tested:** Linux (CachyOS, clang and gcc): the 14 checks pass with `tests/run_all.py --exact`; before this change each failed on the old `mod-api` head and on the rebased one. Nothing the game runs changes, so no game run. **Still to test:** None (CI's game-free checks run them on Linux and Windows). ## Measurements Nothing to measure: test fixtures only. ## Risks None for players: only tests change. A fixture's stand-in could hide a real change in the code it copies; each stand-in mirrors the code's own behaviour as named above. ## Checklist ### Ready for review - [x] One topic, on current `mod-api`; 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). - [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)
test: the game-free checks that fell behind the mod API's code pass again
All checks were successful
PR description / Title and description (pull_request_target) Successful in 5s
952b899c11
Fourteen checks failed on mod-api, before and after the rebase on main 46291934: their fixtures had not followed the code
they cut. Each gets the stand-in or the reading it now needs; no game code changes.

- video catch-up, hold, input limit and vcore acquire: movie_now (host/nn_video.c), the clock without the background hold
- the program cache and memory checks: the shader store held as a pointer, as vk_progcache.cpp holds it
- present source crop: drain_framegen_sets; guest holes: UploadLayoutGuard and the transfer layout
- display startup and screensaver: the window icons and DPI, WM_NCDESTROY
- controller in background: read through PADS_IN_BACKGROUND_SETTING, off while Pause in background is on
- text keyboard policy: a newer clang's -Wunused-but-set-global on the fixture's counter
- windows on linux: the renderer job runs `dev compile`

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member

Possibly related, for context:

  • PR #2826 WIP: test: the checks mod-api fails only on Windows pass there: their stand-ins follow the branch's host code — Overlapping game-free fixture updates on mod-api; separate Windows-only checks
Possibly related, for context: - PR #2826 WIP: test: the checks mod-api fails only on Windows pass there: their stand-ins follow the branch's host code — Overlapping game-free fixture updates on mod-api; separate Windows-only checks
HumanBean merged commit 537c28167f into mod-api 2026-11-30 01:29:30 +00:00
HumanBean deleted branch test/mod-api-fixtures 2026-11-30 01:29:31 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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!2848
No description provided.