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

Refactor: Identify working wss parachain links dynamically for chopsticks tests #101

Open
bvotteler opened this issue Jun 19, 2023 · 1 comment

Comments

@bvotteler
Copy link

Currently the automated chopsticks tests use configuration files with a single, hard-coded wss link as rpc endpoint.
If, for some reason, there are issues with the rpc endpoint, chopsticks will run into errors, or may just not start correctly. This then leads to test errors which more often than not are false negatives.

Instead of using a fixed wss link, we want to use a collection of wss links, with backups mirroring the ones we use in the UI .
We can attempt a connection race in a test perparation/setup script, similiar to how the XCM lib does it for the api providers, and then use the endpoints that responded to construct the configuration yaml file using the wss link of the connection that won.

@nud3l nud3l added this to Backlog Jun 19, 2023
@github-project-automation github-project-automation bot moved this to New 🆕 in Backlog Jun 19, 2023
@bvotteler bvotteler self-assigned this Jun 19, 2023
@bvotteler bvotteler moved this from New 🆕 to Development 🏗️ in Backlog Jun 19, 2023
@bvotteler bvotteler moved this from Development 🏗️ to Todo ⏳ in Backlog Jul 3, 2023
@bvotteler
Copy link
Author

bvotteler commented Jul 3, 2023

Marked as blocked.

The main reason for adding this was to avoid errors with Astar. And while it is feasible to run these checks, starting tests against Astar's alternative rpc wss links throw an "RpcError: Response is too big" error when starting chopsticks (see error message below). Meaning even if we detect that their main rpc is down, we cannot use the alternative.

This makes checking for live wss links somewhat useless until we can rely on other rpcs (and figure out a way to check that response size won't be an issue)

$ yarn start xcm --relaychain=configs/polkadot.yml --parachain=configs/astar.yml
chopsticks xcm

XCM setup with relaychain and parachains

Options:
      --version     Show version number                                [boolean]
  -h, --help        Show help                                          [boolean]
      --relaychain  Relaychain config file path                         [string]
      --parachain   Parachain config file path                [array] [required]

RpcError: -32702: Response is too big: Exceeded max limit of 1048576

@bvotteler bvotteler removed their assignment Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant