phetsims / aqua

Automatic QUality Assurance
MIT License
2 stars 4 forks source link

Lint is failing with heap memory failure #199

Closed zepumph closed 4 months ago

zepumph commented 9 months ago

CTQ fails while linting sometimes. It has happened 7 times (as reported on CT) since 1/1/23 (2 months). This seems very related to the investigation in https://github.com/phetsims/chipper/issues/1415. Before we work our project references for our type checking, we can just increase the memory on sparky to help give this a bandaid right now.

zepumph commented 9 months ago

I was able to make this a bit better on my side with a global variable called NODE_OPTIONS. I'm unsure if this will work with pm2, but we could try it.

 $ echo $NODE_OPTIONS
--max_old_space_size=8192

https://stackoverflow.com/questions/48387040/how-do-i-determine-the-correct-max-old-space-size-for-node-js

zepumph commented 9 months ago

I added that to the phet users bashrc, then restarted ct-quick and ct-main. Let's check back in here next time we encounter this error. I'll set a calendar reminder for a month from now.

zepumph commented 8 months ago

It has happened 3 more times in the last month since 1/4/23.

zepumph commented 4 months ago

This is well handled by https://github.com/phetsims/chipper/issues/1415. Closing