Tests: views off their elements are placed from a window's start (flaky in one run in twenty) #785
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/785"
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 kibagami-nc on 2026-11-28T05:52:36Z.
descriptor::host::tests::views_off_their_elements_get_a_copy_of_their_bytesfails onmainin about one run in twenty. Its structured view gets a 4 MiB buffer instead of a copy of its own bytes:Here it failed 4 times in 79 runs of the test alone. It also failed once in a whole
cargo test --workspace --lockedrun on63b902f.Why
crate::shadow). Whether a view is "off its elements" depends on where it lies in that copy (view_home, thenoff_elements).+8then lay atk * 4096 + 8in its window, wherekis the page's index in the window.k ≡ 1 (mod 57). In those runs the view is on its elements, so it takes the window, which is right for the code but not what the test expects.kdepends on where the allocator put the vector, so the test failed at random.The change
+8is off its elements for both views, and+16and+32are on them, as the test means.VICTORY_WINDOW_KB).Tests
maincargo test -p victory-gpu --lib --lockedClippy (default and
--all-features) shows nothing in the changed file. Main's own lints are in #665.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Dukestar69 on 2026-11-28T07:13:13Z.
Review: APPROVED
Tested locally merged onto
main(63b902f).cargo xtask policypassed (294 files ok).cargo test -p victory-gpu --lib descriptor::passed (62 passed; 0 failed, includingviews_off_their_elements_are_toldandviews_off_their_elements_get_a_copy_of_their_bytes) with 0 compiler warnings.Clean test placement fix anchoring the unaligned view from the window start. LGTM.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).