Skip to content

Conversation

@kamilsa
Copy link
Contributor

@kamilsa kamilsa commented Apr 19, 2025

Referenced issues

None

Description of the Change

Includes 0001 and 0003 tests with KAGOME minority nodes

Possible Drawbacks

None

Checklist Before Opening a PR

Before you open a Pull Request (PR), please make sure you've completed the following steps and confirm by answering 'Yes' to each item:

  1. Code is formatted: Have you run your code through clang-format to ensure it adheres to the project's coding standards? Yes
  2. Code is documented: Have you added comments and documentation to your code according to the guidelines in the project's contributing guidelines? Yes
  3. Self-review: Have you reviewed your own code to ensure it is free of typos, syntax errors, logical errors, and unresolved TODOs or FIXME without linking to an issue? Yes
  4. Zombienet Tests: Have you ensured that the zombienet tests are passing? Zombienet is a network simulation and testing tool used in this project. It's important to ensure that these tests pass to maintain the stability and reliability of the project. Yes

@kamilsa kamilsa marked this pull request as ready for review April 20, 2025 12:55
@kamilsa kamilsa requested review from ErakhtinB, Copilot and zerg-su and removed request for Copilot April 20, 2025 12:55
Copy link

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 adds new tests for KAGOME minority nodes for both PVF preparation and BEEFY voting scenarios.

  • Introduces two new configuration files: one for PVF preparation (0001-parachains-pvf-kagome-minority.toml) and one for BEEFY voting (0003-beefy-and-mmr-kagome-minority.toml).
  • Updates the zombie-tests workflow to include the new KAGOME minority tests.

Reviewed Changes

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

File Description
zombienet/polkadot/functional/0003-beefy-and-mmr-kagome-minority.toml Adds configuration for BEEFY voting with KAGOME minority nodes.
zombienet/polkadot/functional/0001-parachains-pvf-kagome-minority.toml Adds configuration for PVF preparation with KAGOME minority nodes.
.github/workflows/zombie-tests.yaml Updates test matrix to include new KAGOME minority test cases.
Files not reviewed (3)
  • zombienet/docker/Makefile.include/zombietests.mk: Language not supported
  • zombienet/polkadot/functional/0001-parachains-pvf-kagome-minority.zndsl: Language not supported
  • zombienet/polkadot/functional/0003-beefy-and-mmr-kagome-minority.zndsl: Language not supported

name = "two"
command = "kagome"
prometheus_prefix = "kagome"
args = [ "--two", "--wasm-execution Compiled", "-lparachain=debug", "-lruntime=debug", "-lreq_chunk_protocol=trace"]
Copy link

Copilot AI Apr 20, 2025

Choose a reason for hiding this comment

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

The '--wasm-execution' argument here is missing an equals sign; aligning it with '--wasm-execution=Compiled' (as used in the 0003 file) would improve consistency.

Suggested change
args = [ "--two", "--wasm-execution Compiled", "-lparachain=debug", "-lruntime=debug", "-lreq_chunk_protocol=trace"]
args = [ "--two", "--wasm-execution=Compiled", "-lparachain=debug", "-lruntime=debug", "-lreq_chunk_protocol=trace"]

Copilot uses AI. Check for mistakes.
{ name: "0001 PVF preparation & execution time", test: "test-polkadot-functional-0001-parachains-pvf" },
{ name: "0001 PVF preparation & execution time with KAGOME minority", test: "test-polkadot-functional-0001-parachains-pvf-kagome-minority" },
{ name: "0003 BEEFY voting and finality, test MMR proofs. Assumes Rococo sessions of 1 minute", test: "test-polkadot-functional-0003-beefy-and-mmr" },
{ name: "0003 BEEFY voting and finality, test MMR proofs. Assumes Rococo sessions of 1 minute with KAGOME minority", test: "test-polkadot-functional-0003-beefy-and-mmr-kagome-minority" },
Copy link
Contributor

Choose a reason for hiding this comment

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

I think in this case it's better to name the test with an additional identifier, for example '0003a' instead of just '0003', so that they can be quickly distinguished by name in the UI


test-polkadot-functional-0003-beefy-and-mmr:
$(call run_test, "kagome/zombienet/polkadot/functional/0003-beefy-and-mmr.zndsl")
test-polkadot-functional-0003-beefy-and-mmr-kagome-minority:
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe in this case it would also be a good idea to specify '0003a'.

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.

4 participants