An Attempt to Fix the WS Tests with Intermittent Race Condition#1309
Open
genematx wants to merge 11 commits intobluesky:mainfrom
Open
An Attempt to Fix the WS Tests with Intermittent Race Condition#1309genematx wants to merge 11 commits intobluesky:mainfrom
genematx wants to merge 11 commits intobluesky:mainfrom
Conversation
Member
|
We can see from the CI results that this does not yet solve the problem, but it does seem to address a real issue. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an attempt to fix intermittent Timeout errors seen on CI/CD when running WebSockets-related tests, e.g. this.
It is likely that there exists a race condition between when the Redis client subscribes to new updates and receives replayed history. If during the replay, but before the subscription has started, any new updates are received, they would be missed.
Additionally, a check on the server has been added to ensure that the update is not duplicated when sending them to the client.
Client-side, the
start_in_threadmethod now blocks until the connection is established.It is not clear if this is the root cause of the problem with CI tests, but the behavior can be observed when running the following script:
Related: #1274
Checklist