Skip to content

fix(gateway): preserve web release errors when cleanup fails - #1499

Merged
nixuuu merged 1 commit into
devfrom
fix/web-release-cleanup-error
Nov 30, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/web-release-cleanup-error

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 30, 2026

Copy link
Copy Markdown
Member

Follow-up to #1498 and #1493.

When publication and staging cleanup both failed, the cleanup exception escaped from finally and hid the filesystem error that prevented startup. The gateway now returns the publication error and logs the cleanup failure with the staging path. Cleanup starts only after this process creates its staging directory.

The regression test blocks the real directory rename and injects a cleanup failure scoped to that extraction. It failed on the merged revision with the cleanup error and passes with the fix.

Verification

  • All six embedded-web integration tests passed locally on Linux through check:tmp. No temp directories were left behind.
  • An isolated Windows fault-injection check covered transient and persistent rename EPERM and a persistent EPERM combined with cleanup EBUSY. Publication succeeded on attempt two for the transient error. Both persistent cases returned the error from the seventh rename.
  • Focused lint, formatting and diff checks passed. PR CI covers native runs.

@nixuuu
nixuuu enabled auto-merge (squash) November 30, 2026 07:52
@nixuuu
nixuuu merged commit 79c2b9f into dev Nov 30, 2026
24 checks passed
@nixuuu
nixuuu deleted the fix/web-release-cleanup-error branch November 30, 2026 07:59
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.

1 participant