Repository navigation
Conversation
|
Approve — both are the right shape of flake fix, which is rarer than flake fixing itself. The timer test moved from "every sample < 5 ms" to "the fastest sample < 5 ms": that asserts the invariant the test actually exists for (the 15.6 ms tick was escaped; the fine timer is live) without pretending a busy CI runner schedules anything instantly — the threshold stays 3× below the tick it rules out, so the discrimination is untouched, only the optimism. The VirtualFree retry pairs the two halves correctly too: bound the wait (<2 s) and keep the error message carrying the elapsed time, so a future machine where this legitimately exceeds 2 s produces a measurement in the failure text, not just "timeout". Two small notes: ① if the retry loop exits by budget exhaustion, the assert message should distinguish "failed for 2 s" from "failed once" (the elapsed timer already in the string does this if the loop is structured to fall through — worth one glance); ② test-only is verified from the diff itself, not just the description — everything added sits inside |
…, not the mean The test took the mean of 20 Sleep(1)s, which a busy PC (more test threads than processors, a parallel run) moves past 5 ms (xcl-dev#1487). It now checks the timer resolution fine_timer sets, and the fastest of 20 sleeps after one that lines the thread up with the timer: with the 15.6 ms tick every one takes a tick, so a missing fine timer still fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
820d235 to
d8f9224
Compare
|
Thanks for the review. One change since: I dropped the AI use: Claude Code (Claude Opus 5.5) wrote this. |
Hardware test report — commit
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
PR #1628 verificationHead STOR-WINLAB ran Windows x64 build 26200.9974 on an AMD Ryzen 7 3800X with an Intel Arc A770 (driver 32.0.101.9175). DXC reported 1.9.2609.5. Rust was 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc), using unoptimized dev/test profiles with debug info and incremental compilation disabled. Tested
Workspace failures and skips
Not tested Matched AI use T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against |
Refs #1487:
fine_timer_makes_short_sleeps_short, one of the failures left after #1523 (the access violation), #1600 (the XAudio2 tests) and #1590 (theVirtualFreeincoherent_buffer_sanitizes_console_flags_and_state, by Bullet18x: opened first and with the cause, so this PR no longer touches it). Test-only: the change is inside#[cfg(test)].What is in it
hle/kernelx.rs,fine_timer_makes_short_sleeps_short. It took the mean of 20Sleep(1), which a busy PC (more test threads than processors) moves past 5 ms (Sleep(1)taking the 15.6 ms tick in marquezinii's report). It now checks two things:fine_timersets (at most 1 ms);Tested
NVIDIA GeForce RTX 3070, driver 616.56; Windows 11 Pro 26100 (32 logical processors); Rust 1.100.0 MSVC; debug;
main9e3831e.main's test failed 4 of 5 (mean 9.2–11.6 ms);fine_timer()call (negative control, idle PC): fails 3 of 3, fastest sleep 14.7–15.0 ms. The resolution check alone doesn't catch that here, as other processes keep the system resolution fine.820d235(this change plus aVirtualFreeretry, now dropped for Tests: wait for the late release before freeing the coherent buffer test's heap (#1487) #1590),<lib test exe> --test-threads=32, 3 runs onmainwithout Tests: the queue slot 18 test signals a fence object that is complete (#1487) #1523: two ended with0xc0000005, Intermittent access violations during parallel library tests on Windows 11 #1487's access violation, which Tests: the queue slot 18 test signals a fence object that is complete (#1487) #1523 fixes. The third gave 727 passed, 0 failed, 21 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.Regression run
From eizispark's run (#1628 (comment)), thanks (AMD RX 9070 XT; this PR's diff is test-only, so it shows only that nothing else changed):
main:
PR:
Not tested
fine_timer_makes_short_sleeps_shortincluded.AI use
🤖 Generated with Claude Code