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

Test multiple images of the same chain/para #457

Closed
wirednkod opened this issue Oct 6, 2022 · 1 comment
Closed

Test multiple images of the same chain/para #457

wirednkod opened this issue Oct 6, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request support

Comments

@wirednkod
Copy link
Contributor

wirednkod commented Oct 6, 2022

Following the request of this PR for backward compatibility testing, it would make sense to have a way to generically test different branches in parallel, with firing up 2 different images and being able to pass the secondary_image into one of the relay chain nodes as can be seen below:

add env vars:

export ZOMBIENET_POLKADOT_IMAGE_MASTER=docker.io/paritypr/polkadot-debug:master
export ZOMBIENET_POLKADOT_IMAGE_BRANCH=docker.io/paritypr/polkadot-debug:branchX

and in the configuration of Zombienet:

[relaychain]
default_image = "{{ZOMBIENET_POLKADOT_IMAGE_MASTER}}"
secondary_image = "{{ZOMBIENET_POLKADOT_IMAGE_BRANCH}}" 
chain = "rococo-local"

  [[relaychain.nodes]]
  name = "alice"

  [[relaychain.nodes]]
  name = "charlie"
  image = "{{secondary_image}}"

  [[relaychain.nodes]]
  name = "bob"

cc @pepoviola

@wirednkod wirednkod added enhancement New feature or request support labels Oct 6, 2022
@wirednkod wirednkod self-assigned this Oct 6, 2022
@wirednkod wirednkod changed the title Test different images of the same chain Test multiple images of the same chain/para Oct 6, 2022
@wirednkod
Copy link
Contributor Author

Apparently this already exists by setting the image to use at node level and that will override the default_image:
e.g

[relaychain]
default_image = "{{ZOMBIENET_INTEGRATION_TEST_IMAGE}}"
chain = "rococo-local"

  [[relaychain.nodes]]
  name = "alice"
  image = "{{ZOMBIENET_INTEGRATION_TEST_IMAGE_SECONDARY}}"
  [[relaychain.nodes]]
  name = "bob"

Closing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request support
Projects
None yet
Development

No branches or pull requests

1 participant