tokio-rs / tokio

A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
https://tokio.rs
MIT License
26.59k stars 2.45k forks source link

CI failure on windows #6567

Closed Darksonn closed 4 months ago

Darksonn commented 4 months ago

Our windows builds that test all crates have started failing with the following error:

    Finished `test` profile [unoptimized + debuginfo] target(s) in 3m 14s
error: creating test list failed

Caused by:
  for `tokio-macros`, command `'D:\a\tokio\tokio\target\debug\deps\tokio_macros-2a8683d94d36d244.exe' --list --format terse` exited with code 0xc0000135: The specified module could not be found. (os error 126)
--- stdout:

--- stderr:

---

The error is happening consistently and will need to be fixed asap, as it is preventing us from merging PRs.

Any ideas?

ChrisDenton commented 4 months ago

This is just a drive-by comment but it looks like that error first occurred 2 days ago: https://github.com/tokio-rs/tokio/actions/runs/9100468527

"The specified module could not be found" usually means a DLL isn't found. If someone runs it locally then they may be able to get more information. Perhaps a directory isn't in PATH that should be?

ChrisDenton commented 4 months ago

Assuming it's not a tokio change that caused this then one thing that stands out is a recent rustup change: https://github.com/rust-lang/rustup/pull/3703. It used to add the bin directory to PATH but no longer does so.

Someone could try setting RUSTUP_WINDOWS_PATH_ADD_BIN=1 in the environment to check.

Darksonn commented 4 months ago

Thanks @ChrisDenton !