Skip to content

Commit

Permalink
add xcm test to post rt upgrade suite
Browse files Browse the repository at this point in the history
  • Loading branch information
Chralt98 committed Dec 20, 2023
1 parent 68c4bfc commit b272544
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 194 deletions.
55 changes: 7 additions & 48 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
./integration-tests/scripts/deploy-zombienet.sh --test
zombienet_zeitgeist_upgrade:
name: Zombienet Runtime Upgrade Zeitgeist
name: Zeitgeist Zombienet Post-Upgrade Tests
runs-on: ubuntu-20.04
needs: ["build_parachain"]
steps:
Expand Down Expand Up @@ -132,14 +132,14 @@ jobs:

- name: Create local folders
run: |
mkdir -p target/release/wbuild/battery-station-runtime/
mkdir -p target/release/wbuild/zeitgeist-runtime/
mkdir -p integration-tests/tmp
- name: Download runtime
uses: actions/download-artifact@v3.0.2
with:
name: runtimes
path: target/release/wbuild/battery-station-runtime/
path: target/release/wbuild/zeitgeist-runtime/

- name: Download binary
uses: actions/download-artifact@v3.0.2
Expand All @@ -159,7 +159,7 @@ jobs:
pnpm exec moonwall test zombienet_zeitgeist_upgrade
chopsticks_battery_station_upgrade:
name: Chopsticks Runtime Upgrade Battery Station
name: Battery Station Chopsticks Post-Upgrade Tests
runs-on: ubuntu-20.04
needs: ["build_parachain"]
steps:
Expand Down Expand Up @@ -202,15 +202,15 @@ jobs:
run: ls -R
working-directory: target/

- name: Test battery station runtime upgrade using Chopsticks
- name: Battery Station post-upgrade tests using Chopsticks
run: |
cd integration-tests
pnpm exec moonwall test chopsticks_battery_station_upgrade
ls -R tmp/node_logs/
cat tmp/node_logs/*.log
chopsticks_zeitgeist_upgrade:
name: Chopsticks Runtime Upgrade Zeitgeist
name: Zeitgeist Chopsticks Post-Upgrade Tests
runs-on: ubuntu-20.04
needs: ["build_parachain"]
steps:
Expand Down Expand Up @@ -253,50 +253,9 @@ jobs:
run: ls -R
working-directory: target/

- name: Test zeitgeist runtime upgrade using Chopsticks
- name: Zeitgeist post-upgrade tests using Chopsticks
run: |
cd integration-tests
pnpm exec moonwall test chopsticks_zeitgeist_upgrade
ls -R tmp/node_logs/
cat tmp/node_logs/*.log
chopsticks_zeitgeist_hydradx_xcm_tests:
name: Chopsticks Zeitgeist HydraDX XCM Tests
runs-on: ubuntu-20.04
needs: ["build_parachain"]
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install build tools
run: ./scripts/init.sh

- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "pnpm"
cache-dependency-path: "./integration-tests/pnpm-lock.yaml"

- name: Install pnpm packages
run: |
cd integration-tests
pnpm install
- name: Cache Dependencies
uses: Swatinem/rust-cache@v1

- name: Create local folders
run: |
mkdir -p integration-tests/tmp
mkdir -p integration-tests/tmp/node_logs
- name: Test zeitgeist xcm tests using Chopsticks
run: |
cd integration-tests
pnpm exec moonwall test chopsticks_zeitgeist_hydra_xcm_tests
ls -R tmp/node_logs/
cat tmp/node_logs/*.log
103 changes: 50 additions & 53 deletions integration-tests/moonwall.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,41 @@
"type": "chopsticks",
"rtUpgradePath": "../target/release/wbuild/zeitgeist-runtime/zeitgeist_runtime.compact.compressed.wasm",
"launchSpec": [
{
"name": "db",
"type": "parachain",
"configPath": "./configs/zeitgeist.yml"
}
{
"name": "PolkadotDB",
"type": "relaychain",
"configPath": "polkadot"
},
{
"name": "HydraDXDB",
"type": "parachain",
"configPath": "./configs/hydradx.yml"
},
{
"name": "ZeitgeistDB",
"type": "parachain",
"configPath": "./configs/zeitgeist.yml"
}
]
},
"envVars": ["LOG_LEVEL=debug", "VERBOSE_LOG"],
"buildBlockMode": "manual",
"connections": [
{
"name": "DB",
{
"name": "PolkadotRelay",
"type": "polkadotJs",
"endpoints": ["ws://127.0.0.1:8002"]
},
{
"name": "HydraDXPara",
"type": "polkadotJs",
"endpoints": ["ws://127.0.0.1:8000"]
},
{
"name": "ZeitgeistPara",
"type": "polkadotJs",
"endpoints": ["ws://127.0.0.1:8000"]
}
"endpoints": ["ws://127.0.0.1:8001"]
}
]
},
{
Expand All @@ -68,63 +88,40 @@
"type": "chopsticks",
"rtUpgradePath": "../target/release/wbuild/battery-station-runtime/battery_station_runtime.compact.compressed.wasm",
"launchSpec": [
{
"name": "db",
"type": "parachain",
"configPath": "./configs/battery-station.yml"
}
]
},
"envVars": ["LOG_LEVEL=debug", "VERBOSE_LOG"],
"buildBlockMode": "manual",
"connections": [
{
"name": "DB",
"type": "polkadotJs",
"endpoints": ["ws://127.0.0.1:8000"]
}
]
},
{
"name": "chopsticks_zeitgeist_hydra_xcm_tests",
"testFileDir": ["tests/chopsticks-xcm"],
"foundation": {
"type": "chopsticks",
"launchSpec": [
{
"name": "PolkadotDB",
"type": "relaychain",
"configPath": "polkadot"
},
{
"name": "HydraDXDB",
"type": "parachain",
"configPath": "./configs/hydradx.yml"
},
{
"name": "ZeitgeistDB",
"type": "parachain",
"configPath": "./configs/zeitgeist.yml"
}
{
"name": "ZeitgeistDB",
"type": "parachain",
"configPath": "./configs/battery-station.yml"
},
{
"name": "HydraDXDB",
"type": "parachain",
"configPath": "./configs/hydradx.yml"
},
{
"name": "PolkadotDB",
"type": "relaychain",
"configPath": "polkadot"
}
]
},
"envVars": ["LOG_LEVEL=debug", "VERBOSE_LOG"],
"buildBlockMode": "manual",
"connections": [
{
"name": "PolkadotRelay",
"name": "ZeitgeistPara",
"type": "polkadotJs",
"endpoints": ["ws://127.0.0.1:8002"]
"endpoints": ["ws://127.0.0.1:8000"]
},
{
"name": "HydraDXPara",
"type": "polkadotJs",
"endpoints": ["ws://127.0.0.1:8000"]
"endpoints": ["ws://127.0.0.1:8001"]
},
{
"name": "ZeitgeistPara",
"type": "polkadotJs",
"endpoints": ["ws://127.0.0.1:8001"]
"name": "PolkadotRelay",
"type": "polkadotJs",
"endpoints": ["ws://127.0.0.1:8002"]
}
]
}
Expand Down

This file was deleted.

Loading

0 comments on commit b272544

Please sign in to comment.