Skip to content

Conversation

@DiogoSantoss
Copy link
Contributor

Add zipped flag to charon dkg command to create a gzip tarball file of the output files of DKG.
It will compress/archive the contents of dataDir into a file named dkg.tar.gz and delete the original files.

category: feature
ticket: none

@codecov
Copy link

codecov bot commented Aug 12, 2025

Codecov Report

❌ Patch coverage is 52.87958% with 90 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.12%. Comparing base (ac983d5) to head (21f3241).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
app/utils.go 54.59% 58 Missing and 26 partials ⚠️
dkg/dkg.go 0.00% 3 Missing and 1 partial ⚠️
cmd/createcluster.go 0.00% 1 Missing ⚠️
cmd/dkg.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             main    #3903    +/-   ##
========================================
  Coverage   55.12%   55.12%            
========================================
  Files         225      225            
  Lines       36696    36832   +136     
========================================
+ Hits        20229    20304    +75     
- Misses      14344    14390    +46     
- Partials     2123     2138    +15     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@pinebit pinebit left a comment

Choose a reason for hiding this comment

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

Make sure this is documented in the public docs.

bindEth1Flag(cmd.Flags(), &config.ExecutionEngineAddr)

cmd.Flags().DurationVar(&config.Timeout, "timeout", 1*time.Minute, "Timeout for the DKG process, should be increased if DKG times out.")
cmd.Flags().BoolVar(&config.Zipped, "zipped", false, "Create a tar archive compressed with gzip of the target directory after creation.")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider adding the same flag to add-validators. It has the same dkg semantic.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do in a separate PR

@DiogoSantoss DiogoSantoss self-assigned this Aug 13, 2025
@sonarqubecloud
Copy link

@DiogoSantoss DiogoSantoss added the merge when ready Indicates bulldozer bot may merge when all checks pass label Aug 13, 2025
@obol-bulldozer obol-bulldozer bot merged commit 3e4170b into main Aug 13, 2025
12 checks passed
@obol-bulldozer obol-bulldozer bot deleted the diogo/add-zipped-to-dkg branch August 13, 2025 09:48
DiogoSantoss added a commit that referenced this pull request Aug 13, 2025
Add `zipped` flag to `charon dkg` command to create a gzip tarball file of the output files of DKG.
It will compress/archive the contents of `dataDir` into a file named `dkg.tar.gz` and delete the original files.

category: feature
ticket: none
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.

4 participants