-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
proc-macro crate in workspace unexpectently exits #1642
Comments
Hmm that's super odd, could you add I don't really use windows so this might take me some time to replicate (I need to find a windows machine and setup a dev env or find a friend who can help to get a quicker turnaround) |
I'm seeing something similar on Linux after upgrading to Rust 1.83.0, both in CI (GitHub Actions) and locally (Arch). Rust 1.82.0 seems to work fine. |
oh weird/interesting that's very helpful thanks 👍 |
Output from --dump-traces: tarpaulin_20241129173337.json |
Of course, feel free to split this into a separate issue if it seems unrelated. |
Locally (Rust 1.83, Fedora Linux, amd64) I see these messages right before the test failure.
I do not see the link message on GitHub Actions (Source).
Since this is a linking issue, this change sounds relevant: "The sysroot no longer contains the std dynamic library in its top-level lib/ dir." rust-lang/rust#131188 The issue does not appear with Rust 1.82. The version of tarpaulin (0.31.2 or 0.31.3) does not make a difference. |
Oh one thing that another person with the issue has confirmed is that |
There is a problem of testing proc-macro crates with Rust 1.83: xd009642/tarpaulin#1642 (comment)
Describe the bug
Workspaces with a proc-macro crate fail to execute tests (The failure happens when execution of the test exe begins, but before any test starts) with the following error:
I can only reproduce on a github action
windows-latest
runner (but 100% of the time). It does not happen on ubuntu-latest image (even with the--engine llvm
flag) and it does not happen on windows locally. it fails with or without any tests actually in the crate. It fails withengine llvm
and--no-dead-code
I tried adding tests to see if that helped any, but it continued to fail. I also tried adding tests as described in #326 but it continues to fail.
I am currently on:
cargo-tarpaulin 0.31.2
1.80.0
To Reproduce
I have set up a repo with a CI job that hits the issue: Javagedes/rust-ci-testing with an example run here: action/Run Tests
Expected behavior
I would expect the test harness to not unexpectedly fail without running any tests.
The text was updated successfully, but these errors were encountered: