fix(tests): main's own failing checks pass again (the hook-site list, a Linux compile, the website) #3083

Merged
HumanBean merged 4 commits from llun/Longshot:fix/main-failing-tests into main 2026-12-03 15:02:58 +00:00
Member

Summary

Several of main's own checks fail, so every pull request has to explain failures that are not its own. This fixes the ones nobody else is fixing. They share one pull request because they are all the same thing: checks that fail on main by themselves. Each fix is small and is its own commit.

Check that fails on main Cause Fix
sites: every_site_has_one_owner_and_the_sites_are_the_ones_before_the_split (run by test_lifter) #3029 added the hook site event.skip without adding it to the test's list. The site is intended; the list was out of date. Its line in site_owners.txt
test_vk_wb_cpu_words_fast on Linux The test's own C++ (#2997) calls std::min on two number types that are the same on Windows and different on Linux. Any Linux compiler refuses it, not only GCC 16. The two calls name uint64_t. The renderer is unchanged.
The website build: "The table names no condition for Dynamic resolution minimum" The settings table names the condition, but the website has no rule that reads it (#2875). Behind that error was a second one, for Custom frame rate cap (#2719). A rule (and badge) for each, plus a test for each that the row still needs its condition in the table. The check is as strict as before.
The website's save scrubber zip test, on Windows only It compares text Python printed with Windows line ends to text with Linux ones. The line ends are made the same before comparing

test_i18n_complete also fails on main; #3065 fixes it, so it is not here.

Read first: builder/crates/sites/tests/site_owners.txt, BADGES in website/src/repo-docs/graphics-settings.ts.

Testing

Tested: on Windows 11 (Rust 1.99.1-x86_64-pc-windows-gnullvm, llvm-mingw) and Linux (WSL, Ubuntu 24.04). No game run: nothing here is built into the game or the builder.

  • Hook sites, Windows: cargo test -p sites --test repository fails on that one test with main's list and passes with this one. All of cargo test -p sites passes (46 + 6).
  • test_vk_wb_cpu_words_fast: on Linux it does not compile on main with g++ 13 (the std::min error) and passes here with g++ 13 and clang++. It passes here on Windows with llvm-mingw's clang++. GCC 16 was not available, so it is not tried there.
  • Website, Windows: scripts/website_check.sh builds and passes 101 of 101 tests. With main's rules put back, 21 of the 27 settings tests fail with the Dynamic resolution minimum error, the two new ones among them. With only that rule added, the build stopped at Custom frame rate cap. The zip test failed on Windows before its fix.

Not run: the whole suite (mise run test). Only the checks above were run; no other check or crate reads the changed files.

Still to test:

  • Linux with GCC 16: tests/test_vk_wb_cpu_words_fast.py, expecting a pass (by hand).

Measurements

Nothing to measure: only tests, a test's list and the website's settings page change. Nothing the game, the build or a cache uses is touched.

Risks

A revert is enough. The settings page on the website gains two badges: "While Dynamic resolution is On" and "While Game frame rate cap is Custom". A player's game and saves do not change. #3082 edits the same comment in site_owners.txt, so whichever merges second has a small text conflict.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit. (One topic: main's own failing checks, as the Summary says.)
  • 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). Not ticked: the whole suite was not run, by the author's choice. The affected checks were, 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 Several of `main`'s own checks fail, so every pull request has to explain failures that are not its own. This fixes the ones nobody else is fixing. They share one pull request because they are all the same thing: checks that fail on `main` by themselves. Each fix is small and is its own commit. | Check that fails on `main` | Cause | Fix | |---|---|---| | `sites`: `every_site_has_one_owner_and_the_sites_are_the_ones_before_the_split` (run by `test_lifter`) | #3029 added the hook site `event.skip` without adding it to the test's list. The site is intended; the list was out of date. | Its line in `site_owners.txt` | | `test_vk_wb_cpu_words_fast` on Linux | The test's own C++ (#2997) calls `std::min` on two number types that are the same on Windows and different on Linux. Any Linux compiler refuses it, not only GCC 16. | The two calls name `uint64_t`. The renderer is unchanged. | | The website build: "The table names no condition for Dynamic resolution minimum" | The settings table names the condition, but the website has no rule that reads it (#2875). Behind that error was a second one, for Custom frame rate cap (#2719). | A rule (and badge) for each, plus a test for each that the row still needs its condition in the table. The check is as strict as before. | | The website's save scrubber zip test, on Windows only | It compares text Python printed with Windows line ends to text with Linux ones. | The line ends are made the same before comparing | `test_i18n_complete` also fails on `main`; #3065 fixes it, so it is not here. Read first: `builder/crates/sites/tests/site_owners.txt`, `BADGES` in `website/src/repo-docs/graphics-settings.ts`. ## Testing **Tested:** on Windows 11 (Rust `1.99.1-x86_64-pc-windows-gnullvm`, llvm-mingw) and Linux (WSL, Ubuntu 24.04). No game run: nothing here is built into the game or the builder. - Hook sites, Windows: `cargo test -p sites --test repository` fails on that one test with `main`'s list and passes with this one. All of `cargo test -p sites` passes (46 + 6). - `test_vk_wb_cpu_words_fast`: on Linux it does not compile on `main` with g++ 13 (the `std::min` error) and passes here with g++ 13 and clang++. It passes here on Windows with llvm-mingw's clang++. GCC 16 was not available, so it is not tried there. - Website, Windows: `scripts/website_check.sh` builds and passes 101 of 101 tests. With `main`'s rules put back, 21 of the 27 settings tests fail with the Dynamic resolution minimum error, the two new ones among them. With only that rule added, the build stopped at Custom frame rate cap. The zip test failed on Windows before its fix. **Not run:** the whole suite (`mise run test`). Only the checks above were run; no other check or crate reads the changed files. **Still to test:** - Linux with GCC 16: `tests/test_vk_wb_cpu_words_fast.py`, expecting a pass (by hand). ## Measurements Nothing to measure: only tests, a test's list and the website's settings page change. Nothing the game, the build or a cache uses is touched. ## Risks A revert is enough. The settings page on the website gains two badges: "While Dynamic resolution is On" and "While Game frame rate cap is Custom". A player's game and saves do not change. #3082 edits the same comment in `site_owners.txt`, so whichever merges second has a small text conflict. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. (One topic: `main`'s own failing checks, as the Summary says.) - [x] 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). Not ticked: the whole suite was not run, by the author's choice. The affected checks were, 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)
#3029 added event.skip to game/sites/sites.toml (Debug > Skip cinematics) and the list the sites are checked against did not get its line, so every_site_has_one_owner_and_the_sites_are_the_ones_before_the_split failed. The site is the intended one: it is the only difference between the table and the list.

Assisted-by: Claude Code (claude-opus-5-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Its C++ calls std::min on a uint64_t and an unsigned long long. They are one type on Windows and two on Linux, so every Linux compiler refused it since #2997. The two calls name uint64_t; the values tested are the same.

Assisted-by: Claude Code (claude-opus-5-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The settings table names both rows' conditions, but BADGES had no rule for them (#2875, #2719), so the website did not build. The second was hidden behind the first. Each condition has its badge, and a test that the row still needs its condition in the table.

Assisted-by: Claude Code (claude-opus-5-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
test(website): the save scrubber's zip test passes on Windows
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
57d0900844
It compares Python's printed lines, which end in CR LF on Windows, with LF ones.

Assisted-by: Claude Code (claude-opus-5-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The fixes address reported failures, but they combine unrelated changes in violation of the repository’s one-topic rule. The full suite and the remaining reported checks have not yet completed. Nothing blocking is left. Recommend approval; not approved on the forge.

The change restores hook-site coverage, fixes a Linux test compilation error, repairs website settings generation and normalizes Windows test output. The fixes are small, but they affect independent checks and should be reviewed separately.

Should fix (1): not blocking, but worth doing before merging.

  • L1: This combines unrelated fixes despite the repository’s one-topic rule, which explicitly requires unrelated fixes in separate pull requests. When: The site owner list, Linux C++ compilation, website settings badges and Windows zip-test line endings have separate causes and affect independent checks. Do: Split the independent fixes into focused pull requests, keeping the website badge rules and their tests together.

@fix can do L1.

Questions (1) (not confirmed from the code; they don't hold the recommendation)

  • website/src/repo-docs/graphics-settings.ts:32: What visual problem appears when the two badges are rendered?

Checks: Still running: 11 checks.

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

Does it help: Yes, according to the author’s reported runs: the site test passes, the C++ test compiles and passes on the tested Linux and Windows compilers, and the website build and 101 tests pass on Windows. GCC 16 and the full suite remain untested.

Other systems: The game, renderer, builder output and player saves are unchanged. The website gains two condition badges; the reported website checks cover their source data, but no rendered screenshot was supplied.

Switches: None added, changed or removed.

Reviewed: 57d0900844 against b4d56f5264: Read AGENTS.md, CONTRIBUTING.md, docs/dev/standards.md, the PR template, all changed files, the commits and diff, and the relevant site, menu and test harness code. Skimmed related references and translations; docs/review-checklist.md and ../Tooling/AGENTS.md were absent.; nothing run (a code review).

Checked and fine:

  • The event.skip owner and placement match the site table.
  • Both explicit std::min types preserve the intended unsigned values.
  • The new badge rules match the documented conditions and their menu declarations; the tests exercise missing conditions.
  • The zip comparison normalizes Python’s Windows line endings.
  • Each commit records AI assistance; no generated output, game-derived files, API versions or switch tables are changed.

Testing: Read-only review; no project code or tests were run. The author reports affected checks on Windows and Linux; GCC 16 and the full suite remain outstanding, and CI is still running.

Overlaps and merge order: #3082 edits the same site_owners.txt comment; whichever merges second will need to resolve the text conflict.


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

**Recommendation: Approve.** The fixes address reported failures, but they combine unrelated changes in violation of the repository’s one-topic rule. The full suite and the remaining reported checks have not yet completed. Nothing blocking is left. Recommend approval; not approved on the forge. The change restores hook-site coverage, fixes a Linux test compilation error, repairs website settings generation and normalizes Windows test output. The fixes are small, but they affect independent checks and should be reviewed separately. **Should fix (1)**: not blocking, but worth doing before merging. - **L1**: This combines unrelated fixes despite the repository’s one-topic rule, which explicitly requires unrelated fixes in separate pull requests. *When:* The site owner list, Linux C++ compilation, website settings badges and Windows zip-test line endings have separate causes and affect independent checks. **Do:** Split the independent fixes into focused pull requests, keeping the website badge rules and their tests together. `@fix` can do L1. **Questions (1)** (not confirmed from the code; they don't hold the recommendation) - `website/src/repo-docs/graphics-settings.ts:32`: What visual problem appears when the two badges are rendered? **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes, according to the author’s reported runs: the site test passes, the C++ test compiles and passes on the tested Linux and Windows compilers, and the website build and 101 tests pass on Windows. GCC 16 and the full suite remain untested. **Other systems:** The game, renderer, builder output and player saves are unchanged. The website gains two condition badges; the reported website checks cover their source data, but no rendered screenshot was supplied. **Switches:** None added, changed or removed. **Reviewed:** 57d0900844f8 against b4d56f526449: Read AGENTS.md, CONTRIBUTING.md, docs/dev/standards.md, the PR template, all changed files, the commits and diff, and the relevant site, menu and test harness code. Skimmed related references and translations; docs/review-checklist.md and ../Tooling/AGENTS.md were absent.; nothing run (a code review). **Checked and fine:** - The event.skip owner and placement match the site table. - Both explicit std::min types preserve the intended unsigned values. - The new badge rules match the documented conditions and their menu declarations; the tests exercise missing conditions. - The zip comparison normalizes Python’s Windows line endings. - Each commit records AI assistance; no generated output, game-derived files, API versions or switch tables are changed. **Testing:** Read-only review; no project code or tests were run. The author reports affected checks on Windows and Linux; GCC 16 and the full suite remain outstanding, and CI is still running. **Overlaps and merge order:** #3082 edits the same site_owners.txt comment; whichever merges second will need to resolve the text conflict. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
Author
Member

Thanks. On the two points:

  • L1, one topic: kept as one pull request on purpose. All four are main's own failing checks, each is small, and each is its own commit, so any one can be reviewed or reverted alone. The Summary says so.
  • How the badges look: no problem seen. I opened the built settings page in a browser at one size (1024 px wide, dark theme). Both new badges stay inside their column, wrap onto two lines, and are the same size (192 x 46 px) as the existing "While Dynamic resolution is Off" and "With Streamline's and NGX's DLSS FG files". A phone width and the light theme were not looked at.

The whole suite has still not been run, so this stays WIP.

Thanks. On the two points: - **L1, one topic:** kept as one pull request on purpose. All four are `main`'s own failing checks, each is small, and each is its own commit, so any one can be reviewed or reverted alone. The Summary says so. - **How the badges look:** no problem seen. I opened the built settings page in a browser at one size (1024 px wide, dark theme). Both new badges stay inside their column, wrap onto two lines, and are the same size (192 x 46 px) as the existing "While Dynamic resolution is Off" and "With Streamline's and NGX's DLSS FG files". A phone width and the light theme were not looked at. The whole suite has still not been run, so this stays WIP.
llun changed title from WIP: fix(tests): main's own failing checks pass again (the hook-site list, a Linux compile, the website) to fix(tests): main's own failing checks pass again (the hook-site list, a Linux compile, the website) 2026-12-03 14:18:10 +00:00
BeanBot left a comment

Recommendation: Approve. The pull request combines unrelated fixes, contrary to the repository’s explicit one-topic rule. Separate commits do not resolve that rule because the pull request is squash-merged. Nothing blocking is left. Recommend approval; not approved on the forge.

The changes restore several failing checks and add two website settings badges. The individual fixes are small, but they address unrelated causes and should be separated.

Should fix (1): not blocking, but worth doing before merging.

  • L1: This combines unrelated fixes despite the repository’s one-topic rule, which explicitly requires unrelated fixes in separate pull requests. When: The site owner list, Linux C++ compilation, website settings badges and Windows zip-test line endings have separate causes and affect independent checks. Do: Split the independent fixes into focused pull requests, keeping the website badge rules and their tests together.

@fix can do L1.

Since the last review (on 57d0900844)
Still open: L1 (This combines unrelated fixes despite the repository’s one-topic rule, which explicitly re…)

Checks: Still running: 11 checks.

Also noticed (2; not asked for, not blocking)
  • The full test suite has not been run, and the description leaves its ready-for-review check unticked.
  • The reported GCC 16 check remains in Still to test.
More: does it help, other systems, switches, what was read

Does it help: Yes: the author reports that the affected checks fail on main and pass with the respective fixes on Windows or Linux. GCC 16 remains untested.

Other systems: The changes affect test code and the website settings page, not the game or builder runtime. The author checked the badges at 1024 px in a dark theme; phone width and light theme were not checked.

Switches: None.

Reviewed: 57d0900844 against b4d56f5264: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the diff and commit list. Read the available output for standards and the changed files; the combined file output was truncated, so not all changed code was read in full. No review checklist was found in the listed docs.; nothing run (a code review).

Checked and fine:

  • The explicit uint64_t template arguments address the differing std::min operand types.
  • The new badge tests check both the displayed labels and rejection when the documented conditions are removed.

Testing: No commands that build or run tests were executed. The author reports affected-check runs on Windows and Linux; CI is still running.

Overlaps and merge order: #3082 edits the same site_owners.txt comment; whichever merges second will need to resolve the text conflict.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as llun took it out of WIP. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The pull request combines unrelated fixes, contrary to the repository’s explicit one-topic rule. Separate commits do not resolve that rule because the pull request is squash-merged. Nothing blocking is left. Recommend approval; not approved on the forge. The changes restore several failing checks and add two website settings badges. The individual fixes are small, but they address unrelated causes and should be separated. **Should fix (1)**: not blocking, but worth doing before merging. - **L1**: This combines unrelated fixes despite the repository’s one-topic rule, which explicitly requires unrelated fixes in separate pull requests. *When:* The site owner list, Linux C++ compilation, website settings badges and Windows zip-test line endings have separate causes and affect independent checks. **Do:** Split the independent fixes into focused pull requests, keeping the website badge rules and their tests together. `@fix` can do L1. **Since the last review** (on 57d0900844f8) Still open: L1 (This combines unrelated fixes despite the repository’s one-topic rule, which explicitly re…) **Checks:** Still running: 11 checks. <details> <summary>Also noticed (2; not asked for, not blocking)</summary> - The full test suite has not been run, and the description leaves its ready-for-review check unticked. - The reported GCC 16 check remains in Still to test. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: the author reports that the affected checks fail on main and pass with the respective fixes on Windows or Linux. GCC 16 remains untested. **Other systems:** The changes affect test code and the website settings page, not the game or builder runtime. The author checked the badges at 1024 px in a dark theme; phone width and light theme were not checked. **Switches:** None. **Reviewed:** 57d0900844f8 against b4d56f526449: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the diff and commit list. Read the available output for standards and the changed files; the combined file output was truncated, so not all changed code was read in full. No review checklist was found in the listed docs.; nothing run (a code review). **Checked and fine:** - The explicit uint64_t template arguments address the differing std::min operand types. - The new badge tests check both the displayed labels and rejection when the documented conditions are removed. **Testing:** No commands that build or run tests were executed. The author reports affected-check runs on Windows and Linux; CI is still running. **Overlaps and merge order:** #3082 edits the same site_owners.txt comment; whichever merges second will need to resolve the text conflict. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as llun took it out of WIP. Nothing was run; a maintainer decides.</sub>
llun force-pushed fix/main-failing-tests from 57d0900844
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to f450fc8103
Some checks failed
PR description / Title and description (pull_request_target) Failing after 7s
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Successful in 13s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 18s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m25s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 16m59s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m15s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m48s
CI / Website build and checks (pull_request) Successful in 1m28s
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) Failing after 51m18s
2026-12-03 14:44:12 +00:00
Compare
Author
Member

Rebased onto main @ 1f5377c51 (head f450fc810). The four commits are unchanged (git range-diff). Rerun on Windows: the website's settings, HUD and zip tests pass on this head; the hook-site tests passed one main commit earlier (a99b4d4fb), and #3074, the commit since, changes no hook site. The whole website build and the C++ test were not rerun.

A correction to my comment above: the pull request is ready for review, not WIP. The whole suite has still not been run, by the author's choice, so its box stays unticked.

Rebased onto main @ 1f5377c51 (head f450fc810). The four commits are unchanged (`git range-diff`). Rerun on Windows: the website's settings, HUD and zip tests pass on this head; the hook-site tests passed one main commit earlier (a99b4d4fb), and #3074, the commit since, changes no hook site. The whole website build and the C++ test were not rerun. A correction to my comment above: the pull request is ready for review, not WIP. The whole suite has still not been run, by the author's choice, so its box stays unticked.
HumanBean deleted branch fix/main-failing-tests 2026-12-03 15:02:58 +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!3083
No description provided.