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

testutil/compose: implement v0 define command #569

Merged
merged 5 commits into from
May 20, 2022
Merged

Conversation

corverroos
Copy link
Contributor

Implements the first iteration of the compose define command. It just uses default configuration for now and outputs the compose.yml file. Adding webui can be done later.

category: feature
ticket: #568

@codecov
Copy link

codecov bot commented May 20, 2022

Codecov Report

Merging #569 (c838e89) into main (88ae354) will increase coverage by 0.05%.
The diff coverage is 61.40%.

@@            Coverage Diff             @@
##             main     #569      +/-   ##
==========================================
+ Coverage   54.42%   54.48%   +0.05%     
==========================================
  Files          90       92       +2     
  Lines        8577     8634      +57     
==========================================
+ Hits         4668     4704      +36     
- Misses       3267     3283      +16     
- Partials      642      647       +5     
Impacted Files Coverage Δ
testutil/compose/define.go 55.10% <55.10%> (ø)
testutil/compose/config.go 100.00% <100.00%> (ø)
app/app.go 59.89% <0.00%> (-0.82%) ⬇️
core/qbft/qbft.go 82.57% <0.00%> (+0.87%) ⬆️

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 88ae354...c838e89. Read the comment docs.

type vcType string

const (
vcMock vcType = "mock"
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: can remove vc prefix since it's already part of the type

Suggested change
vcMock vcType = "mock"
mock vcType = "mock"

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 prefer to use common prefixes for enum

func newDefineCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "define",
Short: "Define a cluster; including both keygen and running definitions",
Copy link
Contributor

Choose a reason for hiding this comment

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

nit:

Suggested change
Short: "Define a cluster; including both keygen and running definitions",
Short: "Define a cluster, including both generating keys and running definitions",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is keygen definition, not actual key generation

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