Skip to content

tools: retry Gatekeeper check and stapling after notarization - #66855

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
ryanaslett:osx-notarize-retry
Oct 20, 2026
Merged

nodejs-github-bot merged 1 commit into
nodejs:mainfrom
ryanaslett:osx-notarize-retry

Conversation

@ryanaslett

Copy link
Copy Markdown
Contributor

When notarizing apple releases, Apple's ticket service can potentially have slow response times, and our script is immediately checking and failing if Apple's service hasnt caught up, which makes the spctl assessment fail with "source=Unnotarized Developer ID" even though the package was notarized.

This adds a retry loop to the spctl and stapler commands with exponential backoff (up to ~7.5 minutes) before failing, and fails the script if stapling does not succeed instead of ignoring its exit status.

Refs: nodejs/build#4527

Apple's ticket service can lag behind notarytool reporting
"Accepted", which makes the spctl assessment fail with
"source=Unnotarized Developer ID" even though the package was
notarized. Retry spctl and stapler with exponential backoff
(up to ~7.5 minutes) before failing, and fail the script if
stapling does not succeed instead of ignoring its exit status.

Refs: nodejs/build#4527
Signed-off-by: Ryan Aslett <raslett@linuxfoundation.org>
@nodejs-github-bot nodejs-github-bot added macos Issues and PRs related to the macOS platform. tools Issues and PRs related to the tools directory. labels Oct 19, 2026
@aduh95 aduh95 added fast-track PRs proposed for a shorter-than-standard waiting period before landing. author ready PRs with CI started, the required approvals, and no outstanding review comments. commit-queue PRs queued for automated landing through the Commit Queue. labels Oct 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Fast-track has been requested by @aduh95. Please πŸ‘ to approve.

@nodejs-github-bot
nodejs-github-bot merged commit 1b5fc14 into nodejs:main Oct 20, 2026
41 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 1b5fc14

@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. fast-track PRs proposed for a shorter-than-standard waiting period before landing. macos Issues and PRs related to the macOS platform. tools Issues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants