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

integration test: sync longer in test_room_preview before considering it stable #3504

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

bnjbvr
Copy link
Member

@bnjbvr bnjbvr commented Jun 4, 2024

It turns out that the failure came when using the known room path in the room preview: Alice knows about the room, but for some reason the client didn't retrieve all the state events from the sliding sync proxy yet.

Before, the sync would be considered stable after 2 seconds. This is too little, considering that events come from the proxy that listens to events from synapse. Raising this threshold to 15 seconds should help getting all the room information from the proxy, and thus get all the information we expected in the client.

Fixes #3483.

It turns out that the failure came when using the known room path in the
room preview: Alice knows about the room, but for some reason the client
didn't retrieve all the state events from the sliding sync proxy yet.

Before, the sync would be considered stable after 2 seconds. This is too
little, considering that events come from the proxy that listens to
events from synapse. Raising this threshold to 15 seconds should help
getting all the room information from the proxy, and thus get all the
information we expected in the client.
@bnjbvr bnjbvr requested a review from a team as a code owner June 4, 2024 11:41
@bnjbvr bnjbvr requested review from andybalaam and removed request for a team June 4, 2024 11:41
@bnjbvr bnjbvr changed the title integration test: raise the sync time before considering it as stable integration test: sync longer in test_room_preview before considering it stable Jun 4, 2024
Copy link

codecov bot commented Jun 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.73%. Comparing base (bffcb26) to head (1796651).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3504   +/-   ##
=======================================
  Coverage   83.72%   83.73%           
=======================================
  Files         255      255           
  Lines       25778    25778           
=======================================
+ Hits        21583    21584    +1     
+ Misses       4195     4194    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andybalaam
Copy link
Member

Fixes #3499.

Wrong issue number?

Copy link
Member

@andybalaam andybalaam left a comment

Choose a reason for hiding this comment

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

Looks reasonable, thanks.

@bnjbvr bnjbvr merged commit 5d549f1 into main Jun 4, 2024
38 checks passed
@bnjbvr bnjbvr deleted the bnjbvr/fix-intermittent-room-preview branch June 4, 2024 12:57
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.

ci: test_room_preview intermittently fails
2 participants