-
Notifications
You must be signed in to change notification settings - Fork 97
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
Add basic XCM emulator tests #114
Add basic XCM emulator tests #114
Conversation
authors.workspace = true | ||
edition.workspace = true | ||
license = "Apache-2.0" | ||
description = "Common resources for integration testing with xcm-emulator" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After bumping repo to sdk v1.4 or v1.5 release, we can drop 90% of the code in this module and get it from https://crates.io/crates/emulated-integration-tests-common/1.0.0
@acatangiu We are planing to add XCM emulator to its own repository. It is still WIP: https://github.com/paritytech/polkadot-integration-tests/tree/master |
Why would they be on a different repo? I mean I don't see any benefits, while seeing massive drawbacks. It's already hard enough to coordinate over |
3f1e7f3
to
d90069c
Compare
Let's continue the conversation here: #103 (comment) |
integration-tests/emulated/assets/asset-hub-kusama/src/tests/hrmp_channels.rs
Outdated
Show resolved
Hide resolved
I recall @rphmeier having issues with how those tests were written affecting async backing changes |
I can't think of any issues with async backing - afaik the emulator doesn't build any blocks per-se - it emulates everything underneath the runtime using some dumb buffers - point being to test the runtime behavior, especially XCM message passing and execution. These tests currently run on Rococo and Westend too, where I was under the impression async backing is already enabled. Or are you talking about some limitation on some yet unreleased async backing feature? |
The async backing issues should have all been fixed in: |
integration-tests/emulated/assets/asset-hub-kusama/src/tests/teleport.rs
Outdated
Show resolved
Hide resolved
integration-tests/emulated/assets/asset-hub-polkadot/src/tests/teleport.rs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't looked at the tests closely, but since most of it is going to be removed after bump to 1.5 is merged as you say, don't want to block this PR.
@joepetrowski bot is not counting your review after latest push, can you try to re-approve? |
27b81c6
to
09136ed
Compare
/merge |
Enabled Available commands
For more information see the documentation |
ah, nice, I thought bot is ignoring me since I'm not part of fellowship, but I was just being impatient 😛 |
4422084
into
polkadot-fellows:main
Yeah, we had a lot of jobs running and github action has probably some upper number of parallel runners per project. |
There are 4 failing tests here after a weight update: #129 Its also waiting for |
Yes, it’s using old(er) polkadot-sdk crate versions (from v1.3.0 release). When we’ll bump deps, we’ll update tests too.
I can look into it tomorrow. |
This PR adds XCM emulator tests for Relay chains and Asset Hub System parachains.
It adds them under new
integration-tests/emulated/
dir which lives at the root of the repo and doesn't pollute the prod networks code/crates/etc in any way. As you can see from thediff
, no other files outsideintegration-tests
are touched by this PR (except workspaceCargo.toml
andCargo.lock
).Tests added by this PR are rather old/limited, but I will update them when we bump polkadot-sdk crates deps to
v1.4
orv1.5
release. This will bring in more refined tests for existing scenarios and many new tests for new scenarios such as complex asset-transfers and bridging - sending XCMs over bridge, and asset transfers between AHs on different relays using bridge.Also after bumping repo to sdk
v1.4
orv1.5
release, we can also drop 90% ofintegration-tests/emulated/common
and get it fromcrates.io
.Fixes #103