Tests after the clippy fixes: the asset policy refuses heap_sites/frame_users.rs, three parallel-run flakes, a diag-only compose test #2420
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by boraswim on 2026-11-29T12:53:28Z.
On main (
829188e9), once the clippy step passes (#2048, plus #2236 for the BCPack oracle),cargo test --workspace --lockedon Windows still has one deterministic failure, plus a few that only show up there. CI has not reached the test step since the clippy errors landed, so none of these have shown in a run yet.1. Asset policy refuses
frame_users.rs(blocks CI)The file came in with
2840358("Sync the title's view heap by what its hooked stores wrote",VICTORY_HEAP_HOOKS=1). It is generated by the heap-hooks site generator. ItsROWStable holds image offsets, window lengths and BLAKE3-64 tags, not the title's bytes, as its module docs say. Butlongest_hex_literal_runcounts its0xliterals as one run pastMAX_ENCODED_RUN(512).pool_users.rs, beside it, passes.docs/asset-policy.mdsays a violation that lands needs a history rewrite, so this needs a maintainer to decide:xtask/src/policy.rsforheap_sites/*_users.rs), orNo open PR touches this. #1290 only adds the
iniextension.2. Tests that fail only under the full parallel run
Each passes when run on its own (twice each, same machine), so they look like shared-state or timing interference between tests:
victory-hle:modules::xmem::tests::a_read_by_range_waits_only_for_a_remapping_that_meets_it(xmem.rs:4958, "a read apart from the remapping had to wait", left 5861, right 0). It failed in 2 of 3 full runs.victory-gpu:host::card_steps::tests::places_written_after_sending_are_learned(card_steps.rs:2118) andhost::uav_pool::tests::host_list_uav_pool_lifecycle_retire_trim_and_info_queue(uav_pool.rs:488,!spare_has(bet4m_raw, 4 << 20)). They failed in 1 of 2 full runs.3. A diagnostics-only test that was hidden by the broken diag build
With the diag build compiling again (#2048 / #2208),
cargo test -p victory-gpu --features diagnosticsfails deterministically:CI does not run tests with
--features diagnostics(only clippy), so this does not block CI. But either the test or the view choice for BGRX planes is out of step.Environment
Windows 11, rustc 1.98.1 (pinned toolchain), x86_64-pc-windows-msvc, RTX 4070 SUPER 12 GB (driver 621.40). Command:
cargo test --workspace --locked --no-fail-fast, run on main plus the clippy fixes equivalent to #2048 and the oracle fix from #2236.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-29T12:53:36Z.
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by boraswim on 2026-11-29T13:07:41Z.
No play or crash logs apply here: these are
cargo testresults with no game run, and the test output is quoted in the issue. Theneeds-logslabel can go. The xmem flake from item 2 has a fix in #2439, and I'm taking item 3 (compose::tests::bgrx_plane_selects_a_typed_view) next.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by boraswim on 2026-11-29T14:48:22Z.
One more, from the review of #2439:
victory_gpu::watch::range_lock()has a first-use race. Its first caller readsVICTORY_RANGE_LOCKand stores 1 or 2, so a test that callsset_range_lock(true)while another thread is in that first read can be switched back off (watch.rsaroundRANGE_LOCK). Harmless in a run, where the env var decides it once, but tests that rely onset_range_lockcan lose it. Acompare_exchangefrom 0 inrange_lock()would close it.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by boraswim on 2026-11-29T15:33:31Z.
Status from my side: item 3 is #2646, the switch race is #2650, and the xmem range-lock flake is #2439. I'm taking these next:
xmem::tests::large_default_allocations_honour_write_watch_switch: the after-freeMEM_FREEcheck races with other tests reserving the freed range.watch::many_askers_tests::no_mapping_is_lost_between_askers: a parallel-run flake.a_read_by_range_waits_only_for_a_remapping_that_meets_itreally open a remap gap (two page sets with the same bytes, plus a start barrier), as suggested in its review.card_stepsisolation is in #2486 and the F1 menu tests are in #2500, so I'm leaving those.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by boraswim on 2026-11-29T15:55:58Z.
I'm dropping
watch::many_askers_tests::no_mapping_is_lost_between_askers, so it's free for anyone. What I found:assert!(super::published(at, end))(watch.rs:6411), and only in the full parallelvictory-gpurun: 0 failures in 200 runs of the test alone, and 0 in 15 full runs today.look_at_holessweep from draw frames: a thread sweeping without pause during the test gave no failures.title_memory_remapping_ofaround the change, as the runtime does, soCHANGINGis never set andtitle_memory_unmappingrecords no change in progress while the askers refresh.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by boraswim on 2026-11-29T15:56:54Z.
I'm taking
modules::xg::tests::library_state_and_lock(victory-hle) in its place. It failed once in 12 parallel runs here. It turns the XG library's process-wide state on and off (initialize/terminate, hardware version, exclusive locking) while other xg tests run beside it.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by P1ayer-1 on 2026-11-29T19:00:18Z.
Taking item 1 only (the asset-policy refusal that blocks the test step):
heap_sites/frame_users.rsand the 2022-digit literal run.Shape I went with: the third option is not needed and the second is not available to me (the file is generated by the heap-hooks site generator from the title's image, so I cannot regenerate it) — instead, the literal-run rule alone is lifted for that one path, with its reason next to it, keeping the size, text, type and magic checks on it.
EXCEPTIONSwas the wrong tool: it skips every check for a path, which for a.rsfile is more than this needs.Verified on Windows:
cargo test -p xtaskfails on main with the exact line in the issue, and passes with the change (8 passed, including a new test that the same literal run is still refused under any other name, and that the magic and size checks still apply to this path).I am not touching item 2 (the parallel-run flakes) or item 3 (the diagnostics test) — item 3 is behind a
diagnosticsfeature that does not compile on main, and theB8G8R8X8_UNORM_SRGBexpectation contradictscompose::view's documented choice to read sRGB planes as plain UNORM, so that one wants whoever owns that decision.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by boraswim on 2026-11-29T19:01:16Z.
@P1ayer-1 thanks for taking item 1. Item 3 is already in #2646: the test was stale, not
view(). 95f6ef0f's 'read sRGB planes as plain UNORM' came first, and the BGRX test (29473fb) was written on a base without it, so #2646 changes the test's expectation and adds the BGRA/RGBA sRGB cases. Item 2's xmem flakes are #2439 and a write-watch test fix that's coming next, and the switch race is #2650.