GPU diagnostics: order tied drop counts consistently #356
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/356"
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 Marvisak/VIctory. Originally posted by FIocker on 2026-11-24T02:34:22Z.
Rank diagnostic drop reasons by count descending and reason ascending. The frame report shows up to 40 reasons, so equal counts previously let the HashMap iteration order change which entries appeared at the cutoff. A deterministic tie-break makes reports easier to compare across runs.
Refs #293.
On Windows,
cargo test --locked -p victory-gpu --features diagnostics pipeline::testspassed 3 tests.git diff --checkand the staged asset-policy check passed.Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T06:40:39Z.
Review: APPROVED
Tested
efb3e3don Windows 11, RTX 5070, MSVC:cargo test --workspace --no-fail-fastpasses (264 passed, 0 failed), andcargo test -p victory-gpu --features diagnostics --lib pipeline::testspasses (3).Count descending, then reason ascending, is a total order on
(String, count), sosort_unstable_byis deterministic here. Which reasons make the 40-entry cutoff no longer depends onHashMaporder. No issues.AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-24T04:26:24Z.
Tested PR #356 at head
efb3e3d3da6deb6aa61e2e5efb7ded4af358d233(state at test time: OPEN). Pre-comment refresh: state OPEN, head unchanged atefb3e3d3da6deb6aa61e2e5efb7ded4af358d233.cargo test --locked -p victory-gpu --features diagnostics pipeline::— passed (ok. 6 passed; 0 failed; 0 ignored; 0 measured; 40 filtered out; finished in 0.55s ); cases: pipeline::library::tests::names_change_with_what_goes_into_the_pipeline, pipeline::tests::skip_hashes_accepts_full_hashes_only, pipeline::tests::pipelines_keep_their_shaders, pipeline::tests::streams_yield_their_shaders, and 2 more.Behavior covered: The pipeline test module passed, but these tests do not assert the new equal-count ordering in
take_drops; this run verifies the surrounding diagnostics module builds and its six existing tests pass.Code: crates/victory-gpu/src/pipeline.rs