-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(mac): Wrap hditutil detach in retry w/ backoff #7600
fix(mac): Wrap hditutil detach in retry w/ backoff #7600
Conversation
🦋 Changeset detectedLatest commit: 2e5a91b The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for car-park-attendant-cleat-11576 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
First-time contributor here, so happy to do whatever is needed to get this relatively simple change ready for review. |
FYI - We tested the fix here and it worked as intended in fixing the error we were seeing earlier. Nice work @roryabraham! |
Unfortunately this fix doesn't help much. We see the script retrying up to 5 times on CI and eventually it still fails with the same error message |
Pretty sure there's no way to detect this from javascript side. All dmg-builder is doing is calling We do try to use In a previous project, I had Obj-C code (via a |
I wonder if some macOS command line could be used to detect what is preventing the unmount action from happening? Maybe that could be printed to stdout in failure so that we know what is locking files or folders. |
@laurent22 can you create a new Github issue for this and ping me there/link it here? I'd rather contain discussions there as I forsee this to be a larger topic and not best suited as comments on a merged PR. I'm whipping up a |
was another issue ever created? this issue has started coming back to haunt us |
@roryabraham I don't think a new one exists. Are you on the same version of electron-builder and the issue came back? Or did you update electron-builder? I recall there's a new retry mechanism for hdiutil that was added about 4 months ago for wrapping the retry for all hdiutil commands: https://github.com/electron-userland/electron-builder/blob/master/packages/dmg-builder/src/hdiuil.ts |
We are currently on though I haven't really seen this issue in the last few weeks. It showed up relentlessly for a few days then disappeared back into the ether 🤷🏼 |
We are experiencing a lot of flakiness with our Electron deploys in a GitHub Actions macos-12 runner. This PR is an attempt to wrap the failing command in a retry, as has been done elsewhere in this repo.
I also added a simple backoff mechanism to the retry function.