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

go/cmd/registry: simplify register runtime command #3903

Merged
merged 2 commits into from
Apr 29, 2021

Conversation

ptrus
Copy link
Member

@ptrus ptrus commented Apr 29, 2021

Closes: #3626

Update gen_register runtime command to accept runtime descriptor instead of messing with the arguments.

TODO:

  • update deploying a runtime docs

@ptrus ptrus force-pushed the ptrus/feature/cmd-runtime-simplify branch from 48f2705 to da67edf Compare April 29, 2021 09:47
@@ -0,0 +1,8 @@
go/cmd/registry: simplify register runtime command
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this is internal, but rather a "feature" (or even breaking, but we'll want to backport this).

Copy link
Member

Choose a reason for hiding this comment

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

I think this should be classified as breaking.

docs/setup/deploying-a-runtime.md Outdated Show resolved Hide resolved
@ptrus ptrus force-pushed the ptrus/feature/cmd-runtime-simplify branch 4 times, most recently from d746700 to 6adf3d2 Compare April 29, 2021 13:45
@ptrus ptrus marked this pull request as ready for review April 29, 2021 14:20
@codecov
Copy link

codecov bot commented Apr 29, 2021

Codecov Report

Merging #3903 (6adf3d2) into master (c1eae4f) will increase coverage by 0.12%.
The diff coverage is 56.25%.

❗ Current head 6adf3d2 differs from pull request most recent head 03a7032. Consider uploading reports for the commit 03a7032 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3903      +/-   ##
==========================================
+ Coverage   67.14%   67.26%   +0.12%     
==========================================
  Files         404      404              
  Lines       41449    41178     -271     
==========================================
- Hits        27829    27698     -131     
+ Misses       9665     9562     -103     
+ Partials     3955     3918      -37     
Impacted Files Coverage Δ
go/oasis-node/cmd/registry/runtime/runtime.go 54.43% <56.25%> (-7.29%) ⬇️
go/worker/common/committee/runtime_host.go 63.39% <0.00%> (-6.25%) ⬇️
go/common/cbor/codec.go 76.47% <0.00%> (-5.89%) ⬇️
go/consensus/api/submission.go 67.10% <0.00%> (-5.27%) ⬇️
go/common/node/node.go 62.20% <0.00%> (-3.94%) ⬇️
go/consensus/tendermint/apps/staking/state/gas.go 81.13% <0.00%> (-3.78%) ⬇️
go/registry/api/runtime.go 40.36% <0.00%> (-3.62%) ⬇️
go/consensus/tendermint/apps/beacon/state/state.go 65.07% <0.00%> (-3.18%) ⬇️
go/runtime/host/protocol/connection.go 61.78% <0.00%> (-2.44%) ⬇️
go/storage/client/client.go 73.00% <0.00%> (-0.89%) ⬇️
... and 28 more

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 55f2484...03a7032. Read the comment docs.

descriptor, which should simplify generating runtime registration
transactions.
The `registy runtime init_genesis` command is removed as runtime
descriptors in genesis are not singed since `v21.x` making the command
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
descriptors in genesis are not singed since `v21.x` making the command
descriptors in genesis are not singed since version 21.0+ making the command

@ptrus ptrus force-pushed the ptrus/feature/cmd-runtime-simplify branch from 6adf3d2 to d655883 Compare April 29, 2021 15:42
Update gen_register runtime command to accept runtime descriptor path
instead of messing with the arguments.
@ptrus ptrus force-pushed the ptrus/feature/cmd-runtime-simplify branch from d655883 to 03a7032 Compare April 29, 2021 15:44
@ptrus ptrus enabled auto-merge April 29, 2021 15:44
@ptrus ptrus merged commit 05402d8 into master Apr 29, 2021
@ptrus ptrus deleted the ptrus/feature/cmd-runtime-simplify branch April 29, 2021 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cli: Add support for new runtime entity whitelist admission policy format
3 participants