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

crypto: Add a standalone integration test for the NSE race #3343

Merged
merged 3 commits into from
May 13, 2024

Conversation

andybalaam
Copy link
Member

@andybalaam andybalaam commented Apr 19, 2024

Adds a test that fails before #3338 and passes afterwards.

Tests the fix for #3110

The test sets up a cross-process lock and 2 clients using it, then makes sure they both have Olm sessions with a 3rd client, before sending from one of them and checking that the other can still receive. This validates that it flushed and replaced its Olm session with the 3rd client.

@andybalaam andybalaam marked this pull request as ready for review April 19, 2024 10:05
@andybalaam andybalaam requested a review from a team as a code owner April 19, 2024 10:05
@andybalaam andybalaam requested review from Hywan and removed request for a team and Hywan April 19, 2024 10:05
@andybalaam
Copy link
Member Author

Undrafted to get integration test

Copy link

codecov bot commented Apr 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.08%. Comparing base (d5df584) to head (06825c6).
Report is 33 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3343      +/-   ##
==========================================
- Coverage   83.18%   83.08%   -0.10%     
==========================================
  Files         243      243              
  Lines       25211    24985     -226     
==========================================
- Hits        20971    20759     -212     
+ Misses       4240     4226      -14     

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

@andybalaam andybalaam force-pushed the andybalaam/test-store-cache-drop branch 5 times, most recently from 1c9be17 to 5042f75 Compare April 19, 2024 12:25
@bnjbvr bnjbvr changed the title wip Andy's pinkie promise to add a standalone integration test for #3338 Apr 19, 2024
@andybalaam andybalaam force-pushed the andybalaam/test-store-cache-drop branch 8 times, most recently from efc18f6 to 38225a8 Compare April 24, 2024 14:43
@Hywan
Copy link
Member

Hywan commented Apr 25, 2024

Do you need help?

@andybalaam
Copy link
Member Author

Do you need help?

Thank you, no I think I'm nearly there - Rich and I made a breakthough yesterday.

@andybalaam andybalaam force-pushed the andybalaam/test-store-cache-drop branch 5 times, most recently from 492bf2b to d32be87 Compare April 26, 2024 14:19
@Hywan Hywan self-assigned this Apr 29, 2024
@andybalaam andybalaam force-pushed the andybalaam/test-store-cache-drop branch from d32be87 to 6d78f83 Compare April 29, 2024 09:47
@andybalaam andybalaam force-pushed the andybalaam/test-store-cache-drop branch 6 times, most recently from 60d10d6 to c68fa01 Compare May 1, 2024 09:49
@bnjbvr bnjbvr changed the title Andy's pinkie promise to add a standalone integration test for #3338 crypto: Andy's pinkie promise to add a standalone integration test for #3338 May 2, 2024
@andybalaam andybalaam force-pushed the andybalaam/test-store-cache-drop branch from c68fa01 to b355470 Compare May 10, 2024 16:21
@andybalaam andybalaam changed the title crypto: Andy's pinkie promise to add a standalone integration test for #3338 crypto: Add a standalone integration test for #3338 May 10, 2024
@andybalaam andybalaam force-pushed the andybalaam/test-store-cache-drop branch from b355470 to af35ac0 Compare May 10, 2024 16:24
@andybalaam andybalaam force-pushed the andybalaam/test-store-cache-drop branch from af35ac0 to a78d788 Compare May 10, 2024 16:32
@andybalaam andybalaam changed the title crypto: Add a standalone integration test for #3338 crypto: Add a standalone integration test for the NSE race May 10, 2024
@andybalaam andybalaam requested a review from Hywan May 10, 2024 16:33
@andybalaam
Copy link
Member Author

Requesting review from @Hywan since he was initially chosen.

This is (finally) ready for a first look from you, thanks!

@bnjbvr
Copy link
Member

bnjbvr commented May 13, 2024

@andybalaam the integration test doesn't compile on CI, can you take a look please? thanks!

Copy link
Member

@bnjbvr bnjbvr left a comment

Choose a reason for hiding this comment

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

(small driveby, sorry)

@andybalaam andybalaam force-pushed the andybalaam/test-store-cache-drop branch from a78d788 to 6c6a33c Compare May 13, 2024 11:17
@andybalaam andybalaam enabled auto-merge May 13, 2024 11:17
Adds a test for #3110
that fails before the fix and passes afterwards.
@andybalaam andybalaam force-pushed the andybalaam/test-store-cache-drop branch from 6c6a33c to 06825c6 Compare May 13, 2024 12:55
@andybalaam andybalaam merged commit 4b1d03f into main May 13, 2024
35 checks passed
@andybalaam andybalaam deleted the andybalaam/test-store-cache-drop branch May 13, 2024 13:09
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.

3 participants