d3d12 tests: run the six longest loops with smaller counts under Miri #599
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/599"
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 brcly/TuxBox. Originally posted by snoozedDev on 2026-11-30T20:13:06Z.
Summary
The Miri job sets the length of every CI run: 7 min 12 s on
58738995(run 46490891342), against 1.6 to 2.5 min for the other jobs. In that run the d3d12 tests take 347.86 s of the job. Six of them loop to production sizes and take most of that time.Under Miri only, this PR uses smaller sizes:
device/heap_page_cache.rs:LIMITis 256 instead of 4096.commands/memory_wait.rs:WrittenRanges::MAX_NAMEDis 64 instead of 1024.recorded_writestest: 2,000 lists instead of 10,000. That is still more than the test's bound of 1,000 kept writes, and the assertion message now names the count it ran.placement::pendingtest: 50 random probes instead of 500.Builds and test runs outside Miri keep today's values, and Miri never builds the provider DLLs. The two limits are compile-time constants, so the tests can't pick a smaller size themselves without a new field on the structs that use them.
Follows the slow-test item on #369.
This contribution was written by an AI agent (Claude Opus 5.5) operating under my supervision. I am accountable for it and will respond to review.
Tested
Run the checks relevant to this change.
No Lanes scenario covers this because it changes test time only; nothing a game or Lanes runs changes. I didn't launch the game.
GPU, driver and backend: none (CPU-only).
The
Evidence:linetuxbox.py checkprints last, one per card (it names the commit it tested; run it on this pull request's head):(The one not run is the synthetic shaders through the runtime's DXC flags, which needs a Linux DXC that wasn't on
PATHfor this run.)Commands run and their results:
heap_page_cachesweep_reaches_expired_key_behind_live_entriesrecorded_writeswhat_has_run_or_is_gone_is_droppedmemory_waitnamed_ranges_survive_an_unknown_write_and_mergingheap_page_cachefull_cache_replaces_same_key_without_duplicate_queue_entriesheap_page_cachefailed_imports_are_not_cached_and_live_entries_are_boundedplacement::pendingthe_index_finds_exactly_the_overlapping_rangesThe tests still catch what they check at the smaller sizes. Under Miri, with
notenever dropping the writes of lists that are gone,what_has_run_or_is_gone_is_droppedfails with "2001 writes are kept after 2000 lists came and went". With the page-cache sweep never removing an expired entry,sweep_reaches_expired_key_behind_live_entriesandfailed_imports_are_not_cached_and_live_entries_are_boundedfail.Also run:
cargo +1.95.0 clippy --locked --target x86_64-pc-windows-msvc --workspace --all-targets -- -D warningsandcargo fmt --all --check: pass.cargo xwin testand run under plain Wine (full sizes): 476 passed, 8 ignored, 3 failed. The six above pass. The 3 are thescene_publicationtests, which panic with "hardware device required" because plain Wine can't create the device. They fail the same way on main.Checks
CI runs the code checks: the Python and Rust unit tests, the translator tests through DXC, a Windows typecheck, clippy, formatting, rustdoc, and Miri on the providers. It has no GPU.
If this pull request changes evidence JSON, regenerate the results table and the progress map and include both files:
This pull request changes no evidence JSON.