AstarNetwork/Astar

CI Issue - tarpaulin compilation fails

Dinonard opened this issue · 1 comments

In uplift to polkadot-v1.3.0, cargo tarpaulin CI run started failing due to the following error:

Compiling sp-runtime-interface v17.0.0 (https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.3.0#401f8a3e)
error: Broken pipe (os error 32)
warning: build failed, waiting for other jobs to finish...
error: could not compile sp-runtime-interface (lib) due to 3 previous errors
Mar 28 15:52:16.965 ERROR cargo_tarpaulin: Failed to compile tests!
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> /home/runner/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/401f8a3/substrate/primitives/runtime-interface/src/impls.rs:45:1
|
45 | assert_eq_size!(usize, u32);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: source type: usize (64 bits)
= note: target type: u32 (32 bits)
= note: this error originates in the macro assert_eq_size (in Nightly builds, run with -Z macro-backtrace for more info)

The issue can be mitigated if astar-client compilation is not excluded from the run.
It's most likely a bug with sp-runtime-interface crate, or something else that relies on it.
Issue was mitigated by re-enabling astar-client compilation, but we should check in future uplifts whether this can be skipped once again.

Solved by running each unit test separately until the culprit crate was identified.