Skip to content

chore: patch @semantic-release/github so large releases don't fail after publishing - #10314

Closed
langz wants to merge 3 commits into
mainfrom
chore/semantic-release-github-chunks
Closed

langz wants to merge 3 commits into
mainfrom
chore/semantic-release-github-chunks

Conversation

@langz

@langz langz commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

The v11.16.1 release failed after it was published to npm and GitHub (Release run).

The success step of @semantic-release/github, which comments on and labels the released pull requests, asks GitHub's GraphQL API about the pull requests of 100 commits in one request and sends all of these requests at once. GitHub stops a GraphQL request after 10 seconds, and a 100-commit request now takes longer. GitHub then returns a cut-off response, and the step throws TypeError: Cannot destructure property 'repository' of '(intermediate value)' as it is undefined. Because the job fails, the PR comments and labels, the SBOM and attestation, and the portal deploy are skipped. Any release with about 100 or more commits fails the same way. Replayed against the v11.16.1 commits, a 100-commit request failed 3 of 3 times after about 11 seconds, while a 25-commit request takes about 3 seconds.

This patches @semantic-release/github 12.0.8 to ask about 25 commits per request, one request at a time, as proposed upstream in semantic-release/github#1319. No released version includes that change yet (12.0.10 is the latest), so the patch can be removed once one does.

This is an alternative to #10315, which turns off the comments and labels with successCommentCondition: false instead. Only one of the two is needed.

…ial chunks

GitHub stops a GraphQL request after 10 seconds. The success step asked about the pull requests of 100 commits per request and sent the requests in parallel, which took longer and failed the v11.16.1 release after publishing. Ask about 25 commits per request, one request at a time, as proposed upstream in semantic-release/github#1319.
@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Branch Preview URL (stable):
https://pr-10314.eufemia-e25.pages.dev

https://pr-10314.eufemia-e25.pages.dev

Deployment URL (unique):
https://7cc08a8f.eufemia-e25.pages.dev

https://7cc08a8f.eufemia-e25.pages.dev

successCommentCondition: false skips the associated pull request lookup that runs past GitHub's 10-second GraphQL limit, without carrying a patch. It also turns off the released labels, which nothing in the repo uses.
@langz langz changed the title chore: patch @semantic-release/github so large releases don't fail after publishing chore: turn off release comments on PRs so large releases don't fail after publishing Oct 28, 2026
@pkg-pr-new

pkg-pr-new Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

commit: 014400f

Keep this pull request as the patch alternative; #10315 turns off the release comments instead.
@langz langz changed the title chore: turn off release comments on PRs so large releases don't fail after publishing chore: patch @semantic-release/github so large releases don't fail after publishing Oct 28, 2026
@tujoworker tujoworker closed this Oct 28, 2026
@tujoworker

Copy link
Copy Markdown
Member

Replaced by #10320, which keeps release confirmations and labels in a separate notification job without patching the dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants