Skip to content

Conversation

squahtx
Copy link
Contributor

@squahtx squahtx commented Oct 5, 2022

Synapse can take a while to persist 100 outliers. Instead of doing one big wait for the last outlier to be persisted, do some smaller waits for intermediate outliers and a small wait for the last outlier.

ie. as long as the homeserver under test is making progress, we are happy to continue waiting.

Fixes matrix-org/synapse#13777.

Synapse can take a while to persist 100 outliers. Instead of doing one
big wait for the last outlier to be persisted, do some smaller waits
for intermediate outliers and a small wait for the last outlier.

ie. as long as the homeserver under test is making progress, we are
happy to continue waiting.
@squahtx squahtx requested review from a team as code owners October 5, 2022 14:16
Copy link
Contributor

@DMRobertson DMRobertson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks---let's get it in.

@squahtx squahtx merged commit 9cbfa08 into main Oct 6, 2022
@squahtx squahtx deleted the squah/faster_room_joins_fix_events_arriving_before_prev_events_test_flake branch October 6, 2022 12:15
@squahtx
Copy link
Contributor Author

squahtx commented Oct 6, 2022

Thanks for the review!

squahtx pushed a commit that referenced this pull request Feb 9, 2023
We previously attempted to deflake this test in #490 by waiting longer
for the 100 outlier events to be persisted. This turned out to be
insufficient, as calculating the full state for all 100 events can also
take a while and delay the room's appearance in /sync.

Raise the timeout for waiting for the room to appear in /sync from 5
seconds to 20 seconds. Going off the logs of the failing test runs, it
takes 6 to 10 seconds for the room to appear in /sync.
squahtx added a commit that referenced this pull request Feb 9, 2023
…ain (#602)

We previously attempted to deflake this test in #490 by waiting longer
for the 100 outlier events to be persisted. This turned out to be
insufficient, as calculating the full state for all 100 events can also
take a while and delay the room's appearance in /sync.

Raise the timeout for waiting for the room to appear in /sync from 5
seconds to 20 seconds. Going off the logs of the failing test runs, it
takes 6 to 10 seconds for the room to appear in /sync.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Complement TestPartialStateJoin/Resync_completes_even_when_events_arrive_before_their_prev_events is flaky
2 participants