Add perf tests for ReportUtils#32637
Conversation
mountiny
left a comment
There was a problem hiding this comment.
One file changes requested, looking good, thank you!
Reviewer Checklist
Screenshots/VideosN/A Android: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.4.11-1 🚀
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.4.11-1 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.11-25 🚀
|
| ...createRandomReportAction(1), | ||
| actionName: CONST.REPORT.ACTIONS.TYPE.MODIFIEDEXPENSE, | ||
| originalMessage: { | ||
| originalMessage: { |
There was a problem hiding this comment.
Here's an extra node level (the originalMessage key is duplicated) that differs from how it looks in production. I updated this test in this PR, but now the performance test fails.
There was a problem hiding this comment.
@cristipaval The reason your PR failed the performance tests is because the number of re-renders was increased due to the changes you made. Do you have the same result locally? I would try to see if there is a way to improve the performance of this new getForReportAction() method.
There was a problem hiding this comment.
could you please check this and help me run the tests locally?
Details
This PR introduces performance tests using Reassure for
ReportUtilsmethods.Additionally, I added small changes to the description of performance tests to improve readability.
Fixed Issues
$ #30569
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop