test: main's failing game-free checks and lints pass again #3248
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!3248
Loading…
Reference in a new issue
No description provided.
Delete branch "llun/Longshot:fix/main-failing-checks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 astaticinstead of aconst, and nothing reads it by value.Each check, and why it failed:
maintest_present_image_free,test_present_held_image,test_present_acquire_aheadvk_replay.cppnow holds #3202's declaration offramegen_hudless_for_dlssgand #3175'sui::popouts_fence_done(f.done)ui::popouts_fence_donethat does nothing (one commit each)test_present_geometry_tracetests/present_geometry_trace_test.cpphas those, with DLSS-G off, asdlssg_backbufferalready wastest_sync_watch_eventsettings_start(), whichsync_watchreads since #2822 (hold_gpu_ms)hold_gpu_ms0 (Auto, 1000 ms), as the check's clearedRX_VK_HOLD_GPU_MSwastest_turf_budgetsubmit_qstoresorder_watch_onfromsync_watch_event_on()(#2030)test_no_map_reloadloader/tests.rs, that callsask_teleportto see that nothing asked a map change in betweentests.rsfiles (#[cfg(test)] mod tests;);world.rsis still the only source that may asktest_ui_rendererkPopReads = 5,kFramesLater); the merged code reads a copy once its present's fence signalspresent_imagemarks them done before it resets the fencetest_dlssgopts.dlssindraw()test_no_game_titletests/test_lower_cs2r_depbar.py:3named the game by its initials (#212)test_lifter: build-core's clippyunused import: note_lines(sandbox_windows.rs:384): #3124 imported it intomod os, #3110's merge called it assuper::note_linestest_lifter: host-sys's clippylarge_const_arrays:settings_abi.rs'sSETTINGS(294 rows of 56 bytes) passed clippy's 16 KiB for aconststatic; nothing reads it by value, andcargo run -p schema-genwrites the same filetest_lifter: api'sa_walked_reshade_folder_counts_a_change_once_two_walks_agreePath::new("/dev/looks").join("reshade"),/dev/looks\reshadeon Windows; the test's fake walk was keyed/dev/looks/reshadeand never changedtest_lifter: modtool'sthe_menu_passes_its_testsPLACED) did not list itgame/mods/menu/test/menu.test.tstest_lifter: build-driver'sthe_repository_s_lock_and_the_table_agreetools.lockllvm23.1.5-x64-2) and left the pinned compiler stamp at the old archive'smain, players' Linux shader caches are made again once.tools.lockhas had no other change sincetest_lifter: build-assets' clippyneedless_range_loopatprompts/textures.rs:158, and once past it,chunks_exact_to_as_chunksat:479#[allow]as game-core and content have: for the keyboard it runs to 256, pastPADS, so clippy's.take()would be wrong; the test reads pixels withas_chunks::<4>()test_lifter: longshot-builder'sinstalled_versions_reuse_their_own_builds_with_one_profile"mods_recorded": 1, pretty-printed), soprofile.jsonis no longer byte for byte the test'smodtool's
a_mod_written_off_the_first_time_is_installed_over_without_replacewas also listed as failing onmain. 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>.pyon Windows with llvm-mingw's clang, andcargo test -p longshot-builder --test one_copyon Linux.Testing
Tested: Windows 11, RTX 5080, llvm-mingw's clang, Rust 1.99.1 gnullvm, on
main7bc53f841.mainand passes here (test_dlssgstill fails here: #3251 fixes it) (mise run test -- --exact;cargo clippy;cargo test -p). Fortest_ui_renderer, I removed the lines it checks for, one at a time, and it failed each time.cargo test -p longshot-builder --test one_copy, 3 passed.mise run test -- --jobs 12, every check--listprints, 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) andtest_pipeline_cache_save(its fixture's compile timed out at 60 s), pass alone, 2 of 2.test_lifter's steps:cargo fmt --all --checkpasses,cargo clippy --workspace --all-targets -D warningspasses.cargo test --release --workspacepassed 3661 tests and failed 2: the compiler stamp (fixed here) and build-driver'sperf::one_sender_at_a_time, a heartbeat timing check that passes alone, 3 of 3. Left out: ffi-gen'sthe_repositorys_files_are_current, which fails onmainand isn't fixed here.dev.py smokefromkokiri-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
SETTINGSas astatic: no reader changes. Everything else is tests and lints only; a revert is enough.Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named).main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
mainand passes here.tests/that reads changed source is updated, not weakened.Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
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.Possibly related, for context:
@review
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)
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. (@fixdoes 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.)@fixcan 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:
8f3173e1d8against7bc53f8413: 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:
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.
@ -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();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, 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
@fixwould not remove the call where it costs: the guards make the row irrelevant only with anRX_VK_*upscaler variable set or Streamline loaded. In the default case (neither) the row is needed, andtemporal_row()is thendlssg_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.
@review
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)
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:
8f3173e1d8against7bc53f8413: 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:
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.
8f3173e1d8a1bfa5b104The renderer change (
vk_draw.cppreadingtemporal_row(), fortest_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_dlssgstill fails here until #3251 merges.