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

Make validator-exec work for different node types #2145

Merged
merged 11 commits into from
Dec 11, 2019

Conversation

tkporter
Copy link
Contributor

@tkporter tkporter commented Dec 10, 2019

Description

Changes the name of the celotool cmd validator-exec to vm-exec, and extends the command to work on any node type (bootnode/tx-node/validator/proxy)

Tested

Ran some cmds on every node in baklavastaging

Other changes

n/a

Related issues

n/a

Backwards compatibility

Apart from the old command not existing anymore, yes

Copy link
Contributor

@timmoreton timmoreton left a comment

Choose a reason for hiding this comment

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

👍

const instanceNames = []
if (argv.only === null) {
const nodeCount = getNodeCount(argv.nodeType)
console.log(`Node Count: ${nodeCount}`)
Copy link
Contributor

Choose a reason for hiding this comment

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

lint doesn't like console.log

instanceNames.push(instanceName)
}
} else {
console.log(`Only Index: ${argv.only}`)
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@timmoreton timmoreton assigned tkporter and unassigned timmoreton Dec 10, 2019
@codecov
Copy link

codecov bot commented Dec 10, 2019

Codecov Report

Merging #2145 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #2145    +/-   ##
========================================
  Coverage   74.77%   74.77%            
========================================
  Files         280      280            
  Lines        7826     7826            
  Branches      690      974   +284     
========================================
  Hits         5852     5852            
  Misses       1858     1858            
  Partials      116      116
Flag Coverage Δ
#mobile 74.77% <ø> (ø) ⬆️

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 c7a8417...d64fa71. Read the comment docs.

@tkporter tkporter added the automerge Have PR merge automatically when checks pass label Dec 10, 2019
@celo-ci-bot-user celo-ci-bot-user merged commit 208c79d into master Dec 11, 2019
@celo-ci-bot-user celo-ci-bot-user deleted the trevor/vm-exec-cmd branch December 11, 2019 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Have PR merge automatically when checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants