Skip to content

Exiting pre mode fails with 400+ changesets #1688

Closed

Description

@gfellerph

Our repo has been in a pre-release state for some time and we're nearing the deadline, so we tried to exit pre and run version on the repo. Currently, we have 425 changesets pending. When trying to run pnpm changeset version

Repo: https://github.com/swisspost/design-system
Steps to reproduce:

  1. Clone the repo
  2. Run pnpm install
  3. Run pnpm changeset pre exit
  4. Run pnpm changeset version
  5. GitHub API call errors with "Something went wrong while executing your query ..."

A call to the GitHub API is placed that fails on GitHub side. I've investigated a bit and saw that the query payload sent to the API is 338KB of GraphQL (?) like this:

a1dd4791446531a1d01a8bbb8722ef8caa5b3e85a: object(expression: "1dd4791446531a1d01a8bbb8722ef8caa5b3e85a") {
            ... on Commit {
            commitUrl
            associatedPullRequests(first: 50) {
              nodes {
                number
                url
                mergedAt
                author {
                  login
                  url
                }
              }
            }
            author {
              user {
                login
                url
              }
            }
          }}

Do you know if there's a limit on this API call payload and we're reaching it with this many changesets? Also, is there any way to work around this?

Activity

  1. pngwn commented on Jun 13, 2025

    @pngwn

    This was the result of running that script for context: gradio-app/gradio#9612

  2. gfellerph commented on Jul 28, 2025

    @gfellerph
    Author

    Awesome! Thank you @dominikg and @pngwn I'll definitely have a look at the script (and the live session!).

  3. bluwy commented on Nov 19, 2025

    @bluwy
    Member

    It seems this happens because we're generating a changelog for every changeset made since pre enter, which it'll perform a ton of queries to check each commit's linked PR, authors, etc. And I think we should address the root problem here because it's often not ideal anyways to list all changelogs from pre versions because some/most are not relevant to the final stable release anyways.

    #240 highlights this issue. What I think we should do is to not generate all the changelogs on pre exit (not even prompting like #240 suggests), we'll generate the changelogs as usual for unreleased changesets, or otherwise produce an empty changelog for the stable release.

  4. added theissue type on Dec 12, 2025
  5. oliverschuerch commented on Apr 22, 2026

    @oliverschuerch

    @gfellerph this issue should be added to the v10 milestone, imo.

  6. bluwy commented on Jul 30, 2026

    @bluwy
    Member

    In addition to the linked PR, #2121 should also fix this by setting a batch size when fetching github for the commit info. If you do not need most of the changesets for the final release, you can delete them from the .changeset/pre/ folder.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions