-
-
Notifications
You must be signed in to change notification settings - Fork 106
Why I got error 102 in makefile when running nextest. #2246
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
Comments
Thanks. That's strange. Do you have any other output (stdout/stderr) available? Generally nextest will produce output to stderr if something goes wrong -- are you squelching it? Looking at nextest/cargo-nextest/src/errors.rs Lines 389 to 392 in d4d3b40
cargo locate-project failed. But we should print something to stderr no matter what. An example with a nextest patched so cargo metadata fails:
Also -- can you reproduce this locally? If not, can you ssh into the runner and try it out? You can use something like https://github.com/marketplace/actions/debugging-with-ssh. |
Ahhh so it turns out nextest doesn't produce any output of its own, instead delegating to Cargo. If your Cargo is broken, nextest won't produce anything. That's misleading (nextest should print something). But I think the issue is with your installation of |
Sometimes, `cargo` doesn't produce any output whatsoever (e.g. #2246). Always show something to indicate what command's at fault.
Sometimes, `cargo` doesn't produce any output whatsoever (e.g. #2246). Always show something to indicate what command's at fault.
I've just released cargo-nextest 0.9.93 which improves reporting here, and will tell you which command failed to run. This won't fix your issue but it will hopefully help you diagnose it. Thanks again for reporting the issue! |
Thanks a lot !!! Now i got the failed command after runing
I'm still working on it to figure out why this command failed run after running make. It should be |
I think the new release of |
BTW, I fixed the broken CI in our acitons by running |
Sorry, I've only briefly investigated this. However I don't believe nextest is at fault. I think the issue is that if you set the
Another possible workaround is to try setting |
Ultimately the fix will need to come from cargo and rustup. I don't think there's much nextest can do. Well, I guess one hack would be to check if the |
I have tried |
If there is nothing nextest can do, feel free to close this issue. And let's wait rustup to fix it. |
I've done a bit more investigating today and I'm pretty confident the reason for this I gave above is accurate. If the Other than the workaround you implemented, some possible workarounds I tried:
nextest could treat the |
Thanks for the investigation! Is the issue that nextest is canonicalizing the Cargo path and dereferencing symlinks (which wouldn't quite work with a multicall binary like rustup, I think)? I don't think it did but maybe it does. |
No, nextest isn't doing anything wrong here. It's a Cargo bug that happens in specific circumstances. |
Thanks. Closing this out then. |
This action works successfully on Wed, 12 Mar 2025 03:14:50 GMT.
But it failed on 13 Mar, in this aciton workflow, I got following error:
I am wondering why I got Error 102? Is there any updates on 13 Mar caused the error? Since there is no update in our program between 12 Mar and 13 Mar.
This docs say Error 102 is Running cargo metadata produced an error. But it is ok, when i add command
cargo metadata
in smoke test.And when i run the test command
TEST_WORKDIR_PREFIX="/tmp" RUST_BACKTRACE=1 /home/runner/.cargo/bin/cargo nextest run --no-fail-fast --filter-expr 'test(test) - test(integration)' --workspace --features=virtiofs --release --test-threads 8
in smoke directly, i got the output as expected.The makefile is here. And the related part is fllowing:
Originally posted by @BraveY in #2245
The text was updated successfully, but these errors were encountered: