Skip to content

fix(agent): retry macOS release DMG creation when hdiutil is busy - #1504

Merged
AnthonyRonning merged 1 commit into
masterfrom
claude/dmg-retry
Nov 8, 2026
Merged

AnthonyRonning merged 1 commit into
masterfrom
claude/dmg-retry

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

The Work 0.0.20 release (run 42441283859) failed in Signed macOS (prod) after signing and notarization had passed, at the DMG step:

hdiutil: create failed - Resource busy
hdiutil could not create a 157 MB disk image for 78 MB of content

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.sh gets macos_create_dmg, shaped like the existing macos_codesign retry. It tries hdiutil create up 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 final df diagnostics, DMG signing and notarization are unchanged.

Testing

  • Sourced the script with a stubbed macos_native (the test hook the file already documents) and sleep. One "Resource busy" then success returns 0 after 2 calls. Constant failure returns 1 after 4 calls with no leftover image.
  • Ran the helper with the real hdiutil on macOS 27.2 to confirm the new argument order (-ov right before the image path). It produced a UDZO image.
  • The repo pre-commit Agent checks passed.

Not exercised in a signed release run yet. The next release will be the first.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@AnthonyRonning
AnthonyRonning merged commit e1fcca5 into master Nov 8, 2026
23 checks passed
@AnthonyRonning
AnthonyRonning deleted the claude/dmg-retry branch November 8, 2026 04:08
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