-
Notifications
You must be signed in to change notification settings - Fork 52
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
Wait for received events using /sync in faster room joins tests #441
Wait for received events using /sync in faster room joins tests #441
Conversation
@richvdh Is this expected behaviour? |
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.
LGTM - though @richvdh is probably better qualified to review this.
It's expected that outliers don't come down |
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.
lgtm!
getSyncToken := func(t *testing.T, alice *client.CSAPI) string { | ||
_, syncToken := alice.MustSync(t, | ||
client.SyncReq{ | ||
Filter: buildLazyLoadingSyncFilter(nil), |
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.
I think you probably don't need a Filter
?
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.
Won't that make the function block if we decide to use it midway through a partial join?
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.
yes, but I didn't think this was used in the middle of a partial-state join?
(indeed, I thought initialsyncs in the middle of partial-state joins blocked irrespective of the lazy-loading flag. I'm probably wrong though)
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.
It isn't currently used in the middle of a partial-state join, but I would like to keep the option open.
lazy-loading initial syncs don't (or no longer?) block during a partial-state join, otherwise one of the new lazy-loading tests in #442 would be getting stuck.
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.
all makes sense, thanks!
These broke during the merge of #441.
matrix-org/synapse#13477 unblocks lazy-loading
/sync
s while a room has partial state, which allows us to wait forreceived events using
/sync
."Resync completes even when events arrive before their prev_events" is
now the only test that waits for events using
/event
, since theoutliers do not appear in the
/sync
timeline.