Track Down Unhandled rejections#5502
Track Down Unhandled rejections#5502acinader wants to merge 2 commits intoparse-community:masterfrom
Conversation
|
So here's what I think is going on.... The jasmine upgrade from 3.2 - 3.3 introduces this change: This is a good thing that will help us prepare for: @stage88 figured out a solution for one set of failing tests with 0eff786 I am now struggling with this test: parse-server/spec/index.spec.js Lines 60 to 83 in 019cf0a Which is failing with this uncaught rejection:
I'm having trouble figuring out where this uncaught rejection is occuring.... |
|
#5500 (comment) Check out my comment |
Codecov Report
@@ Coverage Diff @@
## master #5502 +/- ##
==========================================
- Coverage 94.04% 93.99% -0.05%
==========================================
Files 125 125
Lines 9097 9097
==========================================
- Hits 8555 8551 -4
- Misses 542 546 +4
Continue to review full report at Codecov.
|
|
failing node 11: |
|
I should be able to have another look at this test tonight (Sydney, AU - time). Sorry if i understood it incorrectly, I think that error I can update the test instead to try |
|
No worries :) I'll have another go at that test tonight. |
|
@acinader check out this commit stage88@f131f26 All tests are passing, except |
|
Nice. Much improved. There are a handful of tests failing: https://travis-ci.org/parse-community/parse-server/jobs/520004000 fails with:
https://travis-ci.org/parse-community/parse-server/jobs/520004001 fails with:
https://travis-ci.org/parse-community/parse-server/jobs/520004002 fails with:
More broadly, our tests are pretty flakey:
I attempted to get some conversation going on the topic here: https://community.parseplatform.org/t/async-aftersave-notification-on-completion/65 On the tests for my professional projects, I have gotten rid of all the Its rudimentrary for now, but it allows my cloud code to run without blocking clients. I am not sure what 'un observed' async code is running in all the places we use And while I am dreaming, I think that one of the biggest services we could do to the parse commun would be to help make testing easy and well understood for the users of parse, so a blog post or two about how we ended making the tests faster and more reliable.... |
|
Ah I see, there are are more :) happy to help when I can. With the commit I referenced above, I am really not across everything in Parse, I feel uneasy making changes knowing it could negatively impact a lot of Parse users. I would love to spend some more time reviewing that code myself, or maybe get a bit of guidance from maintainers. Also I agree, there is work that could be done on improving tests, I think many of these chores could be opened up to community, seeking help through "help wanted", etc |
|
Closing via #5573 |

fixes: #5500 see #5496, #5488
Add @stage88 0eff786 to fix for spied on
MongoStorageAdapter.connect()failinglet's see what else fails.