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: add create dkg command #484

Merged
merged 1 commit into from
May 5, 2022
Merged

cmd: add create dkg command #484

merged 1 commit into from
May 5, 2022

Conversation

corverroos
Copy link
Contributor

Adds the charon create dkg command that generates a cluster definition file.

category: feature
ticket: #442

@codecov
Copy link

codecov bot commented May 5, 2022

Codecov Report

Merging #484 (f733eaf) into main (7d60094) will decrease coverage by 0.47%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #484      +/-   ##
==========================================
- Coverage   56.29%   55.82%   -0.48%     
==========================================
  Files          82       84       +2     
  Lines        7446     7504      +58     
==========================================
- Hits         4192     4189       -3     
- Misses       2678     2737      +59     
- Partials      576      578       +2     
Impacted Files Coverage Δ
cmd/cmd.go 75.64% <0.00%> (-3.03%) ⬇️
cmd/create.go 0.00% <0.00%> (ø)
cmd/createdkg.go 0.00% <0.00%> (ø)
app/app.go 63.31% <0.00%> (-0.89%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d60094...f733eaf. Read the comment docs.

@@ -48,6 +48,9 @@ func New() *cobra.Command {
newBootnodeCmd(RunBootnode),
newCreateClusterCmd(runCreateCluster),
newDKGCmd(dkg.Run),
newCreateCmd(
newCreateDKGCmd(runCreateDKG),
Copy link
Contributor

Choose a reason for hiding this comment

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

charon create dkg just doesn't feel right to me

Copy link
Contributor

@xenowits xenowits May 5, 2022

Choose a reason for hiding this comment

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

i mean you can do a dkg (distributed key gen) but creating a dkg doesn't make sense to me

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I pushed for:

  • charon define dkg -> cluster_definition.json
  • charon seal -> cluster_lock.json
  • charon run

Or for local cluster flow:

  • charon define local
  • charon seal
  • charon run

But this this was rejected for:

  • charon create dkg -> cluster_definition.json
  • charon dkg -> cluster_lock.json
  • charon run

Copy link
Contributor

Choose a reason for hiding this comment

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

is building a cluster_definition even part of a dkg?

Copy link
Contributor

Choose a reason for hiding this comment

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

it's an input to a dkg, if i'm not wrong

Copy link
Contributor

Choose a reason for hiding this comment

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

or we can do something like:
charon create dkg-cluster
or
charon create dkg-config

Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps this should have been discussed as part of the ticket grooming. I don't think we should stop the merge of this because we do not agree on the command name. Let's create an issue and discuss it there the definete command name

Base automatically changed from corver/frostwire to main May 5, 2022 10:52
@xenowits xenowits self-requested a review May 5, 2022 10:54
Copy link
Contributor

@xenowits xenowits left a comment

Choose a reason for hiding this comment

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

Naming to be discussed later. Approving this for now!

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label May 5, 2022
@obol-bulldozer obol-bulldozer bot merged commit 7feacba into main May 5, 2022
@obol-bulldozer obol-bulldozer bot deleted the corver/createdkg branch May 5, 2022 10:57
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

4 participants