Skip to content

nextest crashes with an (inactionable) error #1090

@ipetkov

Description

@ipetkov

Hello, thanks for maintaining nextest, it's an awesome test runner!

Recently I tried updating the CI for a large project from using cargo-nextest 0.9.57 to 0.9.61, but I noticed it would consistently fail with the following error:

The application panicked (crashed).
Message:  at least one dependency instance
Location: /private/tmp/nix-build-cargo-nextest-0.9.61.drv-0/cargo-nextest-0.9.61-vendor.tar.gz/guppy/src/graph/build.rs:749

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                                ⋮ 7 frames hidden ⋮
   8: core::option::expect_failed::hb21837e5cc5baf24
      at <unknown source file>:<unknown line>
   9: guppy::graph::build::<impl guppy::graph::graph_impl::PackageLinkImpl>::new::hb7b48c83156c8168
      at <unknown source file>:<unknown line>
  10: guppy::graph::build::GraphBuildState::process_package::h50ffcdc6f2bbc18a
      at <unknown source file>:<unknown line>
  11: <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::try_fold::hf989fe44753715c4
      at <unknown source file>:<unknown line>
  12: core::iter::adapters::try_process::hc9dc0afb22ce8b8e
      at <unknown source file>:<unknown line>
  13: guppy::graph::graph_impl::PackageGraph::from_metadata::h95196efeeeafcbb9
      at <unknown source file>:<unknown line>
  14: cargo_nextest::dispatch::BaseApp::new::h85a535096f0eff96
      at <unknown source file>:<unknown line>
  15: cargo_nextest::dispatch::AppOpts::exec::h2857cb9a8a41c53b
      at <unknown source file>:<unknown line>
  16: cargo_nextest::dispatch::CargoNextestApp::exec::h0d0c6712119da5fb
      at <unknown source file>:<unknown line>
  17: cargo_nextest::main::h8e61fa02158f5282
      at <unknown source file>:<unknown line>
  18: std::sys_common::backtrace::__rust_begin_short_backtrace::h69eecc6337efd2d7
      at <unknown source file>:<unknown line>
  19: std::rt::lang_start::{{closure}}::h3d89c02499118a25
      at <unknown source file>:<unknown line>
  20: std::rt::lang_start_internal::h6f6bdb9ebc0beefc
      at <unknown source file>:<unknown line>
  21: _main<unknown>
      at <unknown source file>:<unknown line>

We've got a pretty large code base which I'm not exactly sure how to minimize into a representative test case, but if you give me a nudge in what might be the problem (something to do with dependencies perhaps?) I can try to make a minimal reproduction that's safe to share.

It looks like this might have been introduced in 0.9.59 (since 0.9.58 seems to work fine), and all later versions have the same issue.

(I do see that the error itself is coming from guppy so I apologize if I've opened an issue in the wrong place, but figured there might be more interesting context here)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions