Skip to content

paritytech/ahm-dryrun

Repository files navigation

AHM dry run scripts

Scripts for dry-running the Asset Hub migration and verifying the post-migration state.

Using Chopsticks and PAPI.

Getting started

git clone --recursive git@github.com:paritytech/ahm-dryrun.git && cd ahm-dryrun

Or, if you've already cloned and didn't use the recursive flag, you can run:

git submodule update --init

Replacing any paths you want to customise in the env file.

Use the justfile to do most common actions.

⚠️ These should probably be migrated to npm scripts in the package.json when the testing tooling is in place.

Start the network with the default options (resuming at the post-state):

just build-runtimes
just run

E2E Tests on Asset Hub Next

To run PET'S currently existing E2E test suites on the AHNW, use

#runs all of them, AHNW and beyond
just e2e-tests

# runs all suites from current E2E suites that have been adapted to the AHNW
just e2e-tests assetHubNext

# specific test suite(s)
just e2e-tests assetHubNext.scheduler
just e2e-tests assetHubNext.staking assetHubNext.nominationPools
...

List the other available commands with just help.

Contributions

Make any changes to the env rather than to the bare configs.

DBs are provided for resuming post-migration - don't commit your db changes unless you're re-running the migration, and never commit them after tests have run.

Updating submodules

Make sure to run git submodule update --recursive after you pull from the repo to update the submodules to the commits tracked in the repo.

You can run e.g. cd runtimes && git checkout <commit_hash> && cd - && git add runtimes && git commit to update the commit that the runtimes submodule points to.

About

Post-migration tests and dry run scripts

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published