Skip to content

d3d12_guid_sites: stage --json so a write failure keeps the previous report - #9004

Open
Grimkeh wants to merge 1 commit into
ItsNotRexed:mainfrom
Grimkeh:fix/d3d12-guid-sites-preserve-json
Open

Grimkeh wants to merge 1 commit into
ItsNotRexed:mainfrom
Grimkeh:fix/d3d12-guid-sites-preserve-json

Conversation

@Grimkeh

@Grimkeh Grimkeh commented Nov 23, 2026

Copy link
Copy Markdown

Summary

Claim: #8504 (comment)

Synthetic; no game files. AI-assisted (Cursor / Composer).

Test plan

  • python3 -I -m unittest discover -s tests -p test_d3d12_guid_sites.py — OK

Made with Cursor

…report

Publish the GUID-site report through a temp file + replace so a mid-write OSError leaves any prior complete JSON intact.

Co-authored-by: Cursor <cursoragent@cursor.com>
@molodayamama

Copy link
Copy Markdown

Verified commit 9dafd76c05c656b0f91601defd8160df3e2a4da6. All nine GUID-sites tests passed on Windows. I also held a real read handle on an existing JSON report with read/write sharing but without delete sharing. The writability preflight succeeded and the actual replacement was refused with WinError 5. The original bytes survived, no staged file remained, and retrying after closing the handle published the new JSON.

AI-assisted verification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants