-
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: Typecheck/ESLint actions out of memory #48470
Comments
Triggered auto assignment to @kadiealexander ( |
I asked @roryabraham for assignment on #typescript-new-expensify channel, waiting for his approval for now. |
Triggered auto assignment to @thienlnam, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
🟢 from me (as discussed in slack) to try and figure out how to make lint and tsc faster |
Coming back with some findings 🔍TS server is quite fast in general, so any slowness is usually caused by the devs or complex libraries, common culprits are:
Currently, TS check is at around 54 seconds for me: Baseline ~54s, ~4.5GB of memory
InvestigationThat got me thinking what types are so complicated that E/App takes so long to compile... I looked at the AST tree and saw a lot of onyx symbols used:
These symbols are used in ~38s, ~2.8GB of memory (40% less memory used 🚀 )
Here is the PR where most of Other things to consider
Other general solutions, but not worth the effort for now:
Hot spots, what files takes most time to compile - we should investigate them 👀Command:
Hot Spots:
MaterialsFor anybody interested, here're some useful links:
|
TLDR;
|
This issue has not been updated in over 15 days. @thienlnam, @blazejkustra, @kadiealexander eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
I'll be monitoring the performance of TS/ESLint once we got to a point where there are far less |
This issue has not been updated in over 15 days. @thienlnam, @blazejkustra, @kadiealexander eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
Once there are no withOnyx left, I'll post an update to compare TS/ESlint speed |
Typecheck action that failed
Some context from couple months ago when ESLint was failing: #44425
Issue Owner
Current Issue Owner: @blazejkustraThe text was updated successfully, but these errors were encountered: