Repository navigation
test(agc): flush shader cache writes before removing test files - #1986
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed the full diff and current head. ShaderDiskCache::Flush() waits until the queued jobs are empty and no write is active, so the test directory is not removed while the cache worker may still be writing. The cleanup now also reports filesystem errors instead of silently passing. Linux, Windows, Conventions, and changes checks are green; the author also reports a 1,000-run Windows stress validation.
a6e799c to
7dc3a06
Compare
|
Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), RTX 3060 Laptop (NVIDIA 616.92), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head
No title was run. 🤖 Addressed by Claude Code |
What
agc_shader_disk_cachequeues asynchronous cache writes, then removes its temporary directory without waiting for those writes. Flush the writer before removal, and fail explicitly when filesystem cleanup reports an error.The patch is two added lines in one test file, directly on
maind70b8998. No code-size optimization, store-kernel partitioning, TLS grouping or other prerequisite commits remain. Production shader semantics and cache policy are unchanged.The Windows reproduction completed all verification phases but hung during filesystem cleanup on execution 164; GDB placed the main thread in
CreateFileWthrough libstdc++. The same two-line correction passed 1,000 consecutive Windows Release executions (stress validation; original reproduction). Those earlier diagnostic branches had a different baseline; they establish the investigated cleanup issue, not validation of the new head or every possible filesystem stall.Checked cache-related PRs including #1523 and #590; neither supplies this final test-cleanup synchronization. The competing #2001 infrastructure-removal proposal is not a dependency.
Tested
Exact source head
7dc3a067: independent validation passes on native GitHub Linux and Windows runners, Release / GCC, including full default builds, all-library packaging and three executions ofagc_shader_disk_cachewith a 30-second limit. Both platforms execute the test; no capability skip. These are fork validation jobs, not collaborator-dispatched upstream checks. Unrelated tests from the full suite were not run in this validation.Conventions and
git diff --checkpass. No console or title testing is claimed for this test-only correction.Checklist
mainsnapshotd70b8998; no other open PR implements this change