-
Notifications
You must be signed in to change notification settings - Fork 5
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
Tests can flake if we send a message before Olm sessions are established (I think) #41
Comments
This is due to your change in the memory store in rust SDK. It causes a delay when claiming OTKs. I tried to improve this by inverting the client creation order in #33 but it isn't enough. If you don't use latest main then this will likely be okay for you. |
Confirmed that these tests pass if I revert matrix-org/matrix-rust-sdk#3221 Side note: I was worried that I wasted time by breaking those PRs into small chunks, but I am very grateful now. |
Returning an empty |
There is a possibility that the culprit is the fact the implementation that stores the tracked users is buggy. It's using a If you load the tracked users, there's no guarantee which one we will use to check if the member actually is dirty. |
Yeah I spotted the bug in the impl and have a fix for it, but unfortunately it doesn't fix the problem... continuing to investigate. |
Bug fix is here: matrix-org/matrix-rust-sdk#3282 |
I was seeing some tests failing on my local machine today, even though the CI is green. I have begun tracking down the cause, so am writing my thoughts and theories here, most of which are probably wrong.
I was getting this pattern of failures for
TestRoomKeyIsCycledAfterEnoughMessages
:So we failed when we sent the message from Rust.
I saw messages like this:
(Notice the
FailedToDecrypt:true
.)When I add a 1-second pause after
WithAliceAndBobSyncing
the tests pass, so this makes me think that the message is being sent before the Olm session is established, or something similar.When I add the pause before
WithAliceAndBobSyncing
(after (MustJoinRoom
) the tests still fail.This may be a real bug in the Rust SDK, or may be a test thing. Investigating.
The text was updated successfully, but these errors were encountered: