Repository navigation
Conversation
…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.
Contributor
|
Branch Preview URL (stable): Deployment URL (unique): |
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.
commit: |
Keep this pull request as the patch alternative; #10315 turns off the release comments instead.
Member
|
Replaced by #10320, which keeps release confirmations and labels in a separate notification job without patching the dependency. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 throwsTypeError: 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/github12.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: falseinstead. Only one of the two is needed.