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

Fix flakiness due to create_room_synced #702

Merged
merged 1 commit into from
Sep 12, 2019
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Sep 11, 2019

When we create a room, it's possible for a subsequent /sync to receive subset of
the intial events in that room. This was making some tests [1] flaky when
running in worker mode.

AFAICT there's nothing in the spec which forbids this behaviour. By way of a
workaround, we send a test message in the new room and wait for it to turn up
over /sync.

However, a corollary is that we can't rely on the /sync to contain all the
events in the room. Solution to that is to sync again in tests that actually
care about the sync body.

[1]: notably 'A message sent after an initial sync appears in the timeline of
an incremental sync.'

When we create a room, it's possible for a subsequent /sync to receive subset of
the intial events in that room. This was making some tests [1] flaky when
running in worker mode.

AFAICT there's nothing in the spec which forbids this behaviour. By way of a
workaround, we send a test message in the new room and wait for it to turn up
over /sync.

However, a corollary is that we can't rely on the /sync to contain all the
events in the room. Solution to that is to sync again in tests that actually
care about the sync body.

[1]: notably 'A message sent after an initial sync appears in the timeline of
an incremental sync.'
@richvdh richvdh requested a review from a team September 11, 2019 20:46
@richvdh richvdh merged commit abec934 into develop Sep 12, 2019
@richvdh richvdh deleted the rav/create_room_synced branch October 4, 2019 11:13
anoadragon453 added a commit that referenced this pull request Mar 18, 2020
…ase-v1.4.0

* origin/release-v1.4.0: (36 commits)
  Improve logging for a failing test (#709)
  Make 3PID binding tests use /account/3pid/bind ala MSC2290 (#703)
  Use unstable prefix for 3PID unbind API
  Add support for handling email validation challenges (#707)
  do requestToken before adding a 3pid (#706)
  Configure synapse to use the test mail server (#705)
  Implement a mail server to help with 3pid testing (#704)
  federated_rooms_fixture (#701)
  Use Sytest develop for Dendrite's master branch (#700)
  Don't assume atomicity
  Fix flakiness due to create_room_synced (#702)
  Don't require an avatar_url
  Replace HOMESERVER_INFO incantations (#699)
  add some logging for flaky sync test (#698)
  Fix problems when using hash
  Accept access_token instead of id_access_token on the IS, accept Authorization header (#697)
  Use hash and handle variable sized final chunk
  Have the in-built identity server support v2 (#689)
  Add tests for 3PID /unbind API (#691)
  Fix typo
  ...
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