Skip to content

Commit 39daa61

Browse files
gui1117bkchr
andauthored
Run UI tests in CI for some other crates (#5167)
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 <[email protected]>
1 parent 7fbfc7e commit 39daa61

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed

.gitlab/pipeline/test.yml

+5
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,11 @@ test-frame-ui:
398398
script:
399399
- time cargo test --locked -q --profile testnet -p frame-support-test --features=frame-feature-testing,no-metadata-docs,try-runtime,experimental
400400
- 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
401+
- time cargo test --locked -q --profile testnet -p xcm-procedural
402+
- time cargo test --locked -q --profile testnet -p frame-election-provider-solution-type
403+
- time cargo test --locked -q --profile testnet -p sp-api-test
404+
# There is multiple version of sp-runtime-interface in the repo. So we point to the manifest.
405+
- time cargo test --locked -q --profile testnet --manifest-path substrate/primitives/runtime-interface/Cargo.toml
401406
- cat /cargo_target_dir/debug/.fingerprint/memory_units-759eddf317490d2b/lib-memory_units.json || true
402407

403408
# This job runs all benchmarks defined in the `/bin/node/runtime` once to check that there are no errors.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,7 @@ trie-bench = { version = "0.39.0" }
13231323
trie-db = { version = "0.29.0", default-features = false }
13241324
trie-root = { version = "0.18.0", default-features = false }
13251325
trie-standardmap = { version = "0.16.0" }
1326-
trybuild = { version = "1.0.88" }
1326+
trybuild = { version = "1.0.89" }
13271327
tt-call = { version = "1.0.8" }
13281328
tuplex = { version = "0.1", default-features = false }
13291329
twox-hash = { version = "1.6.3", default-features = false }

polkadot/xcm/procedural/Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ Inflector = { workspace = true }
2121

2222
[dev-dependencies]
2323
trybuild = { features = ["diff"], workspace = true }
24-
xcm = { workspace = true, default-features = true }
24+
# NOTE: we have to explicitly specify `std` because of trybuild
25+
# https://github.com/paritytech/polkadot-sdk/pull/5167
26+
xcm = { workspace = true, default-features = true, features = ["std"] }

scripts/update-ui-tests.sh

+1
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ $RUSTUP_RUN cargo test --manifest-path substrate/primitives/runtime-interface/Ca
3838
$RUSTUP_RUN cargo test -p sp-api-test ui
3939
$RUSTUP_RUN cargo test -p frame-election-provider-solution-type ui
4040
$RUSTUP_RUN cargo test -p frame-support-test --features=no-metadata-docs,try-runtime,experimental ui
41+
$RUSTUP_RUN cargo test -p xcm-procedural ui

substrate/frame/election-provider-support/solution-type/Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ codec = { workspace = true, default-features = true }
2828
scale-info = { workspace = true, default-features = true }
2929
sp-arithmetic = { workspace = true, default-features = true }
3030
# used by generate_solution_type:
31-
frame-election-provider-support = { workspace = true, default-features = true }
31+
# NOTE: we have to explicitly specify `std` because of trybuild
32+
# https://github.com/paritytech/polkadot-sdk/pull/5167
33+
frame-election-provider-support = { workspace = true, default-features = true, features = ["std"] }
3234
frame-support = { workspace = true, default-features = true }
3335
trybuild = { workspace = true }

0 commit comments

Comments
 (0)