nextest: No such file or directory when trying to run tests in another docker container than it was built in

Hey

I build the tests in a docker stage and execute them in the next. I run into

│ Running tests in sequence                                                                                                                                                                                                  │
│   Extracting 1 binaries to /tmp/nextest-archive-bb9dDJ                                                                                                                                                                     │
│    Extracted 3 files to /tmp/nextest-archive-bb9dDJ in 1.58s                                                                                                                                                               │
│ Error:                                                                                                                                                                                                                     │
│    0: error building test list                                                                                                                                                                                             │
│    1: running ''/tmp/nextest-archive-bb9dDJ/target/debug/deps/integration_tests-9cdfa58268cee69f --list --format terse'' failed                                                                                            │
│    2: No such file or directory (os error 2)                                                                                                                                                                               │
│                                                                                                                                                                                                                            │
│   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━                                                                                                                                         │
│                                 ⋮ 3 frames hidden ⋮                                                                                                                                                                        │
│    4: cargo_nextest::dispatch::App::build_test_list::h0b139060a3d7e2cb                                                                                                                                                     │
│       at <unknown source file>:<unknown line>                                                                                                                                                                              │
│    5: cargo_nextest::dispatch::CargoNextestApp::exec::hc26ab86754cfce02                                                                                                                                                    │
│       at <unknown source file>:<unknown line>                                                                                                                                                                              │
│    6: cargo_nextest::main::h1c3419e2de29e9b3                                                                                                                                                                               │
│       at <unknown source file>:<unknown line>                                                                                                                                                                              │
│    7: std::sys_common::backtrace::__rust_begin_short_backtrace::h29484de5e2a0cf31                                                                                                                                          │
│       at <unknown source file>:<unknown line>                                                                                                                                                                              │
│    8: std::rt::lang_start::{{closure}}::ha37d78b2499ee6c9                                                                                                                                                                  │
│       at <unknown source file>:<unknown line>                                                                                                                                                                              │
│    9: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::had4f69b3aefb47a8                                                                                                               │
│       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/core/src/ops/function.rs:259                                                                                                                              │
│   10: std::panicking::try::do_call::hf2ad5355fcafe775                                                                                                                                                                      │
│       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:492                                                                                                                                  │
│   11: std::panicking::try::h0a63ac363423e61e                                                                                                                                                                               │
│       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:456                                                                                                                                  │
│   12: std::panic::catch_unwind::h18088edcecb8693a                                                                                                                                                                          │
│       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panic.rs:137                                                                                                                                      │
│   13: std::rt::lang_start_internal::{{closure}}::ha7dad166dc711761                                                                                                                                                         │
│       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/rt.rs:128                                                                                                                                         │
│   14: std::panicking::try::do_call::hda0c61bf3a57d6e6                                                                                                                                                                      │
│       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:492                                                                                                                                  │
│   15: std::panicking::try::hbc940e68560040a9                                                                                                                                                                               │
│       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:456                                                                                                                                  │
│   16: std::panic::catch_unwind::haed0df2aeb3fa368                                                                                                                                                                          │
│       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panic.rs:137                                                                                                                                      │
│   17: std::rt::lang_start_internal::h9c06694362b5b80c                                                                                                                                                                      │
│       at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/rt.rs:128                                                                                                                                         │
│   18: main<unknown>                                                                                                                                                                                                        │
│       at <unknown source file>:<unknown line>                                                                                                                                                                              │
│   19: __libc_start_main<unknown>                                                                                                                                                                                           │
│       at <unknown source file>:<unknown line>                                                                                                                                                                              │
│   20: _start<unknown>                                                                                                                                                                                                      │
│       at <unknown source file>:<unknown line>

I dug around the code and think the default runner is not found. But I did not understand what the default runner actually is. I tried overriding it but to no avail. Do you have any hints how to get it to run? When I just run /tmp/nextest-archive-bb9dDJ/target/debug/deps/integration_tests-9cdfa58268cee69f --list --format terse i get the list of tests successfully 😃

Thanks, Noah

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 22 (13 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks. Looking at this now – this is super interesting.