test: main's failing game-free checks and lints pass again #3248

Merged
HumanBean merged 17 commits from llun/Longshot:fix/main-failing-checks into main 2026-12-05 17:00:04 +00:00
Member

Summary

Seventeen game-free checks and lints fail on main (Windows, and one on Linux). This PR fixes sixteen; the seventeenth, test_dlssg, is fixed by MagicBeanDev/Longshot#3251, since it changes the renderer. Each failed because a merged change and a check no longer matched: a fixture missing a stand-in for new code, a check reading an older draft, or a lint. This PR fixes each one in its own commit. Every check stays as strict as before, and a check that read old source now reads the current source. Only one change reaches code the game runs: the settings table becomes a static instead of a const, and nothing reads it by value.

Each check, and why it failed:

Check Why it failed on main The fix
test_present_image_free, test_present_held_image, test_present_acquire_ahead "the fixture does not compile": their cut of vk_replay.cpp now holds #3202's declaration of framegen_hudless_for_dlssg and #3175's ui::popouts_fence_done(f.done) the types the declaration names, and a ui::popouts_fence_done that does nothing (one commit each)
test_present_geometry_trace "the fixture does not compile": the cut draw now makes Streamline's HUD-less copy (#3202) and hands the pop-outs the frame's fence (#3175) tests/present_geometry_trace_test.cpp has those, with DLSS-G off, as dlssg_backbuffer already was
test_sync_watch_event #2030's fixture lacked settings_start(), which sync_watch reads since #2822 (hold_gpu_ms) a stand-in with hold_gpu_ms 0 (Auto, 1000 ms), as the check's cleared RX_VK_HOLD_GPU_MS was
test_turf_budget the cut submit_q stores order_watch_on from sync_watch_event_on() (#2030) both in the fixture, the event mode off
test_no_map_reload #3193 added the check and also a unit test, loader/tests.rs, that calls ask_teleport to see that nothing asked a map change in between the check leaves out the crate's tests.rs files (#[cfg(test)] mod tests;); world.rs is still the only source that may ask
test_ui_renderer it looked for the pop-outs' frame-counted reads of a draft of #3175 (kPopReads = 5, kFramesLater); the merged code reads a copy once its present's fence signals it checks the fence-based reads, and that present_image marks them done before it resets the fence
test_dlssg "vk_draw.cpp reads the Upscaler row's setting": #3048's lean draw path reads opts.dlss in draw() not here: MagicBeanDev/Longshot#3251, a renderer change with its own measurement
test_no_game_title tests/test_lower_cs2r_depbar.py:3 named the game by its initials (#212) "the game's mesh programs"
test_lifter: build-core's clippy unused import: note_lines (sandbox_windows.rs:384): #3124 imported it into mod os, #3110's merge called it as super::note_lines the call takes the import
test_lifter: host-sys's clippy large_const_arrays: settings_abi.rs's SETTINGS (294 rows of 56 bytes) passed clippy's 16 KiB for a const schema-gen writes it as a static; nothing reads it by value, and cargo run -p schema-gen writes the same file
test_lifter: api's a_walked_reshade_folder_counts_a_change_once_two_walks_agree Windows only: the watch hashes Path::new("/dev/looks").join("reshade"), /dev/looks\reshade on Windows; the test's fake walk was keyed /dev/looks/reshade and never changed the test joins the path as the watch does
test_lifter: modtool's the_menu_passes_its_tests not in the list before: #3209 placed Pause menu button on the Debug tab's Developer page, and the menu's layout test (PLACED) did not list it the row added to game/mods/menu/test/menu.test.ts
test_lifter: build-driver's the_repository_s_lock_and_the_table_agree not in the list before: #3120 rebuilt Linux's LLVM (tools.lock llvm 23.1.5-x64-2) and left the pinned compiler stamp at the old archive's the stamp updated. As the test asks a PR to say: since #3120, already on main, players' Linux shader caches are made again once. tools.lock has had no other change since
test_lifter: build-assets' clippy not in the list before (#3208 names it): needless_range_loop at prompts/textures.rs:158, and once past it, chunks_exact_to_as_chunks at :479 the loop keeps its index, with a reasoned #[allow] as game-core and content have: for the keyboard it runs to 256, past PADS, so clippy's .take() would be wrong; the test reads pixels with as_chunks::<4>()
test_lifter: longshot-builder's installed_versions_reuse_their_own_builds_with_one_profile Linux only: since #3105 a build records the profile's mods ("mods_recorded": 1, pretty-printed), so profile.json is no longer byte for byte the test's the test compares the content: the same settings, plus the record

modtool's a_mod_written_off_the_first_time_is_installed_over_without_replace was also listed as failing on main. It passes here: alone (4 of 4) and in the whole crate's run. Nothing here changes it.

Read first: game/crates/schema/src/emit/settings_abi.rs, then the tests.

To see the failures on main: mise run test -- --exact tests/<name>.py on Windows with llvm-mingw's clang, and cargo test -p longshot-builder --test one_copy on Linux.

Testing

Tested: Windows 11, RTX 5080, llvm-mingw's clang, Rust 1.99.1 gnullvm, on main 7bc53f841.

  • Every check this fixes: it fails on clean main and passes here (test_dlssg still fails here: #3251 fixes it) (mise run test -- --exact; cargo clippy; cargo test -p). For test_ui_renderer, I removed the lines it checks for, one at a time, and it failed each time.
  • Linux (WSL Ubuntu 24.04, Rust 1.99.1): cargo test -p longshot-builder --test one_copy, 3 passed.
  • The full Windows suite (mise run test -- --jobs 12, every check --list prints, in four batches), run with #3251's change still on this branch: 855 of 857 passed. The other two, test_present_semaphores (listed as failing in a busy full suite) and test_pipeline_cache_save (its fixture's compile timed out at 60 s), pass alone, 2 of 2.
  • test_lifter's steps: cargo fmt --all --check passes, cargo clippy --workspace --all-targets -D warnings passes. cargo test --release --workspace passed 3661 tests and failed 2: the compiler stamp (fixed here) and build-driver's perf::one_sender_at_a_time, a heartbeat timing check that passes alone, 3 of 3. Left out: ffi-gen's the_repositorys_files_are_current, which fails on main and isn't fixed here.
  • In the game: this branch's runtime over the shared base (#3251's change was on it then), dev.py smoke from kokiri-start: in play, 900 frames, the Insert menu opened, no fault in the log. PASS. RTX 5080, NVIDIA 621.47, Windows 11.

Still to test: None

Measurements

Nothing to measure: tests, lints, and the settings table as a static (nothing reads it by value, so nothing the game does changes). The renderer change and its Market A/B (BeanBot's L1 here) moved to MagicBeanDev/Longshot#3251.

Risks

SETTINGS as a static: no reader changes. Everything else is tests and lints only; 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.
  • 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 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 Seventeen game-free checks and lints fail on `main` (Windows, and one on Linux). This PR fixes sixteen; the seventeenth, `test_dlssg`, is fixed by [MagicBeanDev/Longshot#3251](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3251), since it changes the renderer. Each failed because a merged change and a check no longer matched: a fixture missing a stand-in for new code, a check reading an older draft, or a lint. This PR fixes each one in its own commit. Every check stays as strict as before, and a check that read old source now reads the current source. Only one change reaches code the game runs: the settings table becomes a `static` instead of a `const`, and nothing reads it by value. Each check, and why it failed: | Check | Why it failed on `main` | The fix | |---|---|---| | `test_present_image_free`, `test_present_held_image`, `test_present_acquire_ahead` | "the fixture does not compile": their cut of `vk_replay.cpp` now holds #3202's declaration of `framegen_hudless_for_dlssg` and #3175's `ui::popouts_fence_done(f.done)` | the types the declaration names, and a `ui::popouts_fence_done` that does nothing (one commit each) | | `test_present_geometry_trace` | "the fixture does not compile": the cut draw now makes Streamline's HUD-less copy (#3202) and hands the pop-outs the frame's fence (#3175) | `tests/present_geometry_trace_test.cpp` has those, with DLSS-G off, as `dlssg_backbuffer` already was | | `test_sync_watch_event` | #2030's fixture lacked `settings_start()`, which `sync_watch` reads since #2822 (`hold_gpu_ms`) | a stand-in with `hold_gpu_ms` 0 (Auto, 1000 ms), as the check's cleared `RX_VK_HOLD_GPU_MS` was | | `test_turf_budget` | the cut `submit_q` stores `order_watch_on` from `sync_watch_event_on()` (#2030) | both in the fixture, the event mode off | | `test_no_map_reload` | #3193 added the check and also a unit test, `loader/tests.rs`, that calls `ask_teleport` to see that nothing asked a map change in between | the check leaves out the crate's `tests.rs` files (`#[cfg(test)] mod tests;`); `world.rs` is still the only source that may ask | | `test_ui_renderer` | it looked for the pop-outs' frame-counted reads of a draft of #3175 (`kPopReads = 5`, `kFramesLater`); the merged code reads a copy once its present's fence signals | it checks the fence-based reads, and that `present_image` marks them done before it resets the fence | | `test_dlssg` | "vk_draw.cpp reads the Upscaler row's setting": #3048's lean draw path reads `opts.dlss` in `draw()` | not here: [MagicBeanDev/Longshot#3251](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3251), a renderer change with its own measurement | | `test_no_game_title` | `tests/test_lower_cs2r_depbar.py:3` named the game by its initials (#212) | "the game's mesh programs" | | `test_lifter`: build-core's clippy | `unused import: note_lines` (`sandbox_windows.rs:384`): #3124 imported it into `mod os`, #3110's merge called it as `super::note_lines` | the call takes the import | | `test_lifter`: host-sys's clippy | `large_const_arrays`: `settings_abi.rs`'s `SETTINGS` (294 rows of 56 bytes) passed clippy's 16 KiB for a `const` | schema-gen writes it as a `static`; nothing reads it by value, and `cargo run -p schema-gen` writes the same file | | `test_lifter`: api's `a_walked_reshade_folder_counts_a_change_once_two_walks_agree` | Windows only: the watch hashes `Path::new("/dev/looks").join("reshade")`, `/dev/looks\reshade` on Windows; the test's fake walk was keyed `/dev/looks/reshade` and never changed | the test joins the path as the watch does | | `test_lifter`: modtool's `the_menu_passes_its_tests` | not in the list before: #3209 placed Pause menu button on the Debug tab's Developer page, and the menu's layout test (`PLACED`) did not list it | the row added to `game/mods/menu/test/menu.test.ts` | | `test_lifter`: build-driver's `the_repository_s_lock_and_the_table_agree` | not in the list before: #3120 rebuilt Linux's LLVM (`tools.lock` llvm `23.1.5-x64-2`) and left the pinned compiler stamp at the old archive's | the stamp updated. As the test asks a PR to say: since #3120, already on `main`, players' Linux shader caches are made again once. `tools.lock` has had no other change since | | `test_lifter`: build-assets' clippy | not in the list before (#3208 names it): `needless_range_loop` at `prompts/textures.rs:158`, and once past it, `chunks_exact_to_as_chunks` at `:479` | the loop keeps its index, with a reasoned `#[allow]` as game-core and content have: for the keyboard it runs to 256, past `PADS`, so clippy's `.take()` would be wrong; the test reads pixels with `as_chunks::<4>()` | | `test_lifter`: longshot-builder's `installed_versions_reuse_their_own_builds_with_one_profile` | Linux only: since #3105 a build records the profile's mods (`"mods_recorded": 1`, pretty-printed), so `profile.json` is no longer byte for byte the test's | the test compares the content: the same settings, plus the record | modtool's `a_mod_written_off_the_first_time_is_installed_over_without_replace` was also listed as failing on `main`. It passes here: alone (4 of 4) and in the whole crate's run. Nothing here changes it. Read first: `game/crates/schema/src/emit/settings_abi.rs`, then the tests. To see the failures on `main`: `mise run test -- --exact tests/<name>.py` on Windows with llvm-mingw's clang, and `cargo test -p longshot-builder --test one_copy` on Linux. ## Testing **Tested:** Windows 11, RTX 5080, llvm-mingw's clang, Rust 1.99.1 gnullvm, on `main` 7bc53f841. - Every check this fixes: it fails on clean `main` and passes here (`test_dlssg` still fails here: #3251 fixes it) (`mise run test -- --exact`; `cargo clippy`; `cargo test -p`). For `test_ui_renderer`, I removed the lines it checks for, one at a time, and it failed each time. - Linux (WSL Ubuntu 24.04, Rust 1.99.1): `cargo test -p longshot-builder --test one_copy`, 3 passed. - The full Windows suite (`mise run test -- --jobs 12`, every check `--list` prints, in four batches), run with #3251's change still on this branch: 855 of 857 passed. The other two, `test_present_semaphores` (listed as failing in a busy full suite) and `test_pipeline_cache_save` (its fixture's compile timed out at 60 s), pass alone, 2 of 2. - `test_lifter`'s steps: `cargo fmt --all --check` passes, `cargo clippy --workspace --all-targets -D warnings` passes. `cargo test --release --workspace` passed 3661 tests and failed 2: the compiler stamp (fixed here) and build-driver's `perf::one_sender_at_a_time`, a heartbeat timing check that passes alone, 3 of 3. Left out: ffi-gen's `the_repositorys_files_are_current`, which fails on `main` and isn't fixed here. - In the game: this branch's runtime over the shared base (#3251's change was on it then), `dev.py smoke` from `kokiri-start`: in play, 900 frames, the Insert menu opened, no fault in the log. PASS. RTX 5080, NVIDIA 621.47, Windows 11. **Still to test:** None ## Measurements Nothing to measure: tests, lints, and the settings table as a `static` (nothing reads it by value, so nothing the game does changes). The renderer change and its Market A/B (BeanBot's L1 here) moved to [MagicBeanDev/Longshot#3251](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3251). ## Risks `SETTINGS` as a `static`: no reader changes. Everything else is tests and lints only; a revert is enough. ## 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). - [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)
llun added 18 commits 2026-12-05 13:01:23 +00:00
Its cut of vk_replay.cpp now holds the declaration of framegen_hudless_for_dlssg (#3202) and a call of ui::popouts_fence_done (#3175): the fixture gets the types the declaration names and a stand-in that does nothing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The same two lines of vk_replay.cpp as the present-image-free check's (#3202's declaration, #3175's ui::popouts_fence_done): their types and a stand-in that does nothing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The same two lines of vk_replay.cpp as the present-image-free check's (#3202's declaration, #3175's ui::popouts_fence_done): their types and a stand-in that does nothing. Its broken variants compile again too, and each still fails.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The cut draw now makes Streamline's HUD-less copy (#3202: dlssg_active, dlssg_hudless_wanted, framegen_hudless_for_dlssg, dlssg_hudless, dev.swap_format) and tells the pop-outs the frame's fence (#3175: ui::popouts_fence, f.done). The fixture has them, with DLSS-G off, as dlssg_backbuffer already is: not traced.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The cut sync_watch reads the hold_gpu_ms setting through settings_start() since #2822; #2030's fixture was written before it. The stand-in's hold_gpu_ms is 0 (Auto, 1000 ms), as the check's cleared RX_VK_HOLD_GPU_MS was.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The cut submit_q stores order_watch_on from sync_watch_event_on() before it starts the watch (#2030): the fixture has both, the watch's event mode off.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
#3193 added the check and a unit test in loader/tests.rs that asks ask_teleport twice, to see that nothing asked a map change in between. The crate's tests.rs files (each a #[cfg(test)] mod tests;) are not the API's own: the check leaves them out. world.rs is still the only source that may ask.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The check looked for the frame-counted reads of an earlier draft (kPopReads = 5, kFramesLater, r.done(presents)). The merged code reads a pop-out's copy once its present's fence has signaled: the check now asks for that (kPopReads = kPresentSlotsMax + 1, the read's fence, popouts_collect's newest done read, popouts_fence_done), and that present_image marks the reads done before it resets the fence and hands the pop-outs its fence. Each part fails with that line removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
#3048's RX_VK_DRAW_OVERHEAD_LEAN checks read opts.dlss in draw(), the Upscaler row as set; test_dlssg asks that the renderer read it as it runs (vk_temporal.h temporal_row), since with Streamline's loader a change waits for a restart. draw() now reads temporal_row() once and uses it in the seven places. Nothing runs differently: without Streamline temporal_row() is opts.dlss, and with it every one of those helpers is already true by its env flag (dlssg_loaded()).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
#212 named the game by its initials in the docstring, which test_no_game_title refuses: "the game's mesh programs" now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
#3124 imported note_lines into the Windows sandbox's mod os; #3110's merge called it there as super::note_lines, which left the import unused and clippy -D warnings failing on Windows. The call now takes the import.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
settings_abi.rs's SETTINGS grew past clippy's 16 KiB for a const array (294 rows of 56 bytes), failing host-sys's clippy -D warnings. A const is copied into every use; schema-gen now writes it as a static, and nothing reads it by value. cargo run -p schema-gen writes the same file.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
#3105's test set the fake walk's hash at "/dev/looks/reshade"; the watch asks for Path::new(root).join("reshade"), which on Windows is "/dev/looks\reshade". The fake never changed there, so nothing was due and the test failed on Windows alone. The test now joins the path as the watch does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
#3209 placed system/menu-button's pause_menu_button on the Debug tab's Developer page (order 910, after the mod inspector's overlay at 900); the menu's layout test (PLACED), run by modtool's the_menu_passes_its_tests, did not list it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Since #3105 a build records the profile's mods once ("mods_recorded": 1, written by modtool's record, pretty-printed), so profile.json no longer stays byte for byte as the test wrote it, and the Linux-only installed_versions_reuse_their_own_builds_with_one_profile failed. The test now compares its content: the same settings, and the record.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
#3120 rebuilt Linux's LLVM from source for x86 alone (tools.lock llvm 23.1.5-x64-2) and left the stamp the_repository_s_lock_and_the_table_agree pins at the old archive's. It is tools.lock's only change since, and the stamp is the hash of that entry. So, as the test asks a pull request to say: since #3120, already on main, players' Linux shader caches are made again once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
clippy -D warnings fails on main at prompts/textures.rs:158. Its suggestion, PADS.iter().enumerate().take(note_inputs), would be wrong: for the keyboard face the loop runs to 256 keys, past PADS, which is read only for a pad. An allow with its reason, as game-core's and content's own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(build-assets): a test reads the layer's pixels with as_chunks (clippy's chunks_exact_to_as_chunks)
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
8f3173e1d8
Rust 1.99's clippy refuses chunks_exact with a constant size, failing build-assets' tests under clippy -D warnings on main (found once the loop's needless_range_loop no longer stopped clippy first). as_chunks::<4>(), as the crate's other pixel loops already read them.

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

Tested in game: Windows 11 (build 26300), RTX 5080, NVIDIA 621.47: this checkout's runtime over the shared base (f577a1aea), dev.py smoke from kokiri-start (Kokiri Forest, Link's house): in play, 900 frames with RX_VK_DRAW_OVERHEAD_LEAN's default (1) running the changed draw() path, the Insert menu opened, no fault or unhandled exception in the log. PASS.

Tested in game: Windows 11 (build 26300), RTX 5080, NVIDIA 621.47: this checkout's runtime over the shared base (f577a1aea), dev.py smoke from kokiri-start (Kokiri Forest, Link's house): in play, 900 frames with RX_VK_DRAW_OVERHEAD_LEAN's default (1) running the changed draw() path, the Insert menu opened, no fault or unhandled exception in the log. PASS.
Member

Possibly related, for context:

  • PR #1818 WIP: test: pytest runs the game-free checks; requirements by machine; main's known failures — Broader game-free check runner and known-failures work
Possibly related, for context: - PR #1818 WIP: test: pytest runs the game-free checks; requirements by machine; main's known failures — Broader game-free check runner and known-failures work
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The reported runs show the repaired checks passing, and the draw guards appear to retain their results. The extra work on every draw has not been measured, and CI is still running. Recommend approval; not approved on the forge.

The change repairs game-free fixtures and checks, updates two lint fixes and a generated settings table, and changes how the lean draw path reads the upscaler row. It restores useful checks at the cost of an additional call on each draw.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L1 gpu/vk/vk_draw.cpp:11039: The new upscaler lookup runs on every draw, but its effect on frame time has not been measured. (more on the line) Do: Compare interleaved base and head runs in a draw-heavy scene, including frame times and 1% lows, on representative Windows and Linux hardware including Steam Deck. (@fix does its part first: Avoid the per-draw lookup where the existing guards already make the row irrelevant, and update the source check to recognize that invariant.)

@fix can do L1.

Checks: Still running: 11 checks.

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

Does it help: Yes for the reported check failures: the author reports each failing on the base and passing on this head, with 855 of 857 checks passing in the full Windows suite and the other two passing alone. The runtime cost is unproven; no before-and-after frame-time measurements are provided.

Other systems: The draw path runs across GPU vendors and operating systems. The author reports a Windows RTX 5080 game run and a Linux syntax check, but no game run on AMD or Steam Deck and no timing comparison. The generated settings table has no in-tree readers by value.

Switches: No switches added, changed or removed.

Reviewed: 8f3173e1d8 against 7bc53f8413: Read the repository rules, PR template, standards, complete diff and commit messages; inspected the changed fixtures, checks, settings generator, builder test and draw guard dependencies. The larger changed code files and generated settings table were inspected around the changes and relevant readers, not read in full. The separately referenced docs/review-checklist.md and adjacent Tooling checkout were absent. No recorded runs or translations were changed.; nothing run (a code review).

Checked and fine:

  • The draw guard results match the old values when Streamline is unloaded; when loaded, the guards are already enabled by dlssg_loaded().
  • The schema generator and checked-in settings declaration both use static, and the commits record AI assistance.
  • The revised profile test compares the complete JSON content, allowing the expected mods record while retaining the settings check.

Testing: No commands from the project or tests were run, as requested. The author reports the base/head check results and Windows game smoke run; CI remains in progress.

Overlaps and merge order: Not checked; network access was unavailable.


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

**Recommendation: Approve.** The code is ready: only testing is left. The reported runs show the repaired checks passing, and the draw guards appear to retain their results. The extra work on every draw has not been measured, and CI is still running. Recommend approval; not approved on the forge. The change repairs game-free fixtures and checks, updates two lint fixes and a generated settings table, and changes how the lean draw path reads the upscaler row. It restores useful checks at the cost of an additional call on each draw. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1** `gpu/vk/vk_draw.cpp:11039`: The new upscaler lookup runs on every draw, but its effect on frame time has not been measured. (more on the line) **Do:** Compare interleaved base and head runs in a draw-heavy scene, including frame times and 1% lows, on representative Windows and Linux hardware including Steam Deck. *(`@fix` does its part first: Avoid the per-draw lookup where the existing guards already make the row irrelevant, and update the source check to recognize that invariant.)* `@fix` can do L1. **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the reported check failures: the author reports each failing on the base and passing on this head, with 855 of 857 checks passing in the full Windows suite and the other two passing alone. The runtime cost is unproven; no before-and-after frame-time measurements are provided. **Other systems:** The draw path runs across GPU vendors and operating systems. The author reports a Windows RTX 5080 game run and a Linux syntax check, but no game run on AMD or Steam Deck and no timing comparison. The generated settings table has no in-tree readers by value. **Switches:** No switches added, changed or removed. **Reviewed:** 8f3173e1d8fc against 7bc53f841323: Read the repository rules, PR template, standards, complete diff and commit messages; inspected the changed fixtures, checks, settings generator, builder test and draw guard dependencies. The larger changed code files and generated settings table were inspected around the changes and relevant readers, not read in full. The separately referenced docs/review-checklist.md and adjacent Tooling checkout were absent. No recorded runs or translations were changed.; nothing run (a code review). **Checked and fine:** - The draw guard results match the old values when Streamline is unloaded; when loaded, the guards are already enabled by dlssg_loaded(). - The schema generator and checked-in settings declaration both use static, and the commits record AI assistance. - The revised profile test compares the complete JSON content, allowing the expected mods record while retaining the settings check. **Testing:** No commands from the project or tests were run, as requested. The author reports the base/head check results and Windows game smoke run; CI remains in progress. **Overlaps and merge order:** Not checked; network access was unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -11036,2 +11036,4 @@
(getenv("RX_VK_FSR_FG") && atoi(getenv("RX_VK_FSR_FG")) > 0) ||
dlssg_loaded();
// (the Upscaler row as it runs, vk_temporal.h: with Streamline's loader the row can wait for a restart)
const int upscaler_row = temporal_row();
Member

L1 (should fix): The new upscaler lookup runs on every draw, but its effect on frame time has not been measured.

When: In the default lean path, every draw now calls temporal_row(); in a Streamline-enabled build this reaches dlssg_upscaler and reads an atomic even when Streamline is not loaded. Draw-heavy scenes can therefore incur CPU overhead that the 900-frame smoke run does not quantify.

Do: Compare interleaved base and head runs in a draw-heavy scene, including frame times and 1% lows, on representative Windows and Linux hardware including Steam Deck.

**L1** (should fix): The new upscaler lookup runs on every draw, but its effect on frame time has not been measured. *When:* In the default lean path, every draw now calls temporal_row(); in a Streamline-enabled build this reaches dlssg_upscaler and reads an atomic even when Streamline is not loaded. Draw-heavy scenes can therefore incur CPU overhead that the 900-frame smoke run does not quantify. **Do:** Compare interleaved base and head runs in a draw-heavy scene, including frame times and 1% lows, on representative Windows and Linux hardware including Steam Deck.
Author
Member

L1, measured. dev.py ab --scene market (the crowded scene, the most draws), uncapped, three interleaved pairs through the timing queue, Windows 11, RTX 5080, NVIDIA 621.47: no difference shown. Median fps 115.1 here against 111.6 on main (+3.2 %), within the runs' spread (main 101.9 to 113.9, this PR 109.7 to 122.3); 1% low 75.8 against 68.5. The table and the log lines are in Measurements.

The suggested @fix would not remove the call where it costs: the guards make the row irrelevant only with an RX_VK_* upscaler variable set or Streamline loaded. In the default case (neither) the row is needed, and temporal_row() is then dlssg_upscaler(opts.dlss) returning at its first relaxed load. So the change stays as it is.

Linux and the Steam Deck are not here: they are in Still to test, for the Test Farm or by hand.

**L1, measured.** `dev.py ab --scene market` (the crowded scene, the most draws), uncapped, three interleaved pairs through the timing queue, Windows 11, RTX 5080, NVIDIA 621.47: **no difference shown**. Median fps 115.1 here against 111.6 on main (+3.2 %), within the runs' spread (main 101.9 to 113.9, this PR 109.7 to 122.3); 1% low 75.8 against 68.5. The table and the log lines are in Measurements. The suggested `@fix` would not remove the call where it costs: the guards make the row irrelevant only with an `RX_VK_*` upscaler variable set or Streamline loaded. In the default case (neither) the row is needed, and `temporal_row()` is then `dlssg_upscaler(opts.dlss)` returning at its first relaxed load. So the change stays as it is. Linux and the Steam Deck are not here: they are in Still to test, for the Test Farm or by hand.
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The reported Windows comparison shows no frame-time regression beyond the runs’ spread, and the game smoke test passed. Linux and Steam Deck testing and CI are still outstanding. Nothing blocking is left. Recommend approval; not approved on the forge.

The PR repairs game-free checks and lints that no longer match the current source. It also changes the lean draw path to read the active upscaler row, adding one lookup per draw; the reported Windows measurements show no difference beyond run-to-run spread.

Since the last review (on 8f3173e1d8)
Resolved: L1 (The new upscaler lookup runs on every draw, but its effect on frame time has not been meas…)

Checks: Still running: 11 checks.

Also noticed (1; not asked for, not blocking)
  • Linux and Steam Deck measurements are listed as still to test in the PR.
More: does it help, other systems, switches, what was read

Does it help: Yes for the reported check failures: the author reports each fails on main and passes on this head. The Windows Market comparison shows median 115.1 versus 111.6 fps, with overlapping spreads; it does not establish a performance gain.

Other systems: The renderer change runs across GPU vendors and operating systems. Windows on NVIDIA passed an in-game smoke test; Linux compilation was reported, but Linux and Steam Deck gameplay and performance have not been measured. The remaining changes affect test fixtures, build tooling, and the generated settings table.

Switches: None added, changed, or removed.

Reviewed: 8f3173e1d8 against 7bc53f8413: Read the repository rules and PR template, the diff and commit list, and searched the upscaler lookup and its callers. The full changed files and all supporting code were not read in full; the recorded runs were reviewed from the PR description and comments.; nothing run (a code review).

Checked and fine:

  • The lookup is performed once per draw and its result is reused by the changed lean-path checks.
  • The author reports an in-game Windows smoke test and comparisons against the base.

Testing: No commands that build or run project code were executed. The author reports the repaired checks passing and a Windows in-game smoke test; all listed CI checks are still running.

Overlaps and merge order: Not checked.


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

**Recommendation: Approve.** The reported Windows comparison shows no frame-time regression beyond the runs’ spread, and the game smoke test passed. Linux and Steam Deck testing and CI are still outstanding. Nothing blocking is left. Recommend approval; not approved on the forge. The PR repairs game-free checks and lints that no longer match the current source. It also changes the lean draw path to read the active upscaler row, adding one lookup per draw; the reported Windows measurements show no difference beyond run-to-run spread. **Since the last review** (on 8f3173e1d8fc) Resolved: L1 (The new upscaler lookup runs on every draw, but its effect on frame time has not been meas…) **Checks:** Still running: 11 checks. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - Linux and Steam Deck measurements are listed as still to test in the PR. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the reported check failures: the author reports each fails on main and passes on this head. The Windows Market comparison shows median 115.1 versus 111.6 fps, with overlapping spreads; it does not establish a performance gain. **Other systems:** The renderer change runs across GPU vendors and operating systems. Windows on NVIDIA passed an in-game smoke test; Linux compilation was reported, but Linux and Steam Deck gameplay and performance have not been measured. The remaining changes affect test fixtures, build tooling, and the generated settings table. **Switches:** None added, changed, or removed. **Reviewed:** 8f3173e1d8fc against 7bc53f841323: Read the repository rules and PR template, the diff and commit list, and searched the upscaler lookup and its callers. The full changed files and all supporting code were not read in full; the recorded runs were reviewed from the PR description and comments.; nothing run (a code review). **Checked and fine:** - The lookup is performed once per draw and its result is reused by the changed lean-path checks. - The author reports an in-game Windows smoke test and comparisons against the base. **Testing:** No commands that build or run project code were executed. The author reports the repaired checks passing and a Windows in-game smoke test; all listed CI checks are still running. **Overlaps and merge order:** Not checked. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
llun force-pushed fix/main-failing-checks from 8f3173e1d8
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 a1bfa5b104
Some checks failed
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 13s
PR description / Title and description (pull_request_target) Successful in 7s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 16s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 15m29s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m22s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 10m35s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 10m13s
CI / Website build and checks (pull_request) Failing after 38s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 46m55s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m7s
2026-12-05 13:43:53 +00:00
Compare
Author
Member

The renderer change (vk_draw.cpp reading temporal_row(), for test_dlssg) moved to its own PR, #3251, with the Market A/B that answers BeanBot's L1. This branch dropped that one commit (force-pushed, a1bfa5b1); the other sixteen fixes are unchanged, one commit each. test_dlssg still fails here until #3251 merges.

The renderer change (`vk_draw.cpp` reading `temporal_row()`, for `test_dlssg`) moved to its own PR, https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3251, with the Market A/B that answers BeanBot's L1. This branch dropped that one commit (force-pushed, a1bfa5b1); the other sixteen fixes are unchanged, one commit each. `test_dlssg` still fails here until #3251 merges.
HumanBean deleted branch fix/main-failing-checks 2026-12-05 17:00:04 +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!3248
No description provided.