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

Improve runtime tests #1001

Merged
merged 11 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 35 additions & 4 deletions .github/workflows/parachain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: "true"
- uses: arduino/setup-protoc@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/cache@v1
with:
path: |
Expand All @@ -48,6 +51,7 @@ jobs:
--manifest-path parachain/Cargo.toml
--workspace
--features runtime-benchmarks
--exclude snowbridge-runtime-tests
- name: clippy
run: cargo clippy --manifest-path parachain/Cargo.toml -- -D warnings

Expand All @@ -64,6 +68,9 @@ jobs:
with:
ref: ${{ github.head_ref }}
submodules: "true"
- uses: arduino/setup-protoc@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/cache@v1
with:
path: |
Expand All @@ -84,6 +91,7 @@ jobs:
--workspace
--features runtime-benchmarks
--exclude snowbridge-ethereum-beacon-client
--exclude snowbridge-runtime-tests
# Run tests for beacon light client, excluding benchmark tests
- name: Tests for beacon light client excluding benchmark tests
run: >
Expand Down Expand Up @@ -112,6 +120,9 @@ jobs:
with:
ref: ${{ github.head_ref }}
submodules: "true"
- uses: arduino/setup-protoc@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: setup rust toolchain
run: rustup show
- name: run coverage test
Expand Down Expand Up @@ -148,8 +159,8 @@ jobs:
--package bridge-hub-rococo-runtime
--features runtime-benchmarks

integration-tests:
needs: test
runtime-tests:
needs: check
runs-on: snowbridge-runner
steps:
- uses: actions/checkout@v2
Expand All @@ -160,11 +171,31 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: setup rust toolchain
run: rustup show
- name: snowbridge integration
- name: snowbridge runtime tests
run: >
cargo test
--manifest-path parachain/Cargo.toml
-p snowbridge-runtime-tests
-- --nocapture

integration-tests:
needs: check
runs-on: snowbridge-runner
steps:
- uses: actions/checkout@v2
with:
submodules: "true"
- uses: arduino/setup-protoc@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: setup rust toolchain
run: rustup show
- name: snowbridge integration tests
run: >
RUST_LOG=xcm=trace cargo test
--manifest-path polkadot-sdk/Cargo.toml
-p bridge-hub-rococo-integration-tests
-p bridge-hub-rococo-integration-tests snowbridge
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What package is named snowbridge? I don't recall any package like that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually it's not a package name, the mod name to filter snowbrige tests only.

-- --nocapture

beacon-fuzz:
if: false
Expand Down
Loading
Loading