-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Ensure pushStatus is properly running #7213
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7213 +/- ##
==========================================
+ Coverage 94.00% 94.02% +0.01%
==========================================
Files 172 172
Lines 12868 12869 +1
==========================================
+ Hits 12097 12100 +3
+ Misses 771 769 -2
Continue to review full report at Codecov.
|
How does it go from |
Sorry looking at it again. As @davimacedo said in #7196 there is an error that occurs when updating a status that was just created. So maybe both 2 and 3 are still pending and never got set to running. |
The conclusion in #7196 (comment) was that the test design caused the flakiness. In this PR it seems that the server code has been changed, that's why I'm wondering. |
@@ -79,19 +79,6 @@ describe('PushController', () => { | |||
done(); | |||
}); | |||
|
|||
it('can throw on validateDeviceType when single invalid device type is set', done => { |
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.
Thats whats interesting nobody would notice in this in production. If the state went from pending -> succeeded. This PR fixes a potential server bug and a flaky test. |
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.
Coolio!
I'm adding this fail to the list "Parse.GeoPoint testing creating geo point exception two fields". |
* Ensure pushStatus is properly running * remove duplicate test
* new: allow options to be async on Cloud Validator * Update CHANGELOG.md * Ensure pushStatus is properly running (#7213) * Ensure pushStatus is properly running * remove duplicate test * new: allow options to be async on Cloud Validator * Update CHANGELOG.md * Update CloudCode.Validator.spec.js Co-authored-by: Diamond Lewis <findlewis@gmail.com>
🎉 This change has been released in version 5.0.0-beta.1 |
🎉 This change has been released in version 5.0.0 |
New Pull Request Checklist
Issue Description
This fixes a flaky test.
This issue is the status of a push doesn't get updated properly. Here are the push status.
The test fails because the status in step 2 never gets updated to
running
and as a result step 3 is never set torunning
.Approach
Ensure status is set to running if you are keeping track of pushes sent, failed etc. I don't know if there is a bigger issue here because it looks like the same is happening to the Job status flaky tests. This is fixing a potential server bug.
TODOs before merging