Skip to content

chore: turn off release comments on PRs so large releases don't fail after publishing - #10315

Closed
langz wants to merge 1 commit into
mainfrom
chore/turn-off-release-comments
Closed

langz wants to merge 1 commit into
mainfrom
chore/turn-off-release-comments

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).

After publishing, @semantic-release/github comments on every released pull request and adds the released label. To find those pull requests, it asks GitHub's GraphQL API about 100 commits per 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, so the step fails with TypeError: Cannot destructure property 'repository' of '(intermediate value)' as it is undefined. The failed job then skipped the SBOM, the attestation and the portal deploy. Any release with about 100 or more commits fails the same way.

This sets successCommentCondition: false, which turns off those comments and labels and skips the lookup. Nothing in the repo uses the released label, and the release notes already list the changes. It also makes releases faster: the step took 18.5 minutes for v11.16.0.

This is an alternative to #10314, which keeps the comments and labels by patching the plugin to send smaller queries. Only one of the two is needed.

successCommentCondition: false skips the associated pull request lookup in the success step of @semantic-release/github, which runs past GitHub's 10-second GraphQL limit on large releases. It also turns off the released labels, which nothing in the repo uses.
langz added a commit that referenced this pull request Oct 28, 2026
Keep this pull request as the patch alternative; #10315 turns off the release comments instead.
@github-actions

Copy link
Copy Markdown
Contributor

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

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

Deployment URL (unique):
https://780b56cf.eufemia-e25.pages.dev

https://780b56cf.eufemia-e25.pages.dev

@tujoworker tujoworker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the cleanest solution.

@tujoworker tujoworker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can better. Because with that PRs do not get marked as released.

@langz

langz commented Oct 28, 2026

Copy link
Copy Markdown
Member Author

I think we can better. Because with that PRs do not get marked as released.

Yes, that's correct 👍

@tujoworker

Copy link
Copy Markdown
Member

Replaced by #10320, which keeps release confirmations and labels while moving notifications out of the publish job.

@tujoworker tujoworker closed this Oct 28, 2026
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