You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flaky Tests Invalid server state: initialized #9149
🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.
So initialized is the state after calling the ParseServer constructor. As soon as you call start() on the instance, the state changes to starting. From what you describe it looks like start() has not been called at all, because starting is set synchronously after calling start(). So it may be related to the reconfigureServer logic; that promise may return early, rather than the server init itself. Which would be good, because that means it's only a testing issue, not a server issue.
@mtrezza Looks like the server shutsdown and restarts randomly after a few hundred tests. If we turn off the randomized tests we should find a pattern.
Activity
parse-github-assistant commentedon Jun 7, 2024
Thanks for opening this issue!
mtrezza commentedon Jun 11, 2024
So
initializedis the state after calling theParseServerconstructor. As soon as you callstart()on the instance, the state changes tostarting. From what you describe it looks likestart()has not been called at all, becausestartingis set synchronously after callingstart(). So it may be related to thereconfigureServerlogic; that promise may return early, rather than the server init itself. Which would be good, because that means it's only a testing issue, not a server issue.mtrezza commentedon Jun 28, 2024
Closing via parse-community/Parse-SDK-JS#2183
mtrezza commentedon Jun 28, 2024
Re-opened, I think we first need to upgrade the Parse JS SDK in Parse Server to see whether the Parse Server CI shows less flakiness.
dplewis commentedon Jun 28, 2024
I agree, I still don’t know why this is happening. I would like to think I solved it on the JS SDK
mtrezza commentedon Jun 30, 2024
Issue still occurs in recent PRs; I have never seen this before; is this a recently introduced issue?
dplewis commentedon Jul 7, 2024
@mtrezza Looks like the server shutsdown and restarts randomly after a few hundred tests. If we turn off the randomized tests we should find a pattern.
mtrezza commentedon Jul 7, 2024
Okay, if you want to open a PR to temporarily disable random tests I'll go ahead and merge
parseplatformorg commentedon Jul 9, 2024
🎉 This change has been released in version 7.2.0-beta.1
parseplatformorg commentedon Jul 9, 2024
🎉 This change has been released in version 7.2.0