CI builds disabled by daid as a result in commit 662354d
Known issue closed as not planned/working as designed upstream in actions/runner-images#7522 (comment)
This is a long-standing and well-known issue around hdiutil on macOS.
The problem is confirmed and is caused by a combination of two factors:
- the high sensitivity of hdiutil to disk I/O state and concurrent filesystem activity;
- macOS system behavior itself (background security scanning, metadata/indexing, delayed I/O flushes), which can temporarily hold disk resources and result in Resource busy failures.
...
From the runner-images perspective, a definitive fix is not possible. All involved components (hdiutil, filesystem behavior, and macOS system services) are immutable upstream dependencies and cannot be preconfigured in a way that would permanently resolve this issue for all projects.
Practical and proven mitigation strategies on the consumer side include adding retries with backoff, introducing delays between build steps, explicitly running filesystem synchronization (sync), and in some cases disabling Spotlight/ indexing on build or staging directories.
Closing this issue as working as designed from the image perspective. 🤷♂️
CI builds disabled by daid as a result in commit 662354d
Known issue closed as not planned/working as designed upstream in actions/runner-images#7522 (comment)
...