From e4cf5063d7a788ce55e8ceff1977e5997b11d926 Mon Sep 17 00:00:00 2001 From: "Design Master Solutions, LLC" Date: Sat, 21 Nov 2026 13:59:33 -0300 Subject: [PATCH] ci(macos): size DMGs from apparent bytes so hdiutil stops failing with 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. --- .github/workflows/build_orca.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_orca.yml b/.github/workflows/build_orca.yml index 6e8611e28f07..34ddfa2baa0c 100644 --- a/.github/workflows/build_orca.yml +++ b/.github/workflows/build_orca.yml @@ -262,7 +262,9 @@ jobs: rm -rf ${{ github.workspace }}/build/universal/Snapmaker_Orca_dmg/* cp -R "${{ github.workspace }}/build/universal/Snapmaker_Orca/Snapmaker Orca.app" "${{ github.workspace }}/build/universal/Snapmaker_Orca_dmg/" ln -sfn /Applications ${{ github.workspace }}/build/universal/Snapmaker_Orca_dmg/Applications - hdiutil create -volname "Snapmaker_Orca" -srcfolder ${{ github.workspace }}/build/universal/Snapmaker_Orca_dmg -ov -format UDZO "${{ github.workspace }}/Snapmaker_Orca_Mac_universal_${{ env.ver }}.dmg" + # Size from apparent bytes: -srcfolder sizes from allocated blocks and fails with ENOSPC on sparse files. + SIZE_MB=$(( $(du -sAk ${{ github.workspace }}/build/universal/Snapmaker_Orca_dmg | cut -f1) / 1024 * 12 / 10 + 64 )) + hdiutil create -volname "Snapmaker_Orca" -srcfolder ${{ github.workspace }}/build/universal/Snapmaker_Orca_dmg -size "${SIZE_MB}m" -ov -format UDZO "${{ github.workspace }}/Snapmaker_Orca_Mac_universal_${{ env.ver }}.dmg" codesign --deep --force --verbose --options runtime --timestamp --entitlements ${{ github.workspace }}/scripts/disable_validation.entitlements --sign "$CERTIFICATE_ID" "${{ github.workspace }}/Snapmaker_Orca_Mac_universal_${{ env.ver }}.dmg" # Create separate Snapmaker_Orca_profile_validator DMG if the app exists @@ -271,7 +273,9 @@ jobs: rm -rf ${{ github.workspace }}/build/universal/Snapmaker_Orca_profile_validator_dmg/* cp -R ${{ github.workspace }}/build/universal/Snapmaker_Orca/Snapmaker_Orca_profile_validator.app ${{ github.workspace }}/build/universal/Snapmaker_Orca_profile_validator_dmg/ ln -sfn /Applications ${{ github.workspace }}/build/universal/Snapmaker_Orca_profile_validator_dmg/Applications - hdiutil create -volname "Snapmaker_Orca Profile Validator" -srcfolder ${{ github.workspace }}/build/universal/Snapmaker_Orca_profile_validator_dmg -ov -format UDZO "${{ github.workspace }}/Snapmaker_Orca_profile_validator_Mac_universal_${{ env.ver }}.dmg" + # Size from apparent bytes: -srcfolder sizes from allocated blocks and fails with ENOSPC on sparse files. + SIZE_MB=$(( $(du -sAk ${{ github.workspace }}/build/universal/Snapmaker_Orca_profile_validator_dmg | cut -f1) / 1024 * 12 / 10 + 64 )) + hdiutil create -volname "Snapmaker_Orca Profile Validator" -srcfolder ${{ github.workspace }}/build/universal/Snapmaker_Orca_profile_validator_dmg -size "${SIZE_MB}m" -ov -format UDZO "${{ github.workspace }}/Snapmaker_Orca_profile_validator_Mac_universal_${{ env.ver }}.dmg" codesign --deep --force --verbose --options runtime --timestamp --entitlements ${{ github.workspace }}/scripts/disable_validation.entitlements --sign "$CERTIFICATE_ID" "${{ github.workspace }}/Snapmaker_Orca_profile_validator_Mac_universal_${{ env.ver }}.dmg" fi @@ -294,7 +298,9 @@ jobs: rm -rf ${{ github.workspace }}/build/universal/Snapmaker_Orca_dmg/* cp -R "${{ github.workspace }}/build/universal/Snapmaker_Orca/Snapmaker Orca.app" "${{ github.workspace }}/build/universal/Snapmaker_Orca_dmg/" ln -sfn /Applications ${{ github.workspace }}/build/universal/Snapmaker_Orca_dmg/Applications - hdiutil create -volname "Snapmaker_Orca" -srcfolder ${{ github.workspace }}/build/universal/Snapmaker_Orca_dmg -ov -format UDZO Snapmaker_Orca_Mac_universal_${{ env.ver }}.dmg + # Size from apparent bytes: -srcfolder sizes from allocated blocks and fails with ENOSPC on sparse files. + SIZE_MB=$(( $(du -sAk ${{ github.workspace }}/build/universal/Snapmaker_Orca_dmg | cut -f1) / 1024 * 12 / 10 + 64 )) + hdiutil create -volname "Snapmaker_Orca" -srcfolder ${{ github.workspace }}/build/universal/Snapmaker_Orca_dmg -size "${SIZE_MB}m" -ov -format UDZO Snapmaker_Orca_Mac_universal_${{ env.ver }}.dmg # Create separate Snapmaker_Orca_profile_validator DMG if the app exists if [ -f "${{ github.workspace }}/build/universal/Snapmaker_Orca/Snapmaker_Orca_profile_validator.app/Contents/MacOS/Snapmaker_Orca_profile_validator" ]; then @@ -302,7 +308,9 @@ jobs: rm -rf ${{ github.workspace }}/build/universal/Snapmaker_Orca_profile_validator_dmg/* cp -R ${{ github.workspace }}/build/universal/Snapmaker_Orca/Snapmaker_Orca_profile_validator.app ${{ github.workspace }}/build/universal/Snapmaker_Orca_profile_validator_dmg/ ln -sfn /Applications ${{ github.workspace }}/build/universal/Snapmaker_Orca_profile_validator_dmg/Applications - hdiutil create -volname "Snapmaker_Orca Profile Validator" -srcfolder ${{ github.workspace }}/build/universal/Snapmaker_Orca_profile_validator_dmg -ov -format UDZO "${{ github.workspace }}/Snapmaker_Orca_profile_validator_Mac_universal_${{ env.ver }}.dmg" + # Size from apparent bytes: -srcfolder sizes from allocated blocks and fails with ENOSPC on sparse files. + SIZE_MB=$(( $(du -sAk ${{ github.workspace }}/build/universal/Snapmaker_Orca_profile_validator_dmg | cut -f1) / 1024 * 12 / 10 + 64 )) + hdiutil create -volname "Snapmaker_Orca Profile Validator" -srcfolder ${{ github.workspace }}/build/universal/Snapmaker_Orca_profile_validator_dmg -size "${SIZE_MB}m" -ov -format UDZO "${{ github.workspace }}/Snapmaker_Orca_profile_validator_Mac_universal_${{ env.ver }}.dmg" fi - name: Upload artifacts mac