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

Add workflow for paradis try-runtime #843

Merged
merged 11 commits into from Mar 27, 2024
61 changes: 45 additions & 16 deletions .github/workflows/ci.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
toolchain: ${{ env.toolchain }}

test-runtime:
runs-on: ubuntu-latest-8-cores
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -74,7 +74,7 @@ jobs:
run: cargo test --all-features -p nodle-parachain

tests-with-linecoverage:
runs-on: ubuntu-latest-4-cores
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -98,7 +98,7 @@ jobs:
fail_ci_if_error: false
files: lcov.info

try-runtime:
try-runtime-prepare:
runs-on: ubuntu-latest

steps:
Expand All @@ -116,17 +116,46 @@ jobs:
uses: mozilla-actions/sccache-action@v0.0.4
- name: Build runtime
run: cargo build --release --features=try-runtime -p runtime-eden
- name: Check Version
run: |
echo -n "eden_rev=" >> $GITHUB_OUTPUT
curl -s --request POST --url https://nodle-parachain.api.onfinality.io/public --header 'Content-Type: application/json' --data '{
"jsonrpc": "2.0",
"method": "state_getRuntimeVersion",
"params": [],
"id": 1
}' | jq .result.specVersion | sed 's/^/try-runtime-snapshot-eden-spec-/' >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
id: get_version
- name: Upload runtime artifact
uses: actions/upload-artifact@v4
with:
name: try_runtime
path: target/release/wbuild/runtime-eden/runtime_eden.wasm

try-runtime-paradis-execute:
runs-on: ubuntu-latest
needs: try-runtime-prepare
steps:
- name: Download runtime artifact
uses: actions/download-artifact@v4
with:
name: try_runtime
path: try_runtime
- uses: robinraju/release-downloader@v1.9
with:
repository: "NodleCode/paradis-snapshot"
latest: true
fileName: "paradis-snapshot-full.bz2"
out-file-path: "snaps"
extract: false
- run: bunzip2 snaps/paradis-snapshot-full.bz2
- name: Run try-runtime paradis
uses: NodleCode/action-try-runtime/check@v0.6.1
with:
snap: snaps/paradis-snapshot-full
runtime: try_runtime/runtime_eden.wasm
checks: "all"
options: "--disable-idempotency-checks"

try-runtime-eden-execute:
runs-on: ubuntu-latest
needs: try-runtime-prepare
steps:
- name: Download runtime artifact
uses: actions/download-artifact@v4
with:
name: try_runtime
path: try_runtime
- uses: robinraju/release-downloader@v1.9
with:
repository: "NodleCode/eden-snapshot"
Expand All @@ -138,6 +167,6 @@ jobs:
uses: NodleCode/action-try-runtime/check@v0.6.1
with:
snap: snaps/eden-snapshot-full
runtime: target/release/wbuild/runtime-eden/runtime_eden.wasm
runtime: try_runtime/runtime_eden.wasm
checks: "all"
options: "--disable-idempotency-checks"
options: "--disable-idempotency-checks"
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Expand Up @@ -12,7 +12,7 @@ jobs:

container_gpr:
name: Build and push docker image
runs-on: ubuntu-latest
runs-on: ubuntu-latest-8-core
simonsso marked this conversation as resolved.
Show resolved Hide resolved

steps:

Expand Down
5 changes: 0 additions & 5 deletions runtimes/eden/src/migrations.rs
Expand Up @@ -68,11 +68,6 @@ where
StorageVersion::get::<pallet_uniques::Pallet<T>>() == 0,
TryRuntimeError::Other("pallet_uniques storage version is not 0")
);
ensure!(
StorageVersion::get::<pallet_identity::Pallet<T>>() == 0,
TryRuntimeError::Other("pallet_identity storage version is not 0")
);

Ok(vec![])
}

Expand Down