dotansimha / graphql-code-generator

A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins.
https://the-guild.dev/graphql/codegen/
MIT License
10.87k stars 1.34k forks source link

Massive memory leak #7675

Open captchaunited opened 2 years ago

captchaunited commented 2 years ago

Apparently 9gb is not enough memory for this script to generate based on ~100 graphql queries.

saihaj commented 2 years ago

Can you share a reproduction repo?

roballsopp commented 2 years ago

I am also finding that the 7GB box provided by github actions is running out of memory when we try to generate our gql during CI.

roballsopp commented 2 years ago

Actually, we just discovered we were running code formatting with prettier on all of the generated files. Its hard to tell in our CI process if not running prettier solved our memory problems, but it made generating graphql files a hell of a lot faster at least.