test(agc): flush shader cache writes before removing test files #1986
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1986"
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 boykopovar/AnyPS5. Originally posted by kali113 on 2026-10-09T03:43:03Z.
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 changeImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T03:59:19Z.
Review: APPROVED
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.Imported from boykopovar/AnyPS5. Originally posted by copilot-pull-request-reviewer[bot] on 2026-10-09T04:17:46Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T15:23:40Z.
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
7dc3a067, merged ontomaind70b8998in one build with 33 other AGC/shader PRs that had no Windows run.agc_shader_disk_cache. None of them reported skipping a case.PATHsetup.No title was run.
🤖 Addressed by Claude Code