[Pkg-rust-maintainers] Bug#1137611: Bug#1137611: Test "builds_local_registry" tries to open Cargo.lock in write mode
Peter Michael Green
plugwash at debian.org
Mon May 25 22:50:07 BST 2026
Severity 1137611 important
thanks
> When investigating the sha2-0.10 transition being stuck, I noticed the test
> seems unrelated to sha2, but is instead related to filesystem permissions. I'm
> not sure why this was only flagged on riscv64, and how the test has passed in
> the past.
>
> I also noticed there have been new uploads to tame-index in the meantime, so
> this problem may have been solved already, but the patches I looked into seemed
> unrelated to this specific test.
I was also confused and had to re-read the test logs several times before I
figured out what was going on.
The "builds_local_registry" failure is not the cause of the test failures on
riscv64. That test only runs in the all-features test which is already
marked
as "flaky".
The actual failure seems to be a bench that tries to download stuff from the
Internet and fails to do so.
> 2826s Running `CARGO=/usr/bin/cargo CARGO_MANIFEST_DIR=/usr/share/cargo/registry/tame-index-0.26.2 CARGO_MANIFEST_PATH=/usr/share/cargo/registry/tame-index-0.26.2/Cargo.toml CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='Provides access to local and remote cargo registry indices' CARGO_PKG_HOMEPAGE='https://github.com/EmbarkStudios/tame-index' CARGO_PKG_LICENSE='Apache-2.0 OR MIT' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=tame-index CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/EmbarkStudios/tame-index' CARGO_PKG_RUST_VERSION=1.85.0 CARGO_PKG_VERSION=0.26.2 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=26 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/tmp/tmp.0BsgQnQWNu/target/riscv64gc-unknown-linux-gnu/debug/build/ring-810cdc840dfac2ac/out:/tmp/tmp.0BsgQnQWNu/target/riscv64gc-unknown-linux-gnu/debug:/tmp/tmp.0BsgQnQWNu/target/riscv64gc-unknown-linux-gnu/debug/deps:/usr/lib/rustlib/riscv64gc-unknown-linux-gnu/lib' /tmp/tmp.0BsgQnQWNu/target/riscv64gc-unknown-linux-gnu/debug/deps/sparse-176ddc442faf5064`
> 2827s [1;32msparse_fetch[0m warming up for [0;97m3.00s[0m
> 2894s [0;93mUnable to complete 10 samples in 5.0s[0m You may wish to increase target time to 3721.1s or lower the requested number of samples
> 2894s [1;32msparse_fetch[0m mean warm up execution time [0;97m67.66s[0m running [0;97m55.0[0m iterations
> 3172s
> 3172s thread 'main' (23856) panicked at benches/sparse.rs:73:13:
> 3172s failed to download 'cranelift-codegen': error decoding response body
> 3172s stack backtrace:
> 3172s 0: __rustc::rust_begin_unwind
> 3172s at /usr/src/rustc-1.94.1/library/std/src/panicking.rs:689:5
> 3172s 1: core::panicking::panic_fmt
> 3172s at /usr/src/rustc-1.94.1/library/core/src/panicking.rs:80:14
> 3172s 2: sparse::blocking
> 3172s at ./benches/sparse.rs:73:13
> 3172s 3: sparse::main::{{closure}}
> 3172s at ./benches/sparse.rs:54:13
> 3172s 4: tiny_bench::benching::run_with_setup::{{closure}}
> 3172s at /tmp/tmp.0BsgQnQWNu/registry/tiny-bench-0.4.0/src/benching.rs:233:31
> 3172s 5: core::iter::adapters::map::map_fold::{{closure}}
> 3172s at /usr/src/rustc-1.94.1/library/core/src/iter/adapters/map.rs:88:28
> 3172s 6: core::iter::adapters::copied::copy_fold::{{closure}}
> 3172s at /usr/src/rustc-1.94.1/library/core/src/iter/adapters/copied.rs:36:22
> 3172s 7: <core::slice::iter::Iter<T> as core::iter::traits::iterator::Iterator>::fold
> 3172s at /usr/src/rustc-1.94.1/library/core/src/slice/iter/macros.rs:279:27
> 3172s 8: <core::iter::adapters::copied::Copied<I> as core::iter::traits::iterator::Iterator>::fold
> 3172s at /usr/src/rustc-1.94.1/library/core/src/iter/adapters/copied.rs:81:17
> 3172s 9: <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::fold
> 3172s at /usr/src/rustc-1.94.1/library/core/src/iter/adapters/map.rs:128:19
> 3172s 10: core::iter::traits::iterator::Iterator::for_each
> 3172s at /usr/src/rustc-1.94.1/library/core/src/iter/traits/iterator.rs:832:14
> 3172s 11: alloc::vec::Vec<T,A>::extend_trusted
> 3172s at /usr/src/rustc-1.94.1/library/alloc/src/vec/mod.rs:3937:26
> 3172s 12: <alloc::vec::Vec<T,A> as alloc::vec::spec_extend::SpecExtend<T,I>>::spec_extend
> 3172s at /usr/src/rustc-1.94.1/library/alloc/src/vec/spec_extend.rs:27:14
> 3172s 13: <alloc::vec::Vec<T> as alloc::vec::spec_from_iter_nested::SpecFromIterNested<T,I>>::from_iter
> 3172s at /usr/src/rustc-1.94.1/library/alloc/src/vec/spec_from_iter_nested.rs:60:16
> 3172s 14: <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter
> 3172s at /usr/src/rustc-1.94.1/library/alloc/src/vec/spec_from_iter.rs:33:9
> 3172s 15: <alloc::vec::Vec<T> as core::iter::traits::collect::FromIterator<T>>::from_iter
> 3172s at /usr/src/rustc-1.94.1/library/alloc/src/vec/mod.rs:3801:9
> 3172s 16: core::iter::traits::iterator::Iterator::collect
> 3172s at /usr/src/rustc-1.94.1/library/core/src/iter/traits/iterator.rs:2035:9
> 3172s 17: tiny_bench::benching::run_with_setup
> 3172s at /tmp/tmp.0BsgQnQWNu/registry/tiny-bench-0.4.0/src/benching.rs:259:10
> 3172s 18: tiny_bench::benching::bench_with_setup_configuration_labeled
> 3172s at /tmp/tmp.0BsgQnQWNu/registry/tiny-bench-0.4.0/src/benching.rs:211:25
> 3172s 19: sparse::main
> 3172s at ./benches/sparse.rs:50:5
> 3172s 20: core::ops::function::FnOnce::call_once
> 3172s at /usr/src/rustc-1.94.1/library/core/src/ops/function.rs:250:5
> 3172s note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
> 3172s error: test failed, to rerun pass `--bench sparse`
> 3173s autopkgtest [23:08:49]: test librust-tame-index-dev:sparse: -----------------------]
> 3174s autopkgtest [23:08:50]: test librust-tame-index-dev:sparse: - - - - - - - - - - results - - - - - - - - - -
> 3174s librust-tame-index-dev:sparse FAIL non-zero exit status 101
I disabled said bench in 0.26.2-2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20260525/e7e8373f/attachment-0001.htm>
More information about the Pkg-rust-maintainers
mailing list