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

refactor: move commit-producing APIs to ConversationGuard [WPB-15587] #924

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

coriolinus
Copy link
Contributor

What's new in this PR


PR Submission Checklist for internal contributors
  • The PR Title
    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@coriolinus coriolinus force-pushed the prgn/feat/15577-conversation-methods-prelim branch from ae01748 to b8b370d Compare February 20, 2025 15:20
Base automatically changed from prgn/feat/15577-conversation-methods-prelim to main February 20, 2025 15:20
Copy link

github-actions bot commented Feb 20, 2025

🐰 Bencher Report

Branchprgn/refactor/15587-commit-producing-apis
Testbedubuntu-latest
Click to view all benchmark results
BenchmarkLatencymilliseconds (ms)
Commit add f(group size)/cs1/mem/1002📈 view plot
🚷 view threshold
19.70
Commit add f(group size)/cs1/mem/2📈 view plot
🚷 view threshold
7.14
Commit add f(group size)/cs1/mem/202📈 view plot
🚷 view threshold
9.67
Commit add f(group size)/cs1/mem/402📈 view plot
🚷 view threshold
12.24
Commit add f(group size)/cs1/mem/602📈 view plot
🚷 view threshold
15.34
Commit add f(group size)/cs1/mem/802📈 view plot
🚷 view threshold
17.42
Commit add f(number clients)/cs1/mem/1002📈 view plot
🚷 view threshold
994.94
Commit add f(number clients)/cs1/mem/2📈 view plot
🚷 view threshold
7.19
Commit add f(number clients)/cs1/mem/202📈 view plot
🚷 view threshold
86.18
Commit add f(number clients)/cs1/mem/402📈 view plot
🚷 view threshold
223.09
Commit add f(number clients)/cs1/mem/602📈 view plot
🚷 view threshold
430.97
Commit add f(number clients)/cs1/mem/802📈 view plot
🚷 view threshold
683.48
Commit pending proposals f(group size)/cs1/mem/1002📈 view plot
🚷 view threshold
117.85
Commit pending proposals f(group size)/cs1/mem/2📈 view plot
🚷 view threshold
28.63
Commit pending proposals f(group size)/cs1/mem/202📈 view plot
🚷 view threshold
46.32
Commit pending proposals f(group size)/cs1/mem/402📈 view plot
🚷 view threshold
61.47
Commit pending proposals f(group size)/cs1/mem/602📈 view plot
🚷 view threshold
80.49
Commit pending proposals f(group size)/cs1/mem/802📈 view plot
🚷 view threshold
95.56
Commit pending proposals f(pending size)/cs1/mem/1📈 view plot
🚷 view threshold
19.33
Commit pending proposals f(pending size)/cs1/mem/101📈 view plot
🚷 view threshold
116.24
Commit pending proposals f(pending size)/cs1/mem/21📈 view plot
🚷 view threshold
36.35
Commit pending proposals f(pending size)/cs1/mem/41📈 view plot
🚷 view threshold
58.44
Commit pending proposals f(pending size)/cs1/mem/61📈 view plot
🚷 view threshold
77.10
Commit pending proposals f(pending size)/cs1/mem/81📈 view plot
🚷 view threshold
96.16
Commit remove f(group size)/cs1/mem/1002📈 view plot
🚷 view threshold
27.96
Commit remove f(group size)/cs1/mem/2📈 view plot
🚷 view threshold
7.00
Commit remove f(group size)/cs1/mem/202📈 view plot
🚷 view threshold
9.51
Commit remove f(group size)/cs1/mem/402📈 view plot
🚷 view threshold
12.39
Commit remove f(group size)/cs1/mem/602📈 view plot
🚷 view threshold
18.31
Commit remove f(group size)/cs1/mem/802📈 view plot
🚷 view threshold
21.99
Commit remove f(number clients)/cs1/mem/1002📈 view plot
🚷 view threshold
30.97
Commit remove f(number clients)/cs1/mem/2📈 view plot
🚷 view threshold
138.57
Commit remove f(number clients)/cs1/mem/202📈 view plot
🚷 view threshold
116.00
Commit remove f(number clients)/cs1/mem/402📈 view plot
🚷 view threshold
94.75
Commit remove f(number clients)/cs1/mem/602📈 view plot
🚷 view threshold
73.69
Commit remove f(number clients)/cs1/mem/802📈 view plot
🚷 view threshold
51.41
Commit update f(group size)/cs1/mem/1002📈 view plot
🚷 view threshold
138.71
Commit update f(group size)/cs1/mem/2📈 view plot
🚷 view threshold
7.12
Commit update f(group size)/cs1/mem/202📈 view plot
🚷 view threshold
34.01
Commit update f(group size)/cs1/mem/402📈 view plot
🚷 view threshold
60.11
Commit update f(group size)/cs1/mem/602📈 view plot
🚷 view threshold
87.52
Commit update f(group size)/cs1/mem/802📈 view plot
🚷 view threshold
112.77
🐰 View full continuous benchmarking report in Bencher

@coriolinus coriolinus force-pushed the prgn/refactor/15587-commit-producing-apis branch from 7df9b4c to bc02b5a Compare February 20, 2025 16:12
@coriolinus coriolinus force-pushed the prgn/refactor/15587-commit-producing-apis branch from bc02b5a to 56dbf7f Compare February 20, 2025 16:22
@codecov-commenter
Copy link

codecov-commenter commented Feb 20, 2025

Codecov Report

Attention: Patch coverage is 96.16477% with 27 lines in your changes missing coverage. Please review.

Project coverage is 78.94%. Comparing base (b8b370d) to head (07176dc).

Files with missing lines Patch % Lines
crypto-ffi/src/generic/context/mod.rs 0.00% 25 Missing ⚠️
crypto-ffi/src/generic/mod.rs 0.00% 1 Missing ⚠️
.../src/mls/conversation/conversation_guard/commit.rs 98.92% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #924      +/-   ##
==========================================
+ Coverage   78.13%   78.94%   +0.81%     
==========================================
  Files         112      113       +1     
  Lines       20280    20720     +440     
==========================================
+ Hits        15845    16358     +513     
+ Misses       4435     4362      -73     
Files with missing lines Coverage Δ
crypto/src/e2e_identity/rotate.rs 92.16% <100.00%> (+0.13%) ⬆️
crypto/src/mls/buffer_external_commit.rs 98.32% <100.00%> (+0.07%) ⬆️
crypto/src/mls/conversation/buffer_messages.rs 98.41% <100.00%> (+0.04%) ⬆️
crypto/src/mls/conversation/commit.rs 88.06% <100.00%> (+4.33%) ⬆️
crypto/src/mls/conversation/commit_delay.rs 96.35% <100.00%> (+0.09%) ⬆️
...pto/src/mls/conversation/conversation_guard/mod.rs 87.80% <100.00%> (ø)
crypto/src/mls/conversation/decrypt.rs 79.52% <100.00%> (+1.93%) ⬆️
crypto/src/mls/conversation/duplicate.rs 95.54% <100.00%> (+0.51%) ⬆️
...rypto/src/mls/conversation/leaf_node_validation.rs 95.08% <100.00%> (+0.25%) ⬆️
crypto/src/mls/conversation/merge.rs 84.66% <100.00%> (+0.55%) ⬆️
... and 12 more

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b8b370d...07176dc. Read the comment docs.

@coriolinus coriolinus force-pushed the prgn/refactor/15587-commit-producing-apis branch 3 times, most recently from 090cc0d to e57904f Compare February 21, 2025 09:16
@coriolinus coriolinus force-pushed the prgn/refactor/15587-commit-producing-apis branch from e57904f to 1b41d2b Compare February 21, 2025 09:21
We're going to have a bunch of methods on `ConversationGuard` eventually,
so we may as well set them up in a new file to establish a pattern now.
@coriolinus coriolinus marked this pull request as ready for review February 21, 2025 10:20
@coriolinus coriolinus requested a review from a team as a code owner February 21, 2025 10:20
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