-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate workflow job failing on main: lint / Run ESLint #44425
Comments
I'm able to reproduce this issue reliably on this PR but only locally @MonilBhavsar |
yes, I can reproduce locally too. Had to manually increase the node memory. |
I think we need to increase the node memory for now, I haven't found any other fixes as of now. - "lint": "eslint . --max-warnings=0 --cache --cache-location=node_modules/.cache/eslint",
+ "lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=0 --cache --cache-location=node_modules/.cache/eslint", |
This could be connected to these recent PRs:
|
Unfortunately ESLint can't be run in parallel (they even have a bounty for this 😅). Something that we could do going forward is to run many instances of ESLint at once for different parts of the project. That could help with the memory problem and speed up lint workflow. |
Ultimately it would be awesome to find the root cause why it takes so much memory (if it's a memory leak or not). I tried to debug it today with:
Buut, these logs are very verbose and hard to get any useful information out of it unfortunately. |
Thank you for looking! 👍 @roryabraham was quick and increased the node memory https://github.com/Expensify/App/pull/44497/files ⚡ 😄 |
🚨 Failure Summary 🚨:
failure: Process completed with exit code 134.
🛠️ A recent merge appears to have caused a failure in the job named lint / Run ESLint.
This issue has been automatically created and labeled with
Workflow Failure
for investigation.👀 Please look into the following:
🐛 We appreciate your help in squashing this bug!
The text was updated successfully, but these errors were encountered: