Skip to content

Put the federation tests under their own section be able to filter (MSC2716)#249

Merged
MadLittleMods merged 3 commits into
masterfrom
madlittlemods/federation-tests-under-their-own-section
Dec 17, 2021
Merged

Put the federation tests under their own section be able to filter (MSC2716)#249
MadLittleMods merged 3 commits into
masterfrom
madlittlemods/federation-tests-under-their-own-section

Conversation

@MadLittleMods

@MadLittleMods MadLittleMods commented Dec 2, 2021

Copy link
Copy Markdown
Contributor

Put all federation tests under a Federation section.

To avoid conflicts, I made this as a follow-up to #248 so the diff from that PR is within this one as well. The extra new commit on this PR just indents the tests.

  --- FAIL: TestImportHistoricalMessages (22.74s)
      --- FAIL: TestImportHistoricalMessages/parallel (8.01s)
          --- SKIP: TestImportHistoricalMessages/parallel/TODO:_Trying_to_send_insertion_event_with_same_`next_batch_id`_will_reject (0.00s)
          --- SKIP: TestImportHistoricalMessages/parallel/TODO:_What_happens_when_you_point_multiple_batches_at_the_same_insertion_event? (0.00s)
+         --- PASS: TestImportHistoricalMessages/parallel/Federation (0.00s)
+             --- PASS: TestImportHistoricalMessages/parallel/Federation/Historical_messages_are_visible_when_joining_on_federated_server_-_auto-generated_base_insertion_event (5.07s)
+             --- PASS: TestImportHistoricalMessages/parallel/Federation/Historical_messages_are_visible_when_joining_on_federated_server_-_pre-made_insertion_event (6.26s)
+             --- PASS: TestImportHistoricalMessages/parallel/Federation/Historical_messages_are_visible_when_already_joined_on_federated_server (6.37s)
+             --- PASS: TestImportHistoricalMessages/parallel/Federation/When_messages_have_already_been_scrolled_back_through,_new_historical_messages_are_visible_in_next_scroll_back_on_federated_server (7.02s)
          --- FAIL: TestImportHistoricalMessages/parallel/Existing_room_versions (0.00s)
              --- FAIL: TestImportHistoricalMessages/parallel/Existing_room_versions/Not_allowed_to_redact_MSC2716_insertion,_batch,_marker_events (0.82s)
              --- FAIL: TestImportHistoricalMessages/parallel/Existing_room_versions/Room_creator_can_send_MSC2716_events (0.99s)
          --- FAIL: TestImportHistoricalMessages/parallel/Unrecognised_prev_event_ID_will_throw_an_error (1.51s)
          --- PASS: TestImportHistoricalMessages/parallel/Duplicate_next_batch_id_on_insertion_event_will_be_rejected (2.28s)
          --- PASS: TestImportHistoricalMessages/parallel/Normal_users_aren't_allowed_to_batch_send_historical_messages (2.43s)
          --- PASS: TestImportHistoricalMessages/parallel/Unrecognised_batch_id_will_throw_an_error (2.45s)
          --- PASS: TestImportHistoricalMessages/parallel/Batch_send_endpoint_only_returns_state_events_that_we_passed_in_via_state_events_at_start (3.09s)
          --- PASS: TestImportHistoricalMessages/parallel/Should_be_able_to_send_a_batch_without_any_state_events_at_start_-_user_already_joined_in_the_current_room_state (3.37s)
          --- PASS: TestImportHistoricalMessages/parallel/Should_be_able_to_batch_send_historical_messages_into_private_room (4.05s)
          --- PASS: TestImportHistoricalMessages/parallel/Historical_events_from_multiple_users_in_the_same_batch (4.07s)
          --- PASS: TestImportHistoricalMessages/parallel/Historical_events_resolve_in_the_correct_order (4.85s)
          --- PASS: TestImportHistoricalMessages/parallel/Historical_events_from_batch_send_do_not_come_down_in_an_incremental_sync (4.85s)
          --- PASS: TestImportHistoricalMessages/parallel/should_resolve_member_state_events_for_historical_events (4.93s)
  FAIL
  FAIL    github.com/matrix-org/complement/tests  23.409s
  FAIL

Part of MSC2716: matrix-org/matrix-spec-proposals#2716

The marker event is important to let the remote homeservers
know there are historical messages at the given insertion
event it points to.

It's just a lucky happen-stance that the tests passed before
without the need for the marker event.

Marker events are required/expected in order for the history
to be properly visible on remote homservers.
@MadLittleMods
MadLittleMods changed the base branch from madlittlemods/move-federation-tests-under-a-section to master December 2, 2021 00:17
@MadLittleMods
MadLittleMods requested a review from kegsay December 2, 2021 00:20
…-own-section

Conflicts:
	tests/msc2716_test.go
@MadLittleMods
MadLittleMods merged commit 5742fdd into master Dec 17, 2021
@MadLittleMods

Copy link
Copy Markdown
Contributor Author

Thanks for the review @kegsay 🐆

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