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

Add test for shared history visibility over federation #716

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kegsay
Copy link
Member

@kegsay kegsay commented Mar 5, 2024

Currently fails on Synapse.

// - Bob leaves the room.
// - Alice sends a message.
// - Bob joins the room.
// - The next sync response should include a timeline which ends with [BOB_LEAVE, ALICE_MSG, BOB_JOIN].
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be perfectly valid to return just BOB_JOIN here, which I thought we did

t.Logf("timeline => %v", timeline.Raw)
timelineArray := timeline.Array()
must.NotEqual(t, len(timelineArray), 0, "no timeline for room "+roomID)
must.Equal(t, len(timelineArray) >= 3, true, "need at least 3 timeline events for the room")
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't print the number of events there are, which makes seeing how Synapse is failing hard

Copy link
Member Author

Choose a reason for hiding this comment

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

The raw timeline is logged on :289 which seems to be nothing:

2024-03-05T17:36:31.3391923Z     client.go:631: [CSAPI] GET hs2/_matrix/client/v3/sync => 200 OK (21.832274ms)
2024-03-05T17:36:31.3392485Z     federation_room_send_test.go:289: timeline => 
2024-03-05T17:36:31.3393366Z     federation_room_send_test.go:291: �[31mNotEqual no timeline for room !mmzAHLfjZSvFNZKCgv:hs1: got '0', want '0'�[39m
2024-03-05T17:36:31.3394808Z     federation_room_send_test.go:292: �[31mEqual need at least 3 timeline events for the room: got 'false' want 'true'�[39m

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