Open EleisonC opened 3 days ago
User @EleisonC, please sign the CLA here.
Thanks @EleisonC ! Left a few comments for now. Looking forward to the README updates & btw, have you clarified how to make a rust test for the chain specs?
Hey @iulianbarbu that is what I am looking into today. Do you have any pointers you'd like me to know as I move forward?
Thanks @EleisonC ! Left a few comments for now. Looking forward to the README updates & btw, have you clarified how to make a rust test for the chain specs?
Hey @iulianbarbu that is what I am looking into today. Do you have any pointers you'd like me to know as I move forward?
From the top of my head I thought about adding an integration test. You could build a ChainSpec
as described here: https://github.com/paritytech/polkadot-sdk/blob/master/templates/parachain/node/src/chain_spec.rs#L36, and then call as_json
-> and then convert it to serde_json::Value
, and then read the newly added file and load its content as a serde_json::Value
and then compare the two.
Hey @iulianbarbu one last question it's okay if I placed the test folder/file under the nodes folder/file. if not is there a better place
Hey @iulianbarbu one last question it's okay if I placed the test folder/file under the nodes folder/file. if not is there a better place
Hmm, thought about placing it under runtime
initially. I think it makes more sense to place it under runtime
so that if anything changes here, running the tests for the crate would fail because the changes will not be inline with dev_chain_spec.json
. The node uses the logic defined in the runtime, so it would benefit from the runtime test, but not directly. I don't think we need to add a test on the same lines in the templates' node
s crate either because these nodes aren't depending on the dev_chain_spec.json
file. Only OmniNode
depends on this file being in sync with the runtime, and that not because it would fail otherwise, but because it would start an outdated version.
Description
This PR adds development chain specs for the minimal and parachain templates. #6334
Integration
This PR adds development chain specs for the minimal and para chain template runtimes, ensuring synchronization with runtime code. It updates zombienet-omni-node.toml, zombinet.toml files to include valid chain spec paths, simplifying configuration for zombienet in the parachain and minimal template.
Review Notes
Overview of Changes:
Integration Guidance: NB: Follow the templates' READMEs from the polkadot-SDK master branch. Please build the binaries and runtimes based on the polkadot-SDK master branch.
parachain-template-runtime
andminimal-template-runtime
parachain-template-node
andminimal-template-node
cargo install --path polkadot
remember from the polkadot-SDK master branch.Zombienet with Omni Node
,Zombienet with minimal-template-node
orZombienet with parachain-template-node
Include your leftover TODOs, if any, here.