Skip to content

🤖 ci: retry macOS builds to handle transient Apple timestamp failures#2783

Merged
ibetitsmike merged 2 commits intomainfrom
mike/ci-retry-macos-builds
Mar 5, 2026
Merged

🤖 ci: retry macOS builds to handle transient Apple timestamp failures#2783
ibetitsmike merged 2 commits intomainfrom
mike/ci-retry-macos-builds

Conversation

@ibetitsmike
Copy link
Contributor

@ibetitsmike ibetitsmike commented Mar 4, 2026

Summary

Adds a reusable retry script (scripts/retry.sh) and wires it into macOS code signing steps so transient Apple timestamp server outages don't fail the entire build.

Background

The nightly macOS build (run 22660852909) failed at the "Package and publish for macOS" step with The timestamp service is not available. This is Apple's codesign --timestamp server going down briefly — a known intermittent issue. All other platforms succeeded.

electron-builder has no built-in retry for codesign operations, so the fix is at the CI layer.

Implementation

New scripts/retry.sh — a generic retry wrapper with no external dependencies:

Usage: scripts/retry.sh <max_attempts> <backoff_secs> <command...>
  • GitHub Actions ::group::/::endgroup:: markers for clean log folding per attempt
  • ::error:: annotation on final failure
  • Both workflow files call it with ./scripts/retry.sh 3 30 make dist-mac...

Retrying the full make target is safe because vite caching makes the build dep near-instant on re-run, electron-builder overwrites its release/ output, and the subsequent gh release upload --clobber handles upload conflicts.


Generated with mux • Model: anthropic:claude-opus-4-6 • Thinking: xhigh • Cost: $2.68

@ibetitsmike
Copy link
Contributor Author

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ibetitsmike
Copy link
Contributor Author

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. 🚀

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ibetitsmike ibetitsmike added this pull request to the merge queue Mar 5, 2026
Merged via the queue into main with commit 35b559a Mar 5, 2026
38 of 40 checks passed
@ibetitsmike ibetitsmike deleted the mike/ci-retry-macos-builds branch March 5, 2026 09:41
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