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

added partial #49

Merged
merged 19 commits into from
Oct 9, 2024
Merged

added partial #49

merged 19 commits into from
Oct 9, 2024

Conversation

pigmej
Copy link
Member

@pigmej pigmej commented Sep 27, 2024

When testing set the QS_BASE_URL to http://quicksync-testnet-downloads.spacemesh.network/quicksync-poc for now

Copy link

codecov bot commented Sep 27, 2024

Codecov Report

Attention: Patch coverage is 84.61538% with 14 lines in your changes missing coverage. Please review.

Project coverage is 54.07%. Comparing base (c6a70c6) to head (44d1cd9).
Report is 22 commits behind head on main.

Files with missing lines Patch % Lines
src/partial_quicksync.rs 84.61% 14 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main      #49       +/-   ##
===========================================
+ Coverage   41.20%   54.07%   +12.86%     
===========================================
  Files          10       11        +1     
  Lines         216      307       +91     
===========================================
+ Hits           89      166       +77     
- Misses        127      141       +14     

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

Copy link
Collaborator

@poszu poszu left a comment

Choose a reason for hiding this comment

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

Generally LGTM, but it would be nice to have some tests 🥲

src/main.rs Outdated Show resolved Hide resolved
src/main.rs Outdated Show resolved Hide resolved
src/partial_quicksync.rs Outdated Show resolved Hide resolved
src/partial_quicksync.rs Show resolved Hide resolved
src/partial_quicksync.rs Outdated Show resolved Hide resolved
src/partial_quicksync.rs Outdated Show resolved Hide resolved
src/partial_quicksync.rs Outdated Show resolved Hide resolved
src/partial_quicksync.rs Outdated Show resolved Hide resolved
src/partial_quicksync.rs Outdated Show resolved Hide resolved
src/partial_quicksync.rs Outdated Show resolved Hide resolved
pigmej and others added 2 commits September 27, 2024 17:21
Simplified partial_restore.

Co-authored-by: Bartosz Różański <[email protected]>
@brusherru
Copy link
Member

It's working well for me!
Just one comment regarding UX:
Would be cool to have a counter of restoring points, e.g.

Found 72 potential restore points
[1/72] Downloading from http://quicksync-testnet-downloads.spacemesh.network/quicksync-poc/23/126208_126232_12a0/state.sql_diff.126208_126232.sql.zst
[1/72] Downloading from http://quicksync-testnet-downloads.spacemesh.network/quicksync-poc/23/126208_126232_12a0/state.sql_diff.126208_126232.sql
[1/72] Restoring from 126208 to 126232...
[1/72] Restored 126208 to 126232 in 27.931827375s
[2/72] Downloading from http://quicksync-testnet-downloads.spacemesh.network/quicksync-poc/23/126232_126244_e137/state.sql_diff.126232_126244.sql.zst
[2/72] Downloading from http://quicksync-testnet-downloads.spacemesh.network/quicksync-poc/23/126232_126244_e137/state.sql_diff.126232_126244.sql
...

Copy link
Collaborator

@poszu poszu left a comment

Choose a reason for hiding this comment

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

Requesting changes to fix the potential panic. Other things are nice-to-haves :)

src/partial_quicksync.rs Outdated Show resolved Hide resolved
src/partial_quicksync.rs Outdated Show resolved Hide resolved
src/partial_quicksync.rs Outdated Show resolved Hide resolved
src/partial_quicksync.rs Outdated Show resolved Hide resolved
src/partial_quicksync.rs Outdated Show resolved Hide resolved
src/partial_quicksync.rs Show resolved Hide resolved
@poszu poszu self-requested a review October 2, 2024 10:37
@@ -56,12 +56,23 @@ Listed below are the exit codes and what they mean:
- `7` - Invalid checksum of archive.
- `8` - Cannot validate archive checksum.


# Partial quicksync
Copy link
Collaborator

Choose a reason for hiding this comment

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

Btw, how about naming it incremental?

Copy link
Member Author

Choose a reason for hiding this comment

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

No big preference. I used "partial" because the existing one is "full".

src/main.rs Outdated Show resolved Hide resolved
Co-authored-by: Bartosz Różański <[email protected]>
@pigmej pigmej merged commit 6b66b32 into main Oct 9, 2024
17 checks passed
@pigmej pigmej deleted the partial branch October 9, 2024 09:48
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