Skip to content
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

Faster room joins: Add edge case tests for outgoing device list updates #474

Merged
merged 11 commits into from
Sep 29, 2022

Conversation

squahtx
Copy link
Contributor

@squahtx squahtx commented Sep 23, 2022

Test that outgoing device list updates reach servers incorrectly thought
to not be in a partial state room once the room transitions to full
state.


Built on top of #473.
Best reviewed commit by commit.

@squahtx squahtx requested review from a team as code owners September 23, 2022 18:08
@squahtx
Copy link
Contributor Author

squahtx commented Sep 23, 2022

We expect these tests to fail until matrix-org/synapse#13891 is ready.

Copy link
Member

@erikjohnston erikjohnston left a comment

Choose a reason for hiding this comment

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

The logic for some of these tests are quite confusing, but I don't have any suggestions on how to make it better :(


// setupIncorrectlyAcceptedKick joins the homeserver under test to a room, then joins
// @elsie:server2 and sends an invalid event to kick @elsie:server2 from the room.
setupIncorrectlyAcceptedKick := func(
Copy link
Member

Choose a reason for hiding this comment

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

We should probably comment that this causes derek to leave the room?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea, let's do that.

Base automatically changed from squah/faster_room_joins_device_list_tracking_outgoing_1 to main September 29, 2022 12:51
@squahtx squahtx merged commit 0e88861 into main Sep 29, 2022
@squahtx squahtx deleted the squah/faster_room_joins_device_list_tracking_outgoing_2 branch September 29, 2022 13:11
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.

2 participants