[Pkg-rust-maintainers] Bug#1124208: rust-mockstream: FTBFS: error: test failed, to rerun pass `--lib`
Santiago Vila
sanvila at debian.org
Sun Dec 28 18:27:06 GMT 2025
Package: src:rust-mockstream
Version: 0.0.3-1
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, this package failed to build.
Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:
https://people.debian.org/~sanvila/build-logs/202512/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:rust-mockstream, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean --buildsystem cargo
dh_auto_clean -O--buildsystem=cargo
debian cargo wrapper: options = ['parallel=2'], profiles = [], parallel = ['-j2'], lto =
debian cargo wrapper: rust_type = x86_64-unknown-linux-gnu, gnu_type = x86_64-linux-gnu
debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', 'clean', '--verbose', '--verbose'],) {'check': True}
Removed 0 files
dh_autoreconf_clean -O--buildsystem=cargo
dh_clean -O--buildsystem=cargo
debian/rules binary
dh binary --buildsystem cargo
dh_update_autotools_config -O--buildsystem=cargo
dh_autoreconf -O--buildsystem=cargo
dh_auto_configure -O--buildsystem=cargo
debian cargo wrapper: options = ['parallel=2'], profiles = [], parallel = ['-j2'], lto =
debian cargo wrapper: rust_type = x86_64-unknown-linux-gnu, gnu_type = x86_64-linux-gnu
debian cargo wrapper: linking /usr/share/cargo/registry/* into /<<PKGBUILDDIR>>/debian/cargo_registry/
dh_auto_build -O--buildsystem=cargo
debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_test -- test --all
debian cargo wrapper: options = ['parallel=2'], profiles = [], parallel = ['-j2'], lto =
debian cargo wrapper: rust_type = x86_64-unknown-linux-gnu, gnu_type = x86_64-linux-gnu
debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', '-Zavoid-dev-deps', 'test', '--verbose', '--verbose', '-j2', '--target', 'x86_64-unknown-linux-gnu', '--all'],) {}
warning: no edition set: defaulting to the 2015 edition while the latest is 2024
Compiling mockstream v0.0.3 (/<<PKGBUILDDIR>>)
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=mockstre [too-long-redacted] stry=/usr/share/cargo/registry`
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=mockstre [too-long-redacted] stry=/usr/share/cargo/registry`
warning: use of deprecated macro `try`: use the `?` operator instead
--> src/tests.rs:133:14
|
133 | let count = try![s.read(v.as_mut())];
| ^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
--> src/tests.rs:48:19
|
48 | assert_eq!(error.description(), "The dog ate the ethernet cable");
| ^^^^^^^^^^^
warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string()
--> src/tests.rs:91:19
|
91 | assert_eq!(error.description(), "Access denied");
| ^^^^^^^^^^^
warning: `mockstream` (lib test) generated 3 warnings
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.71s
Running `CARGO=/usr/bin/cargo CARGO_MANIFEST_DIR=/<<PKG [too-long-redacted] ps/mockstream-e9579755ebdc4d9b`
running 11 tests
test tests::test_failing_mock_stream_chain ... ok
test tests::test_failing_mock_stream_chain_interrupted ... ok
test tests::test_failing_mock_stream_read ... FAILED
test tests::test_failing_mock_stream_write ... FAILED
test tests::test_mock_stream_empty_and_fill ... ok
test tests::test_mock_stream_pop_again ... ok
test tests::test_mock_stream_read ... ok
test tests::test_mock_stream_read_lines ... ok
test tests::test_mock_stream_write ... ok
test tests::test_shared_mock_stream ... ok
test tests::test_sync_mock_stream ... ok
failures:
---- tests::test_failing_mock_stream_read stdout ----
thread 'tests::test_failing_mock_stream_read' (227) panicked at src/tests.rs:48:5:
assertion `left == right` failed
left: "description() is deprecated; use Display"
right: "The dog ate the ethernet cable"
stack backtrace:
0: __rustc::rust_begin_unwind
at /usr/src/rustc-1.91.1/library/std/src/panicking.rs:698:5
1: core::panicking::panic_fmt
at /usr/src/rustc-1.91.1/library/core/src/panicking.rs:75:14
2: core::panicking::assert_failed_inner
at /usr/src/rustc-1.91.1/library/core/src/panicking.rs:439:17
3: core::panicking::assert_failed
at /usr/src/rustc-1.91.1/library/core/src/panicking.rs:394:5
4: mockstream::tests::test_failing_mock_stream_read
at /usr/share/cargo/registry/mockstream-0.0.3/src/tests.rs:48:2
5: mockstream::tests::test_failing_mock_stream_read::{{closure}}
at /usr/share/cargo/registry/mockstream-0.0.3/src/tests.rs:43:35
6: core::ops::function::FnOnce::call_once
at /usr/src/rustc-1.91.1/library/core/src/ops/function.rs:250:5
7: core::ops::function::FnOnce::call_once
at /usr/src/rustc-1.91.1/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
---- tests::test_failing_mock_stream_write stdout ----
thread 'tests::test_failing_mock_stream_write' (228) panicked at src/tests.rs:91:5:
assertion `left == right` failed
left: "description() is deprecated; use Display"
right: "Access denied"
stack backtrace:
0: __rustc::rust_begin_unwind
at /usr/src/rustc-1.91.1/library/std/src/panicking.rs:698:5
1: core::panicking::panic_fmt
at /usr/src/rustc-1.91.1/library/core/src/panicking.rs:75:14
2: core::panicking::assert_failed_inner
at /usr/src/rustc-1.91.1/library/core/src/panicking.rs:439:17
3: core::panicking::assert_failed
at /usr/src/rustc-1.91.1/library/core/src/panicking.rs:394:5
4: mockstream::tests::test_failing_mock_stream_write
at /usr/share/cargo/registry/mockstream-0.0.3/src/tests.rs:91:2
5: mockstream::tests::test_failing_mock_stream_write::{{closure}}
at /usr/share/cargo/registry/mockstream-0.0.3/src/tests.rs:87:36
6: core::ops::function::FnOnce::call_once
at /usr/src/rustc-1.91.1/library/core/src/ops/function.rs:250:5
7: core::ops::function::FnOnce::call_once
at /usr/src/rustc-1.91.1/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
failures:
tests::test_failing_mock_stream_read
tests::test_failing_mock_stream_write
test result: FAILED. 9 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s
error: test failed, to rerun pass `--lib`
dh_auto_test: error: /usr/share/cargo/bin/cargo test --all returned exit code 101
make[1]: *** [debian/rules:6: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:3: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
More information about the Pkg-rust-maintainers
mailing list