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

cmd: write deposit datas to disk #2395

Merged
merged 5 commits into from
Jul 5, 2023
Merged

Conversation

xenowits
Copy link
Contributor

@xenowits xenowits commented Jul 4, 2023

Write deposit data file for new validators created in add-validators-solo command to each node directory. The new deposit files are named as deposit-data-20230704173152.json.

Also deletes logic for backing up cluster manifests.

category: feature
ticket: #2379

@xenowits xenowits self-assigned this Jul 4, 2023
@codecov
Copy link

codecov bot commented Jul 4, 2023

Codecov Report

Patch coverage: 57.14% and project coverage change: -0.07 ⚠️

Comparison is base (268107c) 53.42% compared to head (89939de) 53.35%.

❗ Current head 89939de differs from pull request most recent head c398949. Consider uploading reports for the commit c398949 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2395      +/-   ##
==========================================
- Coverage   53.42%   53.35%   -0.07%     
==========================================
  Files         196      196              
  Lines       26254    26282      +28     
==========================================
- Hits        14025    14024       -1     
- Misses      10490    10520      +30     
+ Partials     1739     1738       -1     
Impacted Files Coverage Δ
cmd/addvalidators.go 52.08% <57.14%> (+0.45%) ⬆️

... and 9 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

cmd/addvalidators.go Outdated Show resolved Hide resolved
return err
}

filename := fmt.Sprintf("deposit-data-%s.pb", currTime) // Ex: "cluster-manifest-backup-20060102150405.pb"
Copy link
Contributor

Choose a reason for hiding this comment

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

we need to log that this is the new deposit datas that was created

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, we do log this:

17:56:16.246 DEBG cmd        Saved deposit data file to disk          {"deposit_data": "deposit-data-20230704175616.json"}

Logs:
Screenshot 2023-07-04 at 17 57 46

Node directory:
Screenshot 2023-07-04 at 17 57 58

cmd/addvalidators.go Show resolved Hide resolved
cmd/addvalidators.go Outdated Show resolved Hide resolved
@xenowits xenowits force-pushed the xenowits/create-deposit-datas branch from 905bd83 to 89939de Compare July 5, 2023 13:53
@xenowits xenowits added the merge when ready Indicates bulldozer bot may merge when all checks pass label Jul 5, 2023
@obol-bulldozer obol-bulldozer bot merged commit 0dc1160 into main Jul 5, 2023
10 checks passed
@obol-bulldozer obol-bulldozer bot deleted the xenowits/create-deposit-datas branch July 5, 2023 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants