Skip to content

perf(release): shorten DMG unmounts and remove cache saves from release builds - #119

Merged
JUNERDD merged 2 commits into
mainfrom
ci/release-candidate-reuse
Nov 19, 2026
Merged

JUNERDD merged 2 commits into
mainfrom
ci/release-candidate-reuse

Conversation

@JUNERDD

@JUNERDD JUNERDD commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

The 0.12.0 Intel DMG build spent 9m11s waiting to detach its writable image. Replaying the original stapled app on the same macOS 26 runner image exposed the suppressed hdiutil error: Disk Arbitration exceeded its deadline while the original HFS+ unmount was still in progress. Volume sampling and the arbitration log recorded no sustained file holder or dissent.

Use APFS for the installer filesystem, keeping the normal detach, Finder layout, ULFO compression, signature checks and notarization. A controlled replay of that same archive detached the APFS image on its first attempt in 10.745 seconds. The resulting image passed its checksum, layout-file checks, strict app signature verification and staple validation. Preserve failed detach diagnostics for future investigations.

Release builds now restore an exact pnpm store cache when one is available and install normally on a miss. They no longer delay app notarization to compress and upload a PR-scoped cache after the signed app is already available.

Remote results

Both the original candidate and the optimized candidate succeeded on the first attempt. Elapsed time from workflow creation to completion fell from 68m37s to 55m53s, a saving of 12m44s (18.6%). Both app and DMG notarization, both native macOS 15 validations, Intel startup smoke tests and the signed update feeds passed.

Intel measurement Original Optimized
DMG creation (dmgbuild) 11m20s 1m31s
Detach including retries (part of creation) 9m11s, 5 attempts 11s, 1 attempt
Entire DMG job including notarization 20m45s 8m55s
Post-build pnpm cache save 2m55s on miss 0s on miss

In the separate same-archive comparison, HFS+ reproduced four Disk Arbitration timeouts. Detaching took 574.221s on HFS+ and 10.745s on APFS; total image creation took 687.289s and 64.403s respectively. The arbitration log showed one pending unmount until it succeeded. The OS did not identify a specific blocking process. The Intel candidate disk image grew from 163,461,985 to 168,823,450 bytes (+3.3%).

@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
atd-agent Ready Ready Preview Nov 19, 2026 11:35am UTC

@JUNERDD
JUNERDD merged commit 391158d into main Nov 19, 2026
18 checks passed
@JUNERDD
JUNERDD deleted the ci/release-candidate-reuse branch November 19, 2026 12:34

This branch was successfully deployed

1 active deployment
Preview — ee66505c Deployed Nov 19, 2026 by vercel[bot]
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