Repository navigation
fix(agent): retry macOS release DMG creation when hdiutil is busy - #1504
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Work 0.0.20 release (run 42441283859) failed in Signed macOS (prod) after signing and notarization had passed, at the DMG step:
The runner had 32 GiB free, and rerunning only that job passed, so this is a transient runner error rather than a sizing problem. One such error should not fail a release.
Change
apps/maple-agent/scripts/macos-release-app.shgetsmacos_create_dmg, shaped like the existingmacos_codesignretry. It trieshdiutil createup to 4 times, waiting 10, 20 and 30 seconds between tries, logs each failed attempt, and removes any partial image before the next try. Only the image step retries. Sizing, the finaldfdiagnostics, DMG signing and notarization are unchanged.Testing
macos_native(the test hook the file already documents) andsleep. One "Resource busy" then success returns 0 after 2 calls. Constant failure returns 1 after 4 calls with no leftover image.hdiutilon macOS 27.2 to confirm the new argument order (-ovright before the image path). It produced a UDZO image.Not exercised in a signed release run yet. The next release will be the first.
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.