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

Element-R: wait for OlmMachine on startup #3487

Merged
merged 3 commits into from
Jun 20, 2023

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jun 19, 2023

Previously, if you called CryptoApi.getUserDeviceInfo() before the first /sync request happened, it would return an empty list, which made a bunch of the tests racy. Add a hack to get the OlmMachine to think about its device lists during startup.


This change is marked as an internal change (Task), so will not be included in the changelog.

Previously, if you called `CryptoApi.getUserDeviceInfo()` before the first
`/sync` request happened, it would return an empty list, which made a bunch of
the tests racy. Add a hack to get the OlmMachine to think about its device
lists during startup.
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

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

Please re-request review when the tests are passing

@richvdh richvdh requested a review from t3chguy June 19, 2023 15:40
@richvdh
Copy link
Member Author

richvdh commented Jun 19, 2023

I think github flaked out. It was a very weird failure.

Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

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

This seems like it should have a test for the edge case you outlined in the description

Previously, if you called CryptoApi.getUserDeviceInfo() before the first /sync request happened, it would return an empty list, which made a bunch of the tests racy. Add a hack to get the OlmMachine to think about its device lists during startup.

@richvdh
Copy link
Member Author

richvdh commented Jun 19, 2023

your wish is my command

richvdh added a commit that referenced this pull request Jun 20, 2023
A couple of tests were waiting for a request that wasn't happening, so timing
out after 1.5 seconds. Let's avoid the extra slowth.

(This was introduced by changes in
#3487, but the changes in this
PR do no harm anyway)
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

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

:shipit: thanks for the test

@richvdh richvdh added this pull request to the merge queue Jun 20, 2023
Merged via the queue into develop with commit 9c6d5a6 Jun 20, 2023
24 checks passed
@richvdh richvdh deleted the rav/element-r/21_fetch_devices_on_startup branch June 20, 2023 09:42
github-merge-queue bot pushed a commit that referenced this pull request Jun 22, 2023
A couple of tests were waiting for a request that wasn't happening, so timing
out after 1.5 seconds. Let's avoid the extra slowth.

(This was introduced by changes in
#3487, but the changes in this
PR do no harm anyway)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants