-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[NO QA] cleaning tests error logs #70666
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
[NO QA] cleaning tests error logs #70666
Conversation
b591945 to
87b8258
Compare
|
@shubham1206agra Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@elirangoshen Can you please update README of tests for future reference? |
|
@elirangoshen Bump here |
|
Hi, I working on other task which have higher priority. Im also on leave until next week so I will keep you posted early about it. |
I am also on leave for the remaining week from tomorrow. So no worries. |
4166ce8 to
39bd7e9
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #70666 +/- ##
==========================================
- Coverage 35.17% 35.10% -0.07%
==========================================
Files 3297 3307 +10
Lines 108097 108351 +254
Branches 34535 34619 +84
==========================================
+ Hits 38020 38035 +15
- Misses 69889 70132 +243
+ Partials 188 184 -4
📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
done :) |
Reviewer Checklist
|
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #70824 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
@elirangoshen Can you fix the failing checks? |
Done |
| /> | ||
| )} | ||
| </> | ||
| </React.Fragment> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused about these changes since they're not related to tests. Why did we do them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kind of agree but it seems fine so NAB
danieldoglas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM, just one pending question. @roryabraham do you wanna check this one out too?
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.2.29-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.29-5 🚀
|
Explanation of Change
Fixed Issues
$ #70824
Proposal
Initial effort to reduce test console errors and improve development workflow, with a batching approach for future cleanup.
Background
Our test suite currently produces 8,559 console errors across 186 test files, mostly React act() warnings. While all tests pass, the cluttered output makes it hard to identify legitimate issues during development.
Problem
When developers run tests to validate their changes, the overwhelming volume of console errors (8,559 errors) obscures real issues, which prevents us from quickly identifying legitimate bugs and reduces developer confidence in our testing feedback.
Solution
Wrap Onyx operations in act() calls.
Fix navigation initialization warnings.
Improve async handling in tests.
These changes reduce errors from 8,559 → ~3,167 (63% reduction). We intentionally stop here to avoid excessive mocking that could weaken test reliability.
Next Steps
We propose a batch-audit approach where related test files are grouped and fixed together. This keeps PRs small enough to review, but avoids overwhelming maintainers with too many submissions.
We can provide a list of affected files, and contributors can pick up batches to continue the cleanup. This way, the community can collaborate on reducing noise without creating unnecessary review overhead.
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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