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 flaky user directory test #591

Merged
merged 1 commit into from
Jan 27, 2023
Merged

Fix flaky user directory test #591

merged 1 commit into from
Jan 27, 2023

Conversation

H-Shay
Copy link
Contributor

@H-Shay H-Shay commented Jan 26, 2023

Hopefully fixes matrix-org/synapse#14902. In the test, there are two directory lookups, one for a user rod and one for a user todd. When I wrote the test, my assumption was that if rod was showing up in the user directory then todd would show up as well, so I did not retry the lookup for todd. It seems now that I was wrong. I added a retry to todd's lookup, and ran the test ~15 times locally. Not only did it not fail, but I saw several runs where todd's lookup was retried - which in the previous iteration would have been a failure - so I suspect this was the problem.

Copy link
Contributor

@squahtx squahtx left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for fixing the flake!

@H-Shay H-Shay merged commit c8f49b4 into main Jan 27, 2023
@H-Shay H-Shay deleted the shay/fix_flake branch January 27, 2023 00:01
@H-Shay
Copy link
Contributor Author

H-Shay commented Jan 27, 2023

Merged, thanks!

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.

Complement User_directory_is_correctly_updated_once_state_re-sync_completes is flakey
2 participants