Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

wip: upgrade statemine/t integration tests to xcm v3 #2224

Conversation

gilescope
Copy link
Contributor

(best to look commit by commit to reduce from initially updating the tests from the other repo)

@EgorPopelyaev EgorPopelyaev added B0-silent Changes should not be mentioned in any release notes A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. labels Feb 22, 2023
@paritytech-ci paritytech-ci requested review from a team February 22, 2023 10:57
@@ -170,245 +77,76 @@ tests:
- name: Penpal Parachain sends a request to the Relay Chain to open a channel with the Assets Parachain
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like the context has changed here. We are no longer sending the request from Penpal, but rather we call an extrinsic on the relay chain to open the channel. I guess we should then change the name of this test to something that reflects this scenario better.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it fixed in parachains-integration-tests repo.

chain: *relay_chain
pallet: hrmp
call: hrmpOpenChannelRequestsList
args: []
- asserts:
equal:
args: [
$requested_channels,
$requested_channels_a_to_p,
Copy link
Contributor

Choose a reason for hiding this comment

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

This assertion always fails for me. And it totally depends on the sequence of execution, if we change those tests around - it still fails. Because the list is empty. Since request processing happens on session start, this is going to be flaky even for the first test, depending on the machine and other variables. I suggest calling force_process_hrmp_open and then querying HrmpIngressChannelsIndex or HrmpEgressChannelsIndex. Otherwise we could just remove the assert completely as the receipt of HrmpChannelForceOpened has to be enough.

Copy link
Contributor Author

@gilescope gilescope Mar 6, 2023

Choose a reason for hiding this comment

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

Agreed I think we don't need that assertion - as long as we have the event I think we're good. The tests in the next file would fail if the channel was not open.

@xlc
Copy link
Contributor

xlc commented Mar 5, 2023

How will you test new kusama runtime works with both old statemine runtime and new statemine runtime?

@gilescope
Copy link
Contributor Author

Closing this PR as most of it is put into paritytech/parachains-integration-tests#92 - we will assume that is master for the tests from now on.

@gilescope gilescope closed this Mar 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants