Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI Issue - tarpaulin compilation fails #1212

Closed
Dinonard opened this issue Mar 29, 2024 · 1 comment
Closed

CI Issue - tarpaulin compilation fails #1212

Dinonard opened this issue Mar 29, 2024 · 1 comment

Comments

@Dinonard
Copy link
Member

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.

@Dinonard
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant