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

feat: New curp conflict pool #675

Merged
merged 2 commits into from
Apr 3, 2024

Conversation

bsbds
Copy link
Collaborator

@bsbds bsbds commented Mar 5, 2024

Please briefly answer these questions:

  • what problem are you trying to solve? (or if there's no problem, what's the motivation for this change?)

    First PR of refactor: enable new sp/ucp implementation #668.

    Implements new speculative pool and uncommitted pool in curp.

  • what changes does this pull request make?

  • are there any non-obvious implications of these changes? (does it break compatibility with previous versions, etc)

@bsbds bsbds force-pushed the curp-conflict-pool-new branch 2 times, most recently from bca6be2 to 51753e3 Compare March 6, 2024 01:19
@bsbds bsbds marked this pull request as ready for review March 6, 2024 01:26
Copy link
Collaborator

@Phoenix500526 Phoenix500526 left a comment

Choose a reason for hiding this comment

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

Please add some test cases for this new sp and ucp.

@bsbds bsbds force-pushed the curp-conflict-pool-new branch from 7065fbd to 2fea605 Compare March 18, 2024 01:21
crates/curp/src/server/conflict/tests.rs Show resolved Hide resolved
crates/curp/src/server/conflict/tests.rs Outdated Show resolved Hide resolved
crates/curp/src/server/conflict/tests.rs Outdated Show resolved Hide resolved
@xline-kv xline-kv deleted a comment from codecov bot Mar 21, 2024
Copy link

codecov bot commented Mar 21, 2024

Codecov Report

Attention: Patch coverage is 83.41121% with 71 lines in your changes are missing coverage. Please review.

Project coverage is 75.62%. Comparing base (e9008c0) to head (e65467d).
Report is 1 commits behind head on master.

Files Patch % Lines
...rates/curp/src/server/conflict/uncommitted_pool.rs 69.81% 31 Missing and 1 partial ⚠️
crates/curp/src/server/conflict/tests.rs 84.57% 27 Missing and 4 partials ⚠️
crates/curp/src/server/conflict/mod.rs 89.18% 4 Missing ⚠️
crates/curp/src/server/conflict/spec_pool_new.rs 94.66% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #675      +/-   ##
==========================================
+ Coverage   75.45%   75.62%   +0.17%     
==========================================
  Files         176      180       +4     
  Lines       26515    26938     +423     
  Branches    26515    26938     +423     
==========================================
+ Hits        20006    20371     +365     
- Misses       5297     5346      +49     
- Partials     1212     1221       +9     

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

crates/curp-external-api/src/conflict.rs Outdated Show resolved Hide resolved
crates/curp-external-api/src/conflict.rs Outdated Show resolved Hide resolved
crates/curp-external-api/src/conflict.rs Outdated Show resolved Hide resolved
Phoenix500526
Phoenix500526 previously approved these changes Mar 27, 2024
Copy link
Collaborator

@Phoenix500526 Phoenix500526 left a comment

Choose a reason for hiding this comment

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

LGTM. Please squash these commits.

@bsbds bsbds force-pushed the curp-conflict-pool-new branch from a13ebad to c028750 Compare April 2, 2024 01:55
@Phoenix500526 Phoenix500526 merged commit e35b35a into xline-kv:master Apr 3, 2024
14 checks passed
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