From 414b477ab9527dfb544719fef4abb3b751dd2fd5 Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Tue, 27 Jan 2026 02:21:05 +0300 Subject: [PATCH] fix(ci): exclude zombienet-sdk-tests from doc tests The crate's build.rs runs nested cargo build which doesn't inherit workspace [patch.crates-io] settings, causing serde_core duplicate lang item error with wasm32 target. This is a test-only crate and doesn't affect mainnet binaries. Tracking issue: #357 --- .github/workflows/docs.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a75f3123..49a1ac9e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -38,7 +38,10 @@ jobs: shared-key: test-doc cache-on-failure: true - - run: cargo test --doc --workspace --locked --all-features + # Exclude pezkuwi-zombienet-sdk-tests: its build.rs runs nested cargo build + # which doesn't inherit workspace [patch.crates-io] settings, causing + # serde_core duplicate lang item error. See: https://github.com/pezkuwichain/pezkuwi-sdk/issues/357 + - run: cargo test --doc --workspace --locked --all-features --exclude pezkuwi-zombienet-sdk-tests id: required build-rustdoc: @@ -61,7 +64,9 @@ jobs: shared-key: build-rustdoc cache-on-failure: true - - run: cargo doc --all-features --workspace --no-deps --locked + # Exclude pezkuwi-zombienet-sdk-tests: nested cargo build in build.rs + # doesn't inherit workspace patches. See test-doc job comment. + - run: cargo doc --all-features --workspace --no-deps --locked --exclude pezkuwi-zombienet-sdk-tests id: required - run: rm -f ./target/doc/.lock - run: mv ./target/doc ./crate-docs