Skip to content

tests: add e2e tests for multi-block miner#1040

Merged
sigurpol merged 13 commits intomainfrom
asset-hub-local-test
May 13, 2025
Merged

tests: add e2e tests for multi-block miner#1040
sigurpol merged 13 commits intomainfrom
asset-hub-local-test

Conversation

@niklasad1
Copy link
Copy Markdown
Contributor

@niklasad1 niklasad1 commented Apr 28, 2025

This pull request adds end-to-end tests for the multi-block miner by introducing a new integration test running against latest and greatest polkadot-sdk, and enhancing related configuration and CI workflows. The key changes include:

Adding a new configuration file (zombienet-staking-runtimes.toml) to define relaychain and parachain settings for the e2e tests.
Creating a new integration test suite in tests/multi_block_monitor.rs that validates the multi-block monitor functionality.
Updating Cargo.toml and several GitHub workflow files to support the integration tests and ensure all required components (like zombienet and Node.js) are installed and verified.

Close #979

@niklasad1 niklasad1 requested a review from Copilot April 28, 2025 17:55
Copy link
Copy Markdown

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 pull request adds end-to-end tests for the multi-block miner by introducing a new integration test and enhancing related configuration and CI workflows. The key changes include:

  • Adding a new configuration file (zombienet-staking-runtimes.toml) to define relaychain and parachain settings for the e2e tests.
  • Creating a new integration test suite in tests/multi_block_monitor.rs that validates the multi-block monitor functionality.
  • Updating Cargo.toml and several GitHub workflow files to support the integration tests and ensure all required components (like zombienet and Node.js) are installed and verified.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
zombienet-staking-runtimes.toml Added configuration for relaychain and parachain nodes.
tests/multi_block_monitor.rs Introduced E2E tests for the multi-block miner and blockchain events monitoring.
Cargo.toml Added the integration-tests feature flag.
.github/workflows/nightly.yml Configured Node.js setup and zombienet installation for nightly builds.
.github/workflows/build-polkadot-for-nightly.yml Enhanced build steps to include additional polkadot artifacts and chain specs.
.github/workflows/actions/prepare-binaries/action.yml Modified binary preparation to include chain spec files placement.

sigurpol and others added 10 commits May 12, 2025 23:11
* Update multiblock metadata (tracking SDK rev 8da42e8fae)

`desired_targets` storage item now requires the round index
as a parameter, so this change correctly aligns our code with
the updated storage API in the Polkadot SDK.

See [SDK PR](paritytech/polkadot-sdk#8304).

* Handle round parameter in snapshot functions

[SDK #8304](https://github.com/paritytech/polkadot-sdk/pull/8304/files)
has introduced a breaking change for which also snapshot methods are
keyed on round index.

Update the code accordingly.

* Fix fmt
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4.2.1 to 4.3.0.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](actions/download-artifact@v4.2.1...v4.3.0)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: 4.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Do not rely on specific text in polkadot logs but on the parachain
collator to be up and running on the RPC port specified on the
zombienet configuration.
@sigurpol
Copy link
Copy Markdown
Contributor

Let's merge in order to ensure all needed artifacts (binaries, chainspec) are in place and let's improve / fix / iterate.

@sigurpol sigurpol merged commit 867fc62 into main May 13, 2025
9 of 10 checks passed
@sigurpol sigurpol deleted the asset-hub-local-test branch May 13, 2025 11:47
sigurpol added a commit that referenced this pull request May 13, 2025
Commit 867fc62 (#1040) has introduced a YAML file for building polkadot
for nightly with a invalid syntax, preventing the multiblock integration
test to run properly.
sigurpol added a commit that referenced this pull request May 14, 2025
Commit 867fc62 (#1040) has introduced a YAML file for building polkadot
for nightly with a invalid syntax, preventing the multiblock integration
test to run properly.
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.

multi block miner: add e2e tests

4 participants