Skip to content

Commit

Permalink
Run UI tests in CI for some other crates (paritytech#5167)
Browse files Browse the repository at this point in the history
The test name is `test-frame-ui` I don't know if I can also change it to
`test-ui` without breaking other stuff. So I kept the name unchanged.

---------

Co-authored-by: Bastian Köcher <git@kchr.de>
  • Loading branch information
2 people authored and TarekkMA committed Aug 2, 2024
1 parent 8aeab43 commit 2bc0da4
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .gitlab/pipeline/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,11 @@ test-frame-ui:
script:
- time cargo test --locked -q --profile testnet -p frame-support-test --features=frame-feature-testing,no-metadata-docs,try-runtime,experimental
- time cargo test --locked -q --profile testnet -p frame-support-test --features=frame-feature-testing,frame-feature-testing-2,no-metadata-docs,try-runtime,experimental
- time cargo test --locked -q --profile testnet -p xcm-procedural
- time cargo test --locked -q --profile testnet -p frame-election-provider-solution-type
- time cargo test --locked -q --profile testnet -p sp-api-test
# There is multiple version of sp-runtime-interface in the repo. So we point to the manifest.
- time cargo test --locked -q --profile testnet --manifest-path substrate/primitives/runtime-interface/Cargo.toml
- cat /cargo_target_dir/debug/.fingerprint/memory_units-759eddf317490d2b/lib-memory_units.json || true

# This job runs all benchmarks defined in the `/bin/node/runtime` once to check that there are no errors.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@ trie-bench = { version = "0.39.0" }
trie-db = { version = "0.29.0", default-features = false }
trie-root = { version = "0.18.0", default-features = false }
trie-standardmap = { version = "0.16.0" }
trybuild = { version = "1.0.88" }
trybuild = { version = "1.0.89" }
tt-call = { version = "1.0.8" }
tuplex = { version = "0.1", default-features = false }
twox-hash = { version = "1.6.3", default-features = false }
Expand Down
4 changes: 3 additions & 1 deletion polkadot/xcm/procedural/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ Inflector = { workspace = true }

[dev-dependencies]
trybuild = { features = ["diff"], workspace = true }
xcm = { workspace = true, default-features = true }
# NOTE: we have to explicitly specify `std` because of trybuild
# https://github.com/paritytech/polkadot-sdk/pull/5167
xcm = { workspace = true, default-features = true, features = ["std"] }
1 change: 1 addition & 0 deletions scripts/update-ui-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ $RUSTUP_RUN cargo test --manifest-path substrate/primitives/runtime-interface/Ca
$RUSTUP_RUN cargo test -p sp-api-test ui
$RUSTUP_RUN cargo test -p frame-election-provider-solution-type ui
$RUSTUP_RUN cargo test -p frame-support-test --features=no-metadata-docs,try-runtime,experimental ui
$RUSTUP_RUN cargo test -p xcm-procedural ui
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ codec = { workspace = true, default-features = true }
scale-info = { workspace = true, default-features = true }
sp-arithmetic = { workspace = true, default-features = true }
# used by generate_solution_type:
frame-election-provider-support = { workspace = true, default-features = true }
# NOTE: we have to explicitly specify `std` because of trybuild
# https://github.com/paritytech/polkadot-sdk/pull/5167
frame-election-provider-support = { workspace = true, default-features = true, features = ["std"] }
frame-support = { workspace = true, default-features = true }
trybuild = { workspace = true }

0 comments on commit 2bc0da4

Please sign in to comment.