Tests: views off their elements are placed from a window's start (flaky in one run in twenty) #785
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!785
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@kibagami-nc on GitHub · 2026-11-28 05:52 UTC · original
kibagami-nc:test/views-off-elements-from-a-window-start→main· +9 −2 · 1 files · 1 commits · merged 2026-11-29 08:16 UTCdescriptor::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.@Dukestar69 on GitHub · 2026-11-28 07:13 UTC · original · approved these changes
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).