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

ledger-tool: save new snapshots to --snapshot-archive-path #24883

Merged
merged 1 commit into from
May 2, 2022

Conversation

diman-io
Copy link
Contributor

@diman-io diman-io commented May 2, 2022

Problem

Ledger-tool doesn't save new snapshots to --snapshot-archive-path #24875

Summary of Changes

Fixed behavior when choosing an output-dir for create-snapshot command.
If output-dir is not specified in args then it will be --snapshot-archive-path if present, otherwise --ledger. Before this fix, --snapshot-archive-path was not checked.

Fixes #24875

@mergify mergify bot added the community Community contribution label May 2, 2022
@mergify mergify bot requested a review from a team May 2, 2022 08:35
@diman-io diman-io marked this pull request as ready for review May 2, 2022 08:39
@KirillLykov
Copy link
Contributor

KirillLykov commented May 2, 2022

Thanks for fixing this. I guess it would be nice to have cli test at least for this case.

@codecov
Copy link

codecov bot commented May 2, 2022

Codecov Report

Merging #24883 (60e737c) into master (8ba003a) will increase coverage by 0.1%.
The diff coverage is 88.4%.

@@            Coverage Diff            @@
##           master   #24883     +/-   ##
=========================================
+ Coverage    81.8%    82.0%   +0.1%     
=========================================
  Files         632      597     -35     
  Lines      167499   165701   -1798     
  Branches      322        0    -322     
=========================================
- Hits       137169   135990   -1179     
+ Misses      30217    29711    -506     
+ Partials      113        0    -113     

Copy link
Contributor

@CriesofCarrots CriesofCarrots left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks for fixing this @diman-io!
I agree that tests in this crate would be nice. But since there isn't a solana-ledger-tool testing framework yet, let's address that post-merge @KirillLykov .

@CriesofCarrots CriesofCarrots merged commit 8846aa1 into solana-labs:master May 2, 2022
mergify bot pushed a commit that referenced this pull request May 2, 2022
mergify bot pushed a commit that referenced this pull request May 2, 2022
mergify bot added a commit that referenced this pull request May 2, 2022
…24896)

(cherry picked from commit 8846aa1)

Co-authored-by: DimAn <diman@diman.io>
mergify bot added a commit that referenced this pull request May 2, 2022
…24895)

(cherry picked from commit 8846aa1)

Co-authored-by: DimAn <diman@diman.io>
@KirillLykov
Copy link
Contributor

Looks good to me. Thanks for fixing this @diman-io! I agree that tests in this crate would be nice. But since there isn't a solana-ledger-tool testing framework yet, let's address that post-merge @KirillLykov .

I've created an issue for that #24927

jeffwashington pushed a commit to jeffwashington/solana that referenced this pull request Jun 29, 2022
@diman-io diman-io deleted the issue-24875 branch May 13, 2023 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ledger-tool doesn't save new snapshots to --snapshot-archive-path
3 participants