test: eight game-free checks pass on Windows again #3146

Merged
HumanBean merged 2 commits from llun/Longshot:test/main-checks-windows into main 2026-12-04 03:51:50 +00:00
Member

Summary

Eight game-free checks fail on main on Windows. This fixes the checks; nothing the game runs changes.

  • test_loaded_modules_drop, test_linux_pressure, test_program_cache_one_variant, test_program_cache_cleanup: they did not compile, as their stand-ins lacked disk_write_failed (#3115).
  • test_fsr_uniform_ownership: it did not compile, as its stand-in lacked prepared_dynamic (#3096).
  • test_input_background: its stand-in set input_snapshot_active and nothing read it, which clang refuses under -Werror. The check now asks that bindings are read while the flag is set, and that it is cleared once the report is done.
  • test_state_list_give_back: two counters that nothing read (#3115), refused the same way, are gone.
  • test_dlssg_folders (#3131): the code under test joins paths with Windows' \, and the made-up folders had /. They now use the system's separator. Its _wgetenv also clashed with Windows' own.

To see it on main: run mise run test -- --exact with those tests' paths (tests/<name>.py) on Windows with llvm-mingw's clang.

Testing

Tested: Windows 11, llvm-mingw's clang, on main e7ee199b0.

  • The eight checks: all fail on clean main, all pass with this.
  • Broken on purpose, then restored: host/nn_hid.c (the flag never set; the flag never cleared) and gpu/vk/vk_dlssg.cpp (a refused parent folder counted as fine). test_input_background and test_dlssg_folders fail, as they should. Run on main 7c3c16f0a. Not done for the other six.
  • Linux (WSL, the checks' default compilers), before the rebase: the eight pass.
  • The suite, before the rebase and before the fix of test_fsr_uniform_ownership, on main 7c3c16f0a: 836 checks, 835 pass, that one fails. Not run again after.
  • Left out of the suite: test_lifter (listed as failing on main; it was not run) and test_cursor_hidden_linux (#3121 fixes it).
  • The game was not run: only files under tests/ change.

Still to test: None

Measurements

Nothing to measure: tests only.

Risks

None known. A revert is enough. Players notice nothing.

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). (Before the rebase, as Testing says.)
  • 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.
  • 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 Eight game-free checks fail on `main` on Windows. This fixes the checks; nothing the game runs changes. - `test_loaded_modules_drop`, `test_linux_pressure`, `test_program_cache_one_variant`, `test_program_cache_cleanup`: they did not compile, as their stand-ins lacked `disk_write_failed` (#3115). - `test_fsr_uniform_ownership`: it did not compile, as its stand-in lacked `prepared_dynamic` (#3096). - `test_input_background`: its stand-in set `input_snapshot_active` and nothing read it, which clang refuses under `-Werror`. The check now asks that bindings are read while the flag is set, and that it is cleared once the report is done. - `test_state_list_give_back`: two counters that nothing read (#3115), refused the same way, are gone. - `test_dlssg_folders` (#3131): the code under test joins paths with Windows' `\`, and the made-up folders had `/`. They now use the system's separator. Its `_wgetenv` also clashed with Windows' own. To see it on `main`: run `mise run test -- --exact` with those tests' paths (`tests/<name>.py`) on Windows with llvm-mingw's clang. ## Testing **Tested:** Windows 11, llvm-mingw's clang, on main e7ee199b0. - The eight checks: all fail on clean `main`, all pass with this. - Broken on purpose, then restored: `host/nn_hid.c` (the flag never set; the flag never cleared) and `gpu/vk/vk_dlssg.cpp` (a refused parent folder counted as fine). `test_input_background` and `test_dlssg_folders` fail, as they should. Run on main 7c3c16f0a. Not done for the other six. - Linux (WSL, the checks' default compilers), before the rebase: the eight pass. - The suite, before the rebase and before the fix of `test_fsr_uniform_ownership`, on main 7c3c16f0a: 836 checks, 835 pass, that one fails. Not run again after. - Left out of the suite: `test_lifter` (listed as failing on `main`; it was not run) and `test_cursor_hidden_linux` (#3121 fixes it). - The game was not run: only files under `tests/` change. **Still to test:** None ## Measurements Nothing to measure: tests only. ## Risks None known. A revert is enough. Players notice nothing. ## 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). (Before the rebase, as Testing says.) - [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] 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)
Four stand-ins lacked disk_write_failed (#3115). The input check reads the snapshot flag its stand-in only set (#3108), and two counters nothing read are gone (#3115). The DLSS folders check names its made-up paths with the system's separator, and its _wgetenv no longer clashes with Windows' own (#3131).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
test: the FSR uniforms check has the chain's captured mode
Some checks failed
PR description / Title and description (pull_request_target) Successful in 5s
CI / What the change needs (pull_request) Successful in 6s
CI / Third-party parts and guide screenshots (pull_request) Successful in 10s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 14s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 22m32s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m26s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 16m24s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 17m8s
CI / Website build and checks (pull_request) Successful in 1m29s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m4s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Successful in 53m6s
1a93d44ea4
Its stand-in lacked prepared_dynamic (#3096), so it did not compile.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The test-only fixes address the reported failures without changing game code. CI is still running, and the full suite was not rerun after the rebase and final fix. Nothing blocking is left. Recommend approval; not approved on the forge.

Updates eight game-free test fixtures to compile and run on Windows, while retaining their existing checks. The changes add small fixture maintenance costs and do not affect players.

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes: the author reports that all eight checks failed on base e7ee199b0 and passed with the change on Windows 11 using llvm-mingw clang. Linux results and the full-suite run predate the final head.

Other systems: The changes affect test execution on Windows and Linux, not game, renderer, launcher, or player settings. The author reports the eight checks passing on Linux before the rebase; head CI remains pending.

Switches: None added, changed, or removed.

Reviewed: 1a93d44ea4 against e7ee199b0e: Read the repository rules, PR template, standards, commit messages, complete diff, changed Python tests, and the affected fixture and production code around the changes. Large C and C++ fixtures and their test drivers were partly skimmed because command output was truncated. The referenced adjacent Tooling checkout and docs/review-checklist.md were absent.; nothing run (a code review).

Checked and fine:

  • Both commits record AI assistance.
  • No game files, generated outputs, third-party files, API versions, or switch definitions are changed.
  • The input test checks snapshot use and release; the DLSS folder test retains refused-parent coverage.

Testing: No code or tests were run, as requested. The author reports eight Windows checks passing; CI is still running.

Overlaps and merge order: Not checked; network access is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The test-only fixes address the reported failures without changing game code. CI is still running, and the full suite was not rerun after the rebase and final fix. Nothing blocking is left. Recommend approval; not approved on the forge. Updates eight game-free test fixtures to compile and run on Windows, while retaining their existing checks. The changes add small fixture maintenance costs and do not affect players. **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: the author reports that all eight checks failed on base e7ee199b0 and passed with the change on Windows 11 using llvm-mingw clang. Linux results and the full-suite run predate the final head. **Other systems:** The changes affect test execution on Windows and Linux, not game, renderer, launcher, or player settings. The author reports the eight checks passing on Linux before the rebase; head CI remains pending. **Switches:** None added, changed, or removed. **Reviewed:** 1a93d44ea476 against e7ee199b0ebe: Read the repository rules, PR template, standards, commit messages, complete diff, changed Python tests, and the affected fixture and production code around the changes. Large C and C++ fixtures and their test drivers were partly skimmed because command output was truncated. The referenced adjacent Tooling checkout and docs/review-checklist.md were absent.; nothing run (a code review). **Checked and fine:** - Both commits record AI assistance. - No game files, generated outputs, third-party files, API versions, or switch definitions are changed. - The input test checks snapshot use and release; the DLSS folder test retains refused-parent coverage. **Testing:** No code or tests were run, as requested. The author reports eight Windows checks passing; CI is still running. **Overlaps and merge order:** Not checked; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch test/main-checks-windows 2026-12-04 03:51:50 +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!3146
No description provided.