Files
pezkuwi-sdk/.github/workflows/tests-linux-stable-xp.yml
T
pezkuwichain da5ddc4e20 fix: add SKIP_WASM_BUILD to all workflows affected by serde_core issue
Workflows updated:
- tests-evm.yml: differential-tests and evm-test-suite jobs
- tests-linux-stable-coverage.yml: test-linux-stable-coverage job
- tests-linux-stable-xp.yml: both test jobs (currently disabled but ready)
- tests-misc.yml: test-full-crypto-feature job

All changes include tracking comment for issue #358.
The serde_core + Rust 1.88 + wasm32 combination causes duplicate lang item
error. These jobs don't require WASM output, so skip it.
2026-01-28 05:38:54 +03:00

99 lines
3.3 KiB
YAML

# GHA for test-linux-stable-int, test-linux-stable, test-linux-stable-oldkernel with new runners
name: tests linux stable experimental
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
isdraft:
uses: ./.github/workflows/reusable-isdraft.yml
preflight:
needs: isdraft
if: false
uses: ./.github/workflows/reusable-preflight.yml
# No filter for 'all_security_features_work' and 'nonexistent_cache_dir'
# run all tests on cattery runners
test-linux-stable-no-try-runtime:
needs: [preflight]
if: ${{ needs.preflight.outputs.changes_rust }}
runs-on: ubuntu-latest
timeout-minutes: 60
container:
image: ${{ needs.preflight.outputs.IMAGE }}
options: --privileged
strategy:
fail-fast: false
matrix:
partition: [1/2, 2/2]
env:
RUST_TOOLCHAIN: stable
# Enable debug assertions since we are running optimized builds for testing
# but still want to have debug assertions.
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
# Temporary: Skip WASM build due to serde_core + Rust 1.88 + WASM bug
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
SKIP_WASM_BUILD: 1
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: script
id: required
run: |
cargo nextest run --workspace \
--locked \
--release \
--no-fail-fast \
--features experimental,ci-only-tests \
--partition count:${{ matrix.partition }}
test-linux-stable:
needs: [preflight]
runs-on: ${{ matrix.runners }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
partition: [1/3, 2/3, 3/3]
runners: [ubuntu-latest]
container:
image: ${{ needs.preflight.outputs.IMAGE }}
# needed for tests that use unshare syscall
options: --privileged
env:
RUST_TOOLCHAIN: stable
# Enable debug assertions since we are running optimized builds for testing
# but still want to have debug assertions.
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
# Temporary: Skip WASM build due to serde_core + Rust 1.88 + WASM bug
# Tracking: https://github.com/pezkuwichain/pezkuwi-sdk/issues/358
SKIP_WASM_BUILD: 1
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: script
id: required
run: |
# Fixes "detected dubious ownership" error in the ci
git config --global --add safe.directory '*'
cargo nextest run \
--workspace \
--locked \
--release \
--no-fail-fast \
--cargo-quiet \
--features try-runtime,experimental,ci-only-tests \
--partition count:${{ matrix.partition }}
# run runtime-api tests with `enable-pez-staging-api` feature on the 1st node
- name: runtime-api tests
if: ${{ matrix.partition == '1/3' }}
run: cargo nextest run -p pezsp-api-test --features enable-pez-staging-api --cargo-quiet