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

fix: tests in v0.7 branch #954

Merged
merged 19 commits into from
Aug 26, 2024
Merged

Conversation

bsbds
Copy link
Collaborator

@bsbds bsbds commented Aug 15, 2024

Depends-On: #951

This PR fixes various bugs in the new refactor, please refer to commit messages in each commit for more details.

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?)

  • what changes does this pull request make?

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

@mergify mergify bot requested a review from a team August 15, 2024 04:02
@bsbds bsbds force-pushed the fix-tests branch 2 times, most recently from 39dc0fa to 713fefe Compare August 15, 2024 06:50
Copy link

codecov bot commented Aug 15, 2024

Codecov Report

Attention: Patch coverage is 70.15504% with 77 lines in your changes missing coverage. Please review.

Please upload report for BASE (refactor-v0.7.0-new@5c87755). Learn more about missing BASE report.

Files Patch % Lines
crates/xline/src/server/auth_server.rs 10.52% 16 Missing and 1 partial ⚠️
crates/xline/src/storage/lease_store/mod.rs 74.62% 0 Missing and 17 partials ⚠️
crates/curp/src/client/tests.rs 82.53% 8 Missing and 3 partials ⚠️
crates/benchmark/src/runner.rs 0.00% 8 Missing ⚠️
crates/xline/src/server/lock_server.rs 0.00% 6 Missing ⚠️
crates/xline/src/storage/kv_store.rs 80.64% 2 Missing and 4 partials ⚠️
crates/curp/src/client/retry.rs 82.60% 0 Missing and 4 partials ⚠️
crates/xline/src/server/lease_server.rs 0.00% 2 Missing and 2 partials ⚠️
crates/xline/src/server/maintenance.rs 0.00% 0 Missing and 2 partials ⚠️
crates/xline/src/server/command.rs 95.00% 0 Missing and 1 partial ⚠️
... and 1 more
Additional details and impacted files
@@                  Coverage Diff                   @@
##             refactor-v0.7.0-new     #954   +/-   ##
======================================================
  Coverage                       ?   75.51%           
======================================================
  Files                          ?      190           
  Lines                          ?    29291           
  Branches                       ?    29291           
======================================================
  Hits                           ?    22120           
  Misses                         ?     5847           
  Partials                       ?     1324           

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

Copy link

mergify bot commented Aug 16, 2024

@bsbds Your PR is in conflict and cannot be merged.

Copy link

mergify bot commented Aug 19, 2024

@bsbds Your PR is in conflict and cannot be merged.

@liangyuanpeng
Copy link
Contributor

liangyuanpeng commented Aug 19, 2024

Hi @bsbds , Just wondering if the E2E kube tests are causing any trouble? Would it help to upload the current xline data to github artifacts? (I will do it in PR #745) (just want to pushing #745 forward.)

@bsbds
Copy link
Collaborator Author

bsbds commented Aug 23, 2024

Hi @bsbds , Just wondering if the E2E kube tests are causing any trouble? Would it help to upload the current xline data to github artifacts? (I will do it in PR #745) (just want to pushing #745 forward.)

The E2E failure is caused by a Xline bug that could potentially override the current revision. It has been fixed in #955.

bsbds added 15 commits August 23, 2024 15:03
Signed-off-by: bsbds <[email protected]>
Signed-off-by: bsbds <[email protected]>

fix: compaction in madsim

Run the compaction task synchronously in madsim, please refer to
`compact_bg_task` for the madsim compaction code

Signed-off-by: bsbds <[email protected]>

fix: not waiting for client id in madsim tests

Signed-off-by: bsbds <[email protected]>

fix: set leader in simulation xline group

Signed-off-by: bsbds <[email protected]>
Prevents updating the state early before speculative execution

Signed-off-by: bsbds <[email protected]>
Only increments revision number when there's key deleted

Signed-off-by: bsbds <[email protected]>
This check is not necessary, the urls are allowed to be empty before
publish

Signed-off-by: bsbds <[email protected]>
Because client id may change during retry, the propose id generation must be called for each retry

Signed-off-by: bsbds <[email protected]>
Copy link

mergify bot commented Aug 23, 2024

⚠️ The sha of the head commit of this PR conflicts with #955. Mergify cannot evaluate rules on this PR. ⚠️

bsbds added 2 commits August 23, 2024 16:20
It seems sync wait on a event listener will potentialy cause a deadlock,
we will address this in the future.

Signed-off-by: bsbds <[email protected]>
@mergify mergify bot requested a review from a team August 26, 2024 02:16
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

@mergify mergify bot requested a review from a team August 26, 2024 03:28
@Phoenix500526 Phoenix500526 merged commit 2553eec into xline-kv:refactor-v0.7.0-new Aug 26, 2024
16 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