-
-
Notifications
You must be signed in to change notification settings - Fork 596
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
ci: Fix flaky tests due to open server connection #1670
Conversation
Thanks for opening this pull request!
|
Codecov ReportBase: 99.89% // Head: 99.89% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## alpha #1670 +/- ##
=======================================
Coverage 99.89% 99.89%
=======================================
Files 61 61
Lines 5977 5977
Branches 1369 1369
=======================================
Hits 5971 5971
Misses 6 6 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
Glad this is fixed, can we merge?
@mtrezza This can be merged |
@mtrezza I also noticed that the Node 14 build takes 17 minutes because of the mongodb-runner being installed globally. Should we move it to the devDependencies to increase the speed. |
I guess we can move it; do you know what this is only affecting Node 14? |
I have no idea, the server tests work just fine for Node 14. |
It could be this: Parse-SDK-JS/.github/workflows/ci.yml Lines 37 to 39 in bea817e
But this has been added because otherwise some dependencies won't download at all. |
Is this ready for merge? |
@mtrezza this is ready to merge once the 17 minute CI passes. I'll play around with the CI for node 14 to see if I can find a better fix |
The 17min CI passed, I'll go ahead and merge |
🎉 This change has been released in version 4.0.0-alpha.7 |
🎉 This change has been released in version 4.0.1-beta.1 |
🎉 This change has been released in version 4.0.1 |
New Pull Request Checklist
Issue Description
Sometimes the job status is returned as
running
when it should befailed
. The status is returned too quickly before the job failed.I've taken initial steps to find the fix for this. Once a test finishes there shouldn't be any open connections to the server. If there are then we log them in the CI and fix the as we go. Hopefully we can find which test is leaking.
I removed the beforeAll from
ParseDistTest
as I only recommend using only one beforeAll in the test suite (one already exists inhelper.js
). I ensured the headless browser closes and doesn't leave any connections to the server.Approach
Refactor Cloud Code Jobs to wait for the job status to change.
TODOs before merging