-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
perf(jest-resolve): skip error creation on not found stat calls #11749
Conversation
859be58
to
807c48c
Compare
CI is very unhappy, would you be able to take a look 🙂 |
I will take another look shortly. The issue with CI is that the fix required for this change to work came in a patch version of node@16, so we would need to guard this optimization behind a capability check to meet the version support of jest. |
5ff3835
to
1d95a4b
Compare
Chose to use the new option as its even more performant and back-compat is easier. Blocked and waiting on this fix first though cc @SimenB |
Armed with a profiler I arrived at exactly the same optimisation ( |
@markjm |
Wonderful - will fix up this PR by EOD! |
Great! A rebase, updating graceful-fs in package.jsons and a changelog entry would be great 👍 |
1d95a4b
to
12d3562
Compare
12d3562
to
23712c6
Compare
Codecov Report
@@ Coverage Diff @@
## main #11749 +/- ##
==========================================
- Coverage 67.52% 67.51% -0.01%
==========================================
Files 328 328
Lines 17246 17246
Branches 5071 5071
==========================================
- Hits 11645 11644 -1
- Misses 5568 5569 +1
Partials 33 33
Continue to review full report at Codecov.
|
@SimenB cleaned up the commit and CI is passing. I see all circleCI passing, but its still waiting for approval for some workflow I cant seem to find. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Implements perf improvement for resolving discussed in #11738
Test plan
No user-facing changes requireing e2e testing. Added UT to ensure stacktrace is properly set back to pre-change value