#1083230 rust-secret-service: autopkgtest failure

#1083230#5
Date:
2024-10-03 13:37:53 UTC
From:
To:
secret-services autopkgtest fails. I was able to get some tests to run
like this: dbus-run-session -- /usr/share/cargo/bin/cargo-auto-test.
They need to depend on dbus-daemon and gnome-keyring for this (in
d/t/control).
Even so, most tests fail:

==============================================================================================================================
   Finished `test` profile [unoptimized + debuginfo] target(s) in 59.15s
     Running `CARGO=/usr/bin/cargo CARGO_MANIFEST_DIR=/usr/share/cargo/registry/secret-service-4.0.0 CARGO_PKG_AUTHORS='Walther Chen <walther.chen@gmail.com>' CARGO_PKG_DESCRIPTION='Library to interface with Secret Service API' CARGO_PKG_HOMEPAGE='https://github.com/hwchen/secret-service-rs.git' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=secret-service CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/hwchen/secret-service-rs.git' CARGO_PKG_RUST_VERSION=1.75.0 CARGO_PKG_VERSION=4.0.0 CARGO_PKG_VERSION_MAJOR=4 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/tmp/tmp.8bpkN7VUni/target/x86_64-unknown-linux-gnu/debug/deps:/tmp/tmp.8bpkN7VUni/target/x86_64-unknown-linux-gnu/debug:/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib' /tmp/tmp.8bpkN7VUni/target/x86_64-unknown-linux-gnu/debug/deps/secret_service-f83d4bc2122752cb`

running 60 tests
test blocking::collection::test::should_delete_collection ... ignored
test blocking::collection::test::should_get_and_set_collection_label ... ignored
test blocking::collection::test::should_lock_and_unlock ... ignored
dbus-daemon[19]: [session uid=1000 pid=19] Activating service name='org.freedesktop.secrets' requested by ':1.4' (uid=1000 pid=1905 comm="/tmp/tmp.8bpkN7VUni/target/x86_64-unknown-linux-gn")
GNOME_KEYRING_CONTROL=/home/unshare/.cache/keyring-G5LOU2
dbus-daemon[19]: [session uid=1000 pid=19] Successfully activated service 'org.freedesktop.secrets'
test blocking::collection::test::should_get_all_items ... FAILED
test blocking::collection::test::should_check_if_collection_locked ... FAILED
test blocking::item::test::should_lock_and_unlock ... ignored
test blocking::item::test::should_check_if_item_locked ... FAILED
test blocking::collection::test::should_create_collection_struct ... FAILED
test blocking::collection::test::should_search_items ... FAILED
test blocking::item::test::should_get_modified_created_props ... FAILED
test blocking::item::test::should_create_and_get_secret ... FAILED
test blocking::item::test::should_get_and_set_item_label ... FAILED
test blocking::item::test::should_get_secret_content_type ... FAILED
test blocking::item::test::should_get_and_set_item_attributes ... FAILED
test blocking::item::test::should_create_and_delete_item ... FAILED
test blocking::item::test::should_create_with_item_attributes ... FAILED
test collection::test::should_delete_collection ... ignored
test blocking::test::should_create_secret_service ... ok
test collection::test::should_get_and_set_collection_label ... ignored
test collection::test::should_lock_and_unlock ... ignored
test blocking::test::should_return_error_if_collection_doesnt_exist ... ok
test blocking::item::test::should_set_secret ... FAILED
test blocking::test::should_get_collection_by_alias ... ok
test blocking::test::should_get_any_collection ... ok
test blocking::test::should_get_default_collection ... FAILED
test blocking::test::should_get_all_collections ... ok
dbus-daemon[19]: [session uid=1000 pid=19] Activating service name='org.gnome.keyring.SystemPrompter' requested by ':1.16' (uid=1000 pid=1943 comm="/usr/bin/gnome-keyring-daemon --start --foreground")
test collection::test::should_get_all_items ... FAILED
test collection::test::should_check_if_collection_locked ... FAILED
test collection::test::should_create_collection_struct ... FAILED
test blocking::item::test::should_create_encrypted_item_from_empty_secret ... FAILED
test collection::test::should_search_items ... FAILED
test item::test::should_create_and_delete_item ... FAILED
test item::test::should_check_if_item_locked ... FAILED
test item::test::should_create_and_get_secret ... FAILED
test item::test::should_lock_and_unlock ... ignored
test blocking::item::test::should_create_and_get_secret_encrypted ... FAILED
test item::test::should_create_with_item_attributes ... FAILED
test item::test::should_get_and_set_item_attributes ... FAILED
test item::test::should_get_modified_created_props ... FAILED
test session::test::should_create_plain_session ... ok
test item::test::should_set_secret ... FAILED
test item::test::should_get_and_set_item_label ... FAILED
test item::test::should_get_secret_content_type ... FAILED
test blocking::item::test::should_create_encrypted_item ... FAILED
test test::should_create_secret_service ... ok
test test::should_get_any_collection ... ok
test test::should_get_collection_by_alias ... ok
test test::should_get_all_collections ... ok

** (gnome-keyring-daemon:1943): CRITICAL **: 12:06:46.725: gkd_secret_service_get_pkcs11_session: assertion 'client' failed

** (gnome-keyring-daemon:1943): CRITICAL **: 12:06:46.725: plain_negotiate: assertion 'session' failed

** (gnome-keyring-daemon:1943): CRITICAL **: 12:06:46.725: gkd_secret_service_publish_dispatch: assertion 'client' failed

(gnome-keyring-daemon:1943): GLib-CRITICAL **: 12:06:46.725: g_variant_get_type: assertion 'value != NULL' failed

(gnome-keyring-daemon:1943): GLib-CRITICAL **: 12:06:46.725: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed

(gnome-keyring-daemon:1943): GLib-CRITICAL **: 12:06:46.725: g_variant_get_type_string: assertion 'value != NULL' failed

(gnome-keyring-daemon:1943): GLib-ERROR **: 12:06:46.725: g_variant_new: expected GVariant of type 'v' but received value has type '(null)'
test test::should_get_default_collection ... FAILED
test test::should_search_items ... FAILED
test blocking::item::test::should_get_encrypted_secret_across_dbus_connections ... FAILED
test test::should_return_error_if_collection_doesnt_exist ... FAILED

(gcr-prompter:1990): Gtk-WARNING **: 12:06:46.728: cannot open display:
dbus-daemon[19]: [session uid=1000 pid=19] Activated service 'org.gnome.keyring.SystemPrompter' failed: Process org.gnome.keyring.SystemPrompter exited with status 1
dbus-daemon[19]: [session uid=1000 pid=19] Activating service name='org.freedesktop.secrets' requested by ':1.25' (uid=1000 pid=1905 comm="/tmp/tmp.8bpkN7VUni/target/x86_64-unknown-linux-gn")
GNOME_KEYRING_CONTROL=/home/unshare/.cache/keyring-YN7PU2
dbus-daemon[19]: [session uid=1000 pid=19] Successfully activated service 'org.freedesktop.secrets'
test blocking::test::should_search_items ... FAILED
test item::test::should_create_encrypted_item ... FAILED
test item::test::should_create_and_get_secret_encrypted ... FAILED
test item::test::should_get_encrypted_secret_across_dbus_connections ... FAILED
test item::test::should_create_encrypted_item_from_empty_secret ... FAILED
test session::test::should_create_encrypted_session ... ok
test blocking::test::should_create_and_delete_collection has been running for over 60 seconds
test test::should_create_and_delete_collection has been running for over 60 seconds
========================================================================================

Skipping the other failing tests would likely get the testsuite to pass,
but I wonder if it is worth enabling at all since accessing the keyring
in a chroot enviroment is prone to breakage and timeouts as evidenced
above.

Nevertheless, either the tests should be skipped altogether or enabled
so this package can enter testing.

best,

Matthias Geiger <werdahias>


- -- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.10.11-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: OpenRC (via /run/openrc), PID 1: init
LSM: AppArmor: enabled
-----BEGIN PGP SIGNATURE-----

iIsEARYIADMWIQQUWTv/Sl6/b+DpcW7svtu2B7myvgUCZv6eKxUcd2VyZGFoaWFz
QGRlYmlhbi5vcmcACgkQ7L7btge5sr5C8wD/X93oScH1X8L22YhSPPztLQ1/Q9E5
QrgRFuQhvobjRqwA/A3G/wyCoFbn6pAaw9xmqJPxKNCMkq/jmuzX7q+iSi4M
=XSzO
-----END PGP SIGNATURE-----

#1083230#10
Date:
2025-08-22 02:36:12 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
rust-secret-service, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1083230@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Peter Michael Green <plugwash@debian.org> (supplier of updated rust-secret-service package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 22 Aug 2025 01:42:26 +0000
Source: rust-secret-service
Architecture: source
Version: 4.0.0-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Changed-By: Peter Michael Green <plugwash@debian.org>
Closes: 1083230 1102276
Changes:
 rust-secret-service (4.0.0-5) unstable; urgency=medium
 .
   * Team upload.
   * Package secret-service 4.0.0 from crates.io using debcargo 2.7.8
   * Mark all tests as broken for now, they need a dbus environment with
     secret-service (Closes: #1083230)
   * Stop patching default feature (Closes: #1102276)
   * Use rt-async-io-crypto-openssl feature for build time testing.
   * Add build-depends needed for rt-async-io-crypto-openssl feature.
Checksums-Sha1:
 0f6c3eede8c60b050259f029f0bba8d4ee62419b 2850 rust-secret-service_4.0.0-5.dsc
 667e5ffb88cd1db38ce687625d3efb3e07a028f0 4904 rust-secret-service_4.0.0-5.debian.tar.xz
 711e43aae2d8b07ba8321a0f617200140881605f 8543 rust-secret-service_4.0.0-5_source.buildinfo
Checksums-Sha256:
 a0ede3201b63be9645ffc0b23f5c7da3c40859524603d71bf5c48ba8de83b1a6 2850 rust-secret-service_4.0.0-5.dsc
 f7f73f90d0b3ed082cdff45da3a63887882470c3f5dde0a097b7e0912559759c 4904 rust-secret-service_4.0.0-5.debian.tar.xz
 3006ed0db8e0341c475567d9622a152509696613c56f0546150e714ed13fa18e 8543 rust-secret-service_4.0.0-5_source.buildinfo
Files:
 cceab5bb835745f6b8235f9a62aee901 2850 rust optional rust-secret-service_4.0.0-5.dsc
 a317375bc5add63b6ffeeca750cc001c 4904 rust optional rust-secret-service_4.0.0-5.debian.tar.xz
 b05e6893c976135940005286ef6fb303 8543 rust optional rust-secret-service_4.0.0-5_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJIBAEBCAAyFiEEU0DQATYMplbjSX63DEjqKnqP/XsFAminyygUHHBsdWd3YXNo
QGRlYmlhbi5vcmcACgkQDEjqKnqP/Xvt6A//XLBw7O+pdzuHj/MVDQSFwy5M3BIb
gwszOyuzFgdNrSvWNfNYjnSsCcFF7p/ctY+YIDBRpRXD6yrkXLmiEqIfsbik3OFU
ju/Vs68Po9x/2+44IYa8aSsuUWqKNTSDETzYQc2I6DxXUZJJ9wXPfR4nbmxxEne6
JQZZ/JNPd3uz358nrm1HQ/oZdUZofeKtL0GSMw/o0lV3emgrgSoNPgJ/LdIOcVwS
IODQgU6UMUCZxCQk+9dyaZ+pncvFCOph92uphJPN9SJ2X/jB/Pt24qQ1ajutl5WA
cL0vhyRGwgn9JaTjcQinlk69hhK2vdRNO8ZCFf5kU6yJ/7gaDoHlhTze3Py5JuiR
Vknbqmfg2v6QC+fOn9CP3jBHU44OA9+I8TK6dt9S+jTWpGj3ol3wvFe4F2s39Lzx
AbPWHjSTHI+SAAlobCXdhTzP2CWMZzl2XVhNle4mCm/L73ucPjUVnCGv763p09cy
nbi8L6gQbfxxujyE+DvLge81RGG5KeGDSDUDkYRMiWfNc9bZmRKDrbqLnNVNsHpu
K8iKA0riE7k5qNwjPdkjgFMrb0MH/3S8QA3HzKTK2W7sPGkGcH7EuXut0U4sOjng
4fhOQKaI1PmHogxcTOkNRtxeUkPC9EX7xupyw++4/8jFL+haavPREFVzjkJvnuN4
mTaAi1YZT+R0MPk=
=c1lD
-----END PGP SIGNATURE-----