Repository navigation
ci(macos): size DMGs explicitly so hdiutil stops failing with 'No space left on device' - #1236
Open
alandebortolo wants to merge 1 commit into
Open
alandebortolo wants to merge 1 commit into
alandebortolo wants to merge 1 commit into
Conversation
…h ENOSPC The profile validator DMG fails on every main run since 2026-11-19 with 'hdiutil: create failed - No space left on device' while the runner still has 74 GiB free. hdiutil -srcfolder sizes the image from allocated blocks; pass -size from du -A plus 20% and 64 MiB.
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.
Problem
The macOS job on
mainhas failed on every run since 2026-11-19 at the DMG step, right after the main DMG is created:Runs: 44657297727, 44810676578, 44865760084.
It is not the runner disk. In 44865760084 the "Free disk space before DMG packaging" step (#1144) leaves 74 GiB free on
/System/Volumes/Dataa few seconds before the failure. The volume that runs out is the one inside the image:hdiutil create -srcfolderwithout-sizeestimates the image from the blocks the source folder has allocated, and the copy into the mounted image then hits ENOSPC.Fix
Before each of the 4
hdiutil createcalls (notarized and non-notarized steps), compute the size from the apparent byte count and pass it explicitly:-sizeonly sets the scratch volume; UDZO still compresses the result, so the final DMG size does not grow.How I checked it
On macOS (Darwin 27.2, hdiutil from the system), with a folder shaped like the validator DMG (
V.app/Contents/MacOS/V+Applications -> /Applications) where the binary is an 800 MiB file with holes (dureports 16K):hdiutil: create failed - No space left on device(same message as CI);hdiutil verifyVALID, mounted and the 838,860,800-byte binary is inside.Limits
brew install zstd(separate issue). The workflow YAML parses.