-
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
[HOLD for payment 2024-07-10] [LOW] [Performance] Fix onyx mocking for reassure #43549
Comments
Triggered auto assignment to @laurenreidexpensify ( |
Hi. I'm Olimpia from Callstack. I would like to work on this issue. |
Thanks |
Daily Update: It looks like the issue with increasing render count after removing null values from the cache in onyx is likely due to more frequent state updates and re-renders. The Jest environment makes things worse by handling mocks, asynchronous operations, and state updates differently than in a real application, leading to excessive rendering. I have found that simplifying the tests by breaking the scenarios into smaller parts and testing the performance of smaller pieces of the component could solve this problem. This will ensure that each part of the scenario addresses specific state updates, making it easier to manage and understand the impact of each update on component render counts. So the next step is to change these tests according to the above conclusions. I should have my PR ready at the beginning of next week. |
@OlimpiaZurek still on track to get a PR up in next day? |
I've been working on a different task recently. I'll come back to this tomorrow. The PR should be ready by Wednesday. |
Triggered auto assignment to @kadiealexander ( |
@kadiealexander handing over in prep for parental leave 🙏 this one is still waiting on getting a PR up, but Olimpia should have this done today 👍 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.3-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-07-10. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
I believe this is now completed and we do not have anything else actionable. Thank you @OlimpiaZurek |
After updating Onyx to a later version here: #42772, the mocking for Onyx has to be updated in the reassure tests, as otherwise, they will fail.
We have disabled the tests after confirming the regressions are not manifesting in the product.
Discussing in this slack thread. Let's figure out how to fix the onyx mocking and update the tests with it cc @chrispader @OlimpiaZurek
Issue Owner
Current Issue Owner: @kadiealexanderThe text was updated successfully, but these errors were encountered: