-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
ci: Fix flaky LiveQuery tests #9694
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
Conversation
🚀 Thanks for opening this pull request! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## alpha #9694 +/- ##
==========================================
+ Coverage 93.15% 93.17% +0.01%
==========================================
Files 187 187
Lines 15066 15066
==========================================
+ Hits 14035 14037 +2
+ Misses 1031 1029 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🎉 This change has been released in version 8.1.1-alpha.1 |
🎉 This change has been released in version 8.2.0 |
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe changes enhance the live query server shutdown tests by adding assertions to verify the number of active connections before and after the shutdown process. The tests now explicitly check that connections exist after subscribing and that all are closed following shutdown. Additionally, the implementation replaces direct use of Changes
Sequence Diagram(s)sequenceDiagram
participant Test
participant LiveQueryServer
Test->>LiveQueryServer: Subscribe to live query
LiveQueryServer-->>Test: Confirm subscription
Test->>LiveQueryServer: Get connection count (should be > 0)
LiveQueryServer-->>Test: Return active connection count
Test->>LiveQueryServer: Initiate shutdown
LiveQueryServer-->>Test: Shutdown initiated
Test->>LiveQueryServer: Wait (sleep)
Test->>LiveQueryServer: Get connection count (should be 0)
LiveQueryServer-->>Test: Return connection count (0)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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
CodeRabbit Configuration File (
|
Pull Request
Issue
This live query server isn't shut down properly. If this issue continues then it must be the subscriptions not closing.
https://github.com/parse-community/parse-server/actions/runs/14230874758/job/39881107431?pr=9693
Summary by CodeRabbit