[Pkg-rust-maintainers] Bug#995361: rust-trybuild: autopkgtest needs update for new version of rust-dissimilar: failed to select a version for the requirement `dissimilar = "=1.0.1"`

Paul Gevers elbrus at debian.org
Thu Sep 30 10:41:54 BST 2021


Source: rust-trybuild
Version: 1.0.33-1
Severity: serious
X-Debbugs-CC: debian-ci at lists.debian.org, rust-dissimilar at packages.debian.org
Tags: sid bookworm
User: debian-ci at lists.debian.org
Usertags: needs-update
Control: affects -1 src:rust-dissimilar

Dear maintainer(s),

With a recent upload of rust-dissimilar the autopkgtest of rust-trybuild fails
in testing when that autopkgtest is run with the binary packages of
rust-dissimilar from unstable. It passes when run with only packages
from testing. In tabular form:

                       pass            fail
rust-dissimilar        from testing    1.0.2-1
rust-trybuild          from testing    1.0.33-1
all others             from testing    from testing

I copied some of the output at the bottom of this report. To me it looks like
you have to update to the latest version of rust-dissimilar.

Currently this regression is blocking the migration of rust-dissimilar to
testing [1]. Of course, rust-dissimilar shouldn't just break your autopkgtest
(or even worse, your package), but it seems to me that the change in
rust-dissimilar was intended and your package needs to update to the new situation.

If this is a real problem in your package (and not only in your autopkgtest),
the right binary package(s) from rust-dissimilar should really add a versioned
Breaks on the unfixed version of (one of your) package(s). Note: the Breaks is
nice even if the issue is only in the autopkgtest as it helps the migration
software to figure out the right versions to combine in the tests.

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=rust-dissimilar

https://ci.debian.net/data/autopkgtest/testing/amd64/r/rust-trybuild/15624246/log.gz

     Running `/tmp/tmp.KEOBX5QpBM/target/x86_64-unknown-linux-gnu/debug/deps/test-a66e232e07b24214`

running 1 test
error: failed to select a version for the requirement `dissimilar = "=1.0.1"`
candidate versions found which didn't match: 1.0.2
location searched: directory source `/tmp/tmp.KEOBX5QpBM/registry` (which is replacing registry `https://github.com/rust-lang/crates.io-index`)
required by package `trybuild v1.0.33 (/usr/share/cargo/registry/trybuild-1.0.33)`
perhaps a crate was updated and forgotten to be re-vendored?
ERROR: failed to read cargo metadata: EOF while parsing a value at line 1 column 0

test test ... FAILED

failures:

---- test stdout ----
thread 'test' panicked at 'tests failed', src/run.rs:38:13
stack backtrace:
   0: std::panicking::begin_panic
             at /usr/src/rustc-1.50.0/library/std/src/panicking.rs:519:12
   1: trybuild::run::<impl trybuild::Runner>::run::{{closure}}
             at ./src/run.rs:38:13
   2: core::result::Result<T,E>::unwrap_or_else
             at /usr/src/rustc-1.50.0/library/core/src/result.rs:825:23
   3: trybuild::run::<impl trybuild::Runner>::run
             at ./src/run.rs:36:23
   4: <trybuild::TestCases as core::ops::drop::Drop>::drop
             at ./src/lib.rs:282:13
   5: core::ptr::drop_in_place
             at /usr/src/rustc-1.50.0/library/core/src/ptr/mod.rs:179:1
   6: test::test
             at ./tests/test.rs:22:1
   7: test::test::{{closure}}
             at ./tests/test.rs:2:1
   8: core::ops::function::FnOnce::call_once
             at /usr/src/rustc-1.50.0/library/core/src/ops/function.rs:227:5
   9: core::ops::function::FnOnce::call_once
             at /usr/src/rustc-1.50.0/library/core/src/ops/function.rs:227:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.


failures:
    test

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20210930/a60d5394/attachment-0001.sig>


More information about the Pkg-rust-maintainers mailing list