Skip to content

fix: clean up failed NUP extraction members - #1412

Merged
NotRexed merged 1 commit into
NotRexed:mainfrom
JooaoPedro15:fix/clean-failed-nup-member
Nov 10, 2026
Merged

NotRexed merged 1 commit into
NotRexed:mainfrom
JooaoPedro15:fix/clean-failed-nup-member

Conversation

@JooaoPedro15

Copy link
Copy Markdown
Contributor

When NUP extraction fails while writing a member or replacing its destination, the .part file remains on disk. This can consume space after a disk-full error or leave a complete staging file after a denied replacement.

Remove the staging file after a failed write or replacement. Preserve the previous destination and the extraction error. Completed members remain available for retry.

The game-free regression injects both a partial write followed by ENOSPC and a denied replacement. It verifies that the staging file is gone, the previous file is intact, and a retry succeeds. Both cases fail on the old code. The NUP path, missing NUP and Builder cache suites passed locally on macOS. The full game-free workflow passed on Windows and Ubuntu in the fork.

AI assistance from OpenAI Codex is recorded in the commit trailers.

Remove the partial member when a write or final replacement fails, while preserving any previous destination and the extraction error. Cover disk-full and replacement-denied failures followed by successful retries.

Assisted-by: OpenAI Codex
Co-Authored-By: Codex <noreply@openai.com>
@NotRexed

Copy link
Copy Markdown
Owner

This landed in the v2.0.12 branch (merged there for testing; it reaches main with that release), so closing. Thanks!

@NotRexed NotRexed closed this Nov 10, 2026
@NotRexed

Copy link
Copy Markdown
Owner

Reopened: closing this was a mistake on my side. It was tested in the v2.0.12 branch, and it will be merged into main here, so it shows as merged. Sorry for the noise.

@NotRexed NotRexed reopened this Nov 10, 2026
@NotRexed
NotRexed merged commit 03d8e13 into NotRexed:main Nov 10, 2026
20 checks passed
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