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

Publish substrate-cli-test-utils to crates.io #1742

Closed
wants to merge 2 commits into from

Conversation

liamaharon
Copy link
Contributor

@liamaharon liamaharon commented Sep 28, 2023

Removes publish = false from substrate-cli-test-utils.

Copy link
Member

@bkchr bkchr left a 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.

@Morganamilo
Copy link
Contributor

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.

@liamaharon
Copy link
Contributor Author

liamaharon commented Sep 28, 2023

Wait. This crate only contains two macros, do we really need to publish this? You can just copy these macros.

Yeah I was mistaken, I meant to publish substrate-cli-test-utils, not `substrate-test-utils. Updated the PR.

@liamaharon liamaharon requested a review from bkchr September 28, 2023 16:38
@liamaharon
Copy link
Contributor Author

I've updated this PR to also rename node-executor to polkadot-node-executor (original name is taken) and set public to true on that crate too.

@liamaharon liamaharon changed the title Publish substrate-test-utils Publish substrate-test-utils and node-executor Sep 28, 2023
@liamaharon liamaharon changed the title Publish substrate-test-utils and node-executor Publish substrate-test-utils and node-executor to crates.io Sep 28, 2023
@liamaharon liamaharon changed the title Publish substrate-test-utils and node-executor to crates.io Publish substrate-cli-test-utils and node-executor to crates.io Sep 28, 2023
@liamaharon liamaharon added the T0-node This PR/Issue is related to the topic “node”. label Sep 28, 2023
Copy link
Member

@bkchr bkchr left a 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"
Copy link
Member

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!

Copy link
Contributor Author

@liamaharon liamaharon Sep 29, 2023

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?

Copy link
Member

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.

Copy link
Member

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.

@liamaharon liamaharon changed the title Publish substrate-cli-test-utils and node-executor to crates.io Publish substrate-cli-test-utils to crates.io Sep 30, 2023
@liamaharon liamaharon requested a review from bkchr September 30, 2023 16:56
@bkchr
Copy link
Member

bkchr commented Oct 1, 2023

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.

@liamaharon this still holds. You need to remove node-cli and node-primitives.

@liamaharon
Copy link
Contributor Author

liamaharon commented Oct 2, 2023

@bkchr then what is the best practice then for starting a node programatically? Or is there a reason not to support that?

@bkchr
Copy link
Member

bkchr commented Oct 5, 2023

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.

@bkchr
Copy link
Member

bkchr commented Nov 6, 2023

@liamaharon what is the status of this?

@liamaharon
Copy link
Contributor Author

@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.

@liamaharon liamaharon closed this Nov 7, 2023
bkchr pushed a commit that referenced this pull request Apr 10, 2024
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T0-node This PR/Issue is related to the topic “node”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants