Skip to content

fix(macos): resume thin notarization checkpoints - #31

Merged
vincentkoc merged 1 commit into
mainfrom
fix/macos-variant-notarization-recovery
Sep 21, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/macos-variant-notarization-recovery

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Failed arm64 and x86_64 preflights already retain notarization checkpoints, but recovery only selected the universal checkpoint. Thin jobs rebuilt instead of resuming their original signed artifacts and Apple submission IDs.

Add resume_notarization_variant with universal as the unchanged default, plus arm64, x86_64, and all. A single per-job selection controls build and recovery steps. Selected jobs require their exact existing checkpoint name; missing checkpoints fail without rebuilding. Unselected variants build normally.

Recovery retains the existing run, attempt, source, SHA-256, signing identity, architecture, and notarization checks. It additionally validates the checkpoint app’s hash-protected SUFeedURL against the matrix before packaging. The checkpoint format and universal artifact names remain unchanged; the duplicate upload steps are consolidated.

Validation:

  • 23 Python tests and 14 Node tests passed; actionlint and git diff --check passed.
  • Executed workflow fixtures cover all four selectors across all three variants, fresh/resumed packaging, failure propagation, old universal checkpoints, wrong feeds/source/run/attempt, and missing/partial checkpoints.
  • An additional fixture bridge used the unchanged core checkpoint and notarization scripts: 18 binding cases passed; altered ZIPs failed real SHA-256 verification; each variant reused its original submission ID and ZIP bytes, and an already Accepted result caused no second wait.

The bridge used a strict fake Apple boundary: zero Apple submissions, zero signing credentials, and no production notarization claim. No workflow was dispatched and no release was published. Existing workflow triggers and release authorization are unchanged.

Production workflow delta: +34 lines for selectable recovery and variant identity validation. README and changelog document the operator behavior.

@vincentkoc
vincentkoc marked this pull request as ready for review September 21, 2026 15:07
@vincentkoc
vincentkoc requested a review from a team as a code owner September 21, 2026 15:07
@vincentkoc
vincentkoc merged commit 8188746 into main Sep 21, 2026
3 checks passed
@vincentkoc
vincentkoc deleted the fix/macos-variant-notarization-recovery branch September 21, 2026 15:11
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