Skip to content

fix(release): retry transient Apple ticket connection failures - #3409

Merged
wgqqqqq merged 1 commit into
GCWing:mainfrom
wgqqqqq:wgq/retry-apple-ticket-network
Oct 15, 2026
Merged

wgqqqqq merged 1 commit into
GCWing:mainfrom
wgqqqqq:wgq/retry-apple-ticket-network

Conversation

@wgqqqqq

@wgqqqqq wgqqqqq commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

macOS ARM64 packaging completed compilation, Developer ID signing and Apple notarization, then failed because CloudKit dropped the ticket-validation connection (NSURLErrorDomain Code=-1005, stapler exit 68). A single transport error discarded a fully built release package.

Retry stapler validation/stapling at most three times, with 10/20-second delays, only when both that exit code and the observed connection-loss diagnostic match. Invalid tickets, other exit codes, signing failures, Gatekeeper rejection and notarization submission failures still fail normally. Retry the individual stapler command so DMG notarization is submitted only once.

For immutable-tag rebuilds, load the two verification scripts from the pinned workflow revision into a temporary directory. The product checkout stays on its original tag. This ensures the 1.0.6 rebuild actually uses the corrected verification policy without moving its tag or replacing signed artifacts. GitHub documents github.workflow_sha as the workflow file commit SHA.

Validation:

  • Reproduced the observed exit-68 failure in a shell fixture before the fix.
  • pnpm run check:github-config — 40 passed, 1 unrelated environment-dependent skip. Includes transient/exhausted app and DMG ticket checks, invalid tickets, other exit codes, signature/Gatekeeper/submission rejection, and a real shallow Git checkout test proving pinned verification, unchanged product HEAD and unchanged artifact bytes.
  • node --test scripts/ci/verify-macos-microphone.test.mjs — 4 passed with disposable locally signed bundles.
  • bash -n scripts/ci/verify-macos-signing.sh, pnpm run check:repo-hygiene, and git diff --check passed.

Observed failure: https://github.com/GCWing/OpenBitFun/actions/runs/38704563620/job/116320759304

AI-assisted; lightly tested with focused verification fixtures. Fixtures do not prove live Apple service availability. Full signed packaging remains the release verification step. Remote workspace, remote control, Peer Device Mode and Detached Dispatch were not exercised; runtime code, native mobile releases and persisted shapes are unchanged.

@wgqqqqq
wgqqqqq merged commit f7e61a2 into GCWing:main Oct 15, 2026
13 of 14 checks passed
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