-
-
Notifications
You must be signed in to change notification settings - Fork 888
Fix: Unexpected failing of vitest in PR workflows (Urgent) #3601
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
Fix: Unexpected failing of vitest in PR workflows (Urgent) #3601
Conversation
WalkthroughThe pull request adjusts a unit test in the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🔇 Additional comments (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Our Pull Request Approval ProcessThanks for contributing! Testing Your CodeRemember, your PRs won't be reviewed until these criteria are met:
Our policies make our code better. ReviewersDo not assign reviewers. Our Queue Monitors will review your PR and assign them.
Reviewing Your CodeYour reviewer(s) will have the following roles:
CONTRIBUTING.mdRead our CONTRIBUTING.md file. Most importantly:
Other
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop-postgres #3601 +/- ##
====================================================
+ Coverage 85.75% 85.76% +0.01%
====================================================
Files 358 358
Lines 9030 9030
Branches 1933 1933
====================================================
+ Hits 7744 7745 +1
Misses 924 924
+ Partials 362 361 -1 ☔ View full report in Codecov by Sentry. |
There isn’t an issue assigned to you for this PR. Please follow the guidelines in our PR_GUIDELINES.md file. We have the procedures in place so that everyone has a fair chance of contributing. I will be closing this pull request. Please follow the procedures and resubmit when ready. |
I apologize for that, I just did it to help others with failing PR's. |
@palisadoes PR is updated and ready for review. |
2ae1b19
into
PalisadoesFoundation:develop-postgres
Why did reducing the timeout fix the issue? |
Sir timeout of 10000 ms is exactly equal to maximum allowed limit in vitest config, sometimes if fail sometime it does not based on server latency. A timeout of 2500 is enough for even heavier frontend components to render and providing sufficient time (7500ms) for tests to execute. I tried before too that this problem doesn't come in future if you remember in my codeRefactoring v1 PR, I increased vitest time from default (5000ms) to 10000ms as at that time I encountered same problem but in even greater number of tests , I calculated 10000ms will be enough for 1600 tests with maximum 25 test cases per file to execute which gives enough room for testers to write good tests but I have no idea why this test writer used 10000ms timeout directly to render a simple component. |
Closes issue #3600
Change Implemented
Summary by CodeRabbit