Skip to content

TestMessagesOverFederation can get stuck in a loop for 3600 seconds #886

Description

@gamesguru

If the homeserver logic around timeline is not correct, it's possible Complement will get stuck in a loop (which only times out after 1 hour, 3600 seconds).

The logs will just get stuck in a loop repeating these 3 lines very rapidly. It should probably fail if this repeats more than expected or a more modest time window (2-10 minutes) is exceeded for any of these tests.

{"Time":"2026-07-02T07:18:09.34230005-04:00","Action":"output","Package":"github.com/matrix-org/complement/tests/csapi","Test":"TestMessagesOverFederation","Output":"    client.go:860: [CSAPI] PUT hs1/_matrix/client/v3/rooms/!EKdofWaUaQjBQHr6m2TUiGOE8wfk50N9eMLbHv1_iNU/send/m.room.message/2 =\u003e 200 OK (4.941876ms)\n"}
{"Time":"2026-07-02T07:18:09.342345949-04:00","Action":"output","Package":"github.com/matrix-org/complement/tests/csapi","Test":"TestMessagesOverFederation/Visible_shared_history_after_joining_new_room_(backfill)/`messagesRequestLimit`_is_lower_than_the_number_of_messages_backfilled_(assumed)","Output":"    room_messages_test.go:410: SendEventSynced waiting for event ID $B1UnAkgEA3CPtIvEuHPg2jFBx1gEcis4875qzTgwkb0\n"}
{"Time":"2026-07-02T07:18:09.350403038-04:00","Action":"output","Package":"github.com/matrix-org/complement/tests/csapi","Test":"TestMessagesOverFederation","Output":"    client.go:860: [CSAPI] GET hs1/_matrix/client/v3/sync =\u003e 200 OK (7.961124ms)\n"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions