fix(main): retry temp dir cleanup in loadexec_arguments on Windows #7055

Merged
adriadam10 merged 1 commit from upstream-pr/7055 into main 2026-10-17 09:13:59 +00:00
adriadam10 commented 2026-10-17 09:13:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-17T09:13:51Z.


What

Main's push build 39019245350 (f05fc7d953, merge of #7038) failed windows:loadexec_arguments with PermissionError [WinError 5] while TemporaryDirectory removed guest_loadexec_host.prx. The test passed in 25 of 25 earlier main builds and #7038 does not touch it: the exited guest process still held the module for a moment. The test now removes its temp dir with a retry (up to 10 s) on PermissionError.

Tested

Linux: built relinker, guest_loadexec_host and its dependencies, ctest -R '^loadexec_arguments$' passes. The failure is Windows-only and not reproducible on Linux; main's push build is the proof.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; silent stubs are listed in technical debt
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4898869189 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7055). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-17T09:13:51Z. --- ### What Main's push build 39019245350 (f05fc7d953, merge of #7038) failed `windows:loadexec_arguments` with `PermissionError [WinError 5]` while `TemporaryDirectory` removed `guest_loadexec_host.prx`. The test passed in 25 of 25 earlier main builds and #7038 does not touch it: the exited guest process still held the module for a moment. The test now removes its temp dir with a retry (up to 10 s) on `PermissionError`. ### Tested Linux: built relinker, guest_loadexec_host and its dependencies, `ctest -R '^loadexec_arguments$'` passes. The failure is Windows-only and not reproducible on Linux; main's push build is the proof. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; silent stubs are listed in technical debt - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!7055
No description provided.