Skip to content

Conversation

@moliholy
Copy link
Collaborator

@moliholy moliholy commented Oct 29, 2025

This PR:

  • Updates zombienet to 0.4.1.
  • Adds the --raw flag to pop build spec to build the raw chain spec.
  • Switches the directory when executing a zombienet network. This allows to run commands from the parachain root folder that will be used to generate the chainspec.

All these changes are related to adding support for omni-node-based chains.

@moliholy moliholy requested a review from AlexD10S October 29, 2025 18:06
@moliholy moliholy self-assigned this Oct 29, 2025
@moliholy moliholy changed the title Feat/pop up chain spec cmd feat: pop up chain spec cmd Oct 29, 2025
@moliholy moliholy force-pushed the feat/pop-up-chain-spec-cmd branch from 0887a52 to ab71b5b Compare October 29, 2025 18:58
@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

❌ Patch coverage is 58.49057% with 66 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.10%. Comparing base (a29ac18) to head (07485d0).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
crates/pop-cli/src/commands/build/spec.rs 16.98% 44 Missing ⚠️
crates/pop-chains/src/up/mod.rs 69.23% 7 Missing and 1 partial ⚠️
crates/pop-cli/src/commands/up/network.rs 91.93% 5 Missing ⚠️
crates/pop-chains/src/relay.rs 0.00% 4 Missing ⚠️
crates/pop-cli/src/commands/up/rollup.rs 0.00% 1 Missing and 2 partials ⚠️
crates/pop-cli/src/commands/up/mod.rs 0.00% 2 Missing ⚠️
@@            Coverage Diff             @@
##             main     #699      +/-   ##
==========================================
+ Coverage   77.06%   77.10%   +0.04%     
==========================================
  Files         109      109              
  Lines       24669    24753      +84     
  Branches    24669    24753      +84     
==========================================
+ Hits        19011    19087      +76     
- Misses       3656     3663       +7     
- Partials     2002     2003       +1     
Files with missing lines Coverage Δ
crates/pop-cli/src/deployment_api.rs 84.69% <100.00%> (+0.22%) ⬆️
crates/pop-contracts/src/node.rs 72.36% <100.00%> (-0.19%) ⬇️
crates/pop-cli/src/commands/up/mod.rs 71.42% <0.00%> (-0.74%) ⬇️
crates/pop-cli/src/commands/up/rollup.rs 69.45% <0.00%> (ø)
crates/pop-chains/src/relay.rs 76.13% <0.00%> (ø)
crates/pop-cli/src/commands/up/network.rs 17.08% <91.93%> (+11.44%) ⬆️
crates/pop-chains/src/up/mod.rs 87.17% <69.23%> (-0.27%) ⬇️
crates/pop-cli/src/commands/build/spec.rs 75.94% <16.98%> (-0.46%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Daanvdplas Daanvdplas requested a review from Copilot October 30, 2025 09:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades the zombienet SDK from version 0.3.1 to 0.4.1, along with associated dependency updates (notably subxt 0.38.1 to 0.44.0, polkavm, cranelift, and various substrate primitives). Key changes include:

  • Zombienet SDK and configuration bumped to 0.4.1
  • API changes for zombienet methods (.with_node.with_validator, .wait_client().ws_uri())
  • raw_chain_spec changed from PathBuf to Option<PathBuf> in GenesisArtifacts
  • Network configuration command-line argument changed from optional to required
  • Added --raw flag to build spec command
  • Various refactorings for consistency (e.g., std::fsfs, anyhow::ResultResult)

Reviewed Changes

Copilot reviewed 9 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Cargo.toml / Cargo.lock Upgrades zombienet-configuration and zombienet-sdk from 0.3.1 to 0.4.1, plus transitive dependency updates
crates/pop-cli/src/commands/build/spec.rs Makes raw_chain_spec optional, adds --raw flag, conditional generation logic
crates/pop-cli/src/commands/up/network.rs Simplifies command by making path required, removes deprecated file argument, adds cd_into_chain_base_dir helper
crates/pop-cli/src/commands/up/mod.rs Updates to use required path parameter
crates/pop-cli/src/commands/up/rollup.rs Return type cleanup, uses fs instead of std::fs
crates/pop-cli/src/deployment_api.rs Adapts to Option<PathBuf> for raw_chain_spec
crates/pop-chains/src/relay.rs Refactors clear_dmpq to accept endpoint string and create client internally
crates/pop-chains/src/up/mod.rs Updates zombienet API calls: .with_node.with_validator, adds chain spec command output path support
crates/pop-contracts/src/node.rs Consolidates feature flag checks
crates/pop-telemetry/Cargo.toml Formatting fix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <[email protected]>
@Daanvdplas Daanvdplas self-requested a review October 30, 2025 10:37
Copy link
Collaborator

@Daanvdplas Daanvdplas left a comment

Choose a reason for hiding this comment

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

LGTM!

@moliholy
Copy link
Collaborator Author

@Daanvdplas just added two extra tests right now, as the coverage was low. Mind to re-approve?

@Daanvdplas Daanvdplas self-requested a review October 30, 2025 10:48
@moliholy moliholy merged commit c85f2a1 into main Oct 30, 2025
20 checks passed
@moliholy moliholy deleted the feat/pop-up-chain-spec-cmd branch October 30, 2025 11:53
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.

3 participants