-
Notifications
You must be signed in to change notification settings - Fork 767
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
Publish substrate-cli-test-utils
to crates.io
#1742
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait. This crate only contains two macros, do we really need to publish this? You can just copy these macros.
I don't see any reason to not publish anything at all really. If its useful for us it could be useful for some one else. |
Yeah I was mistaken, I meant to publish |
I've updated this PR to also rename |
substrate-test-utils
substrate-test-utils
and node-executor
substrate-test-utils
and node-executor
substrate-test-utils
and node-executor
to crates.io
substrate-test-utils
and node-executor
to crates.iosubstrate-cli-test-utils
and node-executor
to crates.io
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert your changes around releasing the node-cli
stuff and the renaming etc!
In the test-utils you need to remove the start_node_inline
function to not require these deps released. Next point would be start_node
is expecting substrate-node
. Either make the binary name an input to start_node
or also remove this function.
@@ -1,13 +1,12 @@ | |||
[package] | |||
name = "node-executor" | |||
name = "polkadot-node-executor" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't do this. This crate should not be released!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not release it?
try-runtime-cli
currently uses ExecutorDispatch
from sc_executor
.
edit: try-runtime-cli
currently uses ExecutorDispatch
from node_executor
.
Maybe we should move try-runtime-cli
into the monorepo as you suggested to avoid these headaches.. But it still seems that it is reasonable some projects may want to use these crates?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sc-executor
!= node-executor
. Node executor being the executor declaration for the Substrate node that is nothing that should be released.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sc-executor
is already released.
691e885
to
b36ff47
Compare
substrate-cli-test-utils
and node-executor
to crates.iosubstrate-cli-test-utils
to crates.io
@liamaharon this still holds. You need to remove |
@bkchr then what is the best practice then for starting a node programatically? Or is there a reason not to support that? |
It makes sense to run a node in a test. I'm not arguing against this. You can also use the current functions, but then you should make the binary name generic, by passing to the respective functions. |
@liamaharon what is the status of this? |
I need to investigate the best alternative to using the dep in try-runtime-cli. Will close the PR for now. |
* use StorageDoubleMapKeyProvider in RelayerRewards * add metrics * clippy * fixed alerts that have caused missing dashboards * fix metric name * fix metric name again * add new metrics to the RialtoParachain <> Millau maintenance dashboard * remove obsolete dashboard
Removes
publish = false
fromsubstrate-cli-test-utils
.