Skip to content

fix(cli): swap libdbus-backed keyring for pure-Rust zbus#3326

Merged
hubcio merged 2 commits into
masterfrom
drop-libdbus-sys
May 28, 2026
Merged

fix(cli): swap libdbus-backed keyring for pure-Rust zbus#3326
hubcio merged 2 commits into
masterfrom
drop-libdbus-sys

Conversation

@hubcio
Copy link
Copy Markdown
Contributor

@hubcio hubcio commented May 27, 2026

libdbus-sys vendored build fails on FreeBSD with
"Unsupported platform" (diwic/dbus-rs#497, upstream
not fixed for more than 1 year), blocking iggy-cli on every Tier-2
target that lacks libdbus-1.

Replace dbus-secret-service-keyring-store with
zbus-secret-service-keyring-store on Linux. Both crates
target the same org.freedesktop.Secret D-Bus service,
so existing gnome-keyring / KWallet / KeePassXC entries
round-trip unchanged. zbus is pure Rust: no libdbus-sys,
no libdbus-1 system package, no vendored C build, no
unsafe FFI on the keyring path.

Picks the rt-async-io-crypto-rust feature, NOT
rt-tokio-*: under the tokio feature, zbus::block_on
constructs a fresh multi-thread runtime and blocks on
it, which panics when invoked from inside the CLI's
block_on runs on a parker thread and is safe from any
async context.

Drops the aarch64-musl CFLAGS=-mno-outline-atomics
linker hack from CI; it only existed for the libdbus
C build.

This closes #1710.

@github-actions github-actions Bot added the S-waiting-on-review PR is waiting on a reviewer label May 27, 2026
@hubcio hubcio changed the title fix(cli): swap libdbus-backed keyring for pure-Rust zbus (#1710) fix(cli): swap libdbus-backed keyring for pure-Rust zbus May 27, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.16%. Comparing base (6db9132) to head (73eb973).

Additional details and impacted files
@@              Coverage Diff              @@
##             master    #3326       +/-   ##
=============================================
- Coverage     73.57%   49.16%   -24.41%     
  Complexity      943      943               
=============================================
  Files          1241     1239        -2     
  Lines        115147    99929    -15218     
  Branches      91633    76444    -15189     
=============================================
- Hits          84719    49133    -35586     
- Misses        27580    48219    +20639     
+ Partials       2848     2577      -271     
Components Coverage Δ
Rust Core 42.43% <ø> (-32.09%) ⬇️
Java SDK 58.44% <ø> (ø)
C# SDK 70.12% <ø> (-0.55%) ⬇️
Python SDK 81.06% <ø> (ø)
Node SDK 91.44% <ø> (-0.10%) ⬇️
Go SDK 40.20% <ø> (ø)
Files with missing lines Coverage Δ
core/cli/src/commands/binary_system/session.rs 71.69% <ø> (ø)

... and 345 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hubcio hubcio force-pushed the drop-libdbus-sys branch from 0f7e0c7 to bc718c4 Compare May 27, 2026 21:28
libdbus-sys vendored build fails on FreeBSD with
"Unsupported platform" (diwic/dbus-rs#497, upstream
declined to fix), blocking iggy-cli on every Tier-2
target that lacks libdbus-1.

Replace dbus-secret-service-keyring-store with
zbus-secret-service-keyring-store on Linux. Both crates
target the same org.freedesktop.Secret D-Bus service,
so existing gnome-keyring / KWallet / KeePassXC entries
round-trip unchanged. zbus is pure Rust: no libdbus-sys,
no libdbus-1 system package, no vendored C build, no
unsafe FFI on the keyring path.

Picks the `rt-async-io-crypto-rust` feature, NOT
`rt-tokio-*`: under the tokio feature, zbus::block_on
constructs a fresh multi-thread runtime and blocks onq
it, which panics when invoked from inside the CLI's
block_on runs on a parker thread and is safe from any
async context.

Drops the aarch64-musl `CFLAGS=-mno-outline-atomics`
linker hack from CI; it only existed for the libdbus
C build.
@hubcio hubcio force-pushed the drop-libdbus-sys branch from bc718c4 to b9ce11a Compare May 28, 2026 08:52
hubcio added a commit that referenced this pull request May 28, 2026
PR #3326 C++ e2e failed with ENOSPC writing runner
log, cascading to C++ build/test cancellation and
finalize_pr failure. Only Rust pre-merge and two
workflows had inline cleanup (~14GB freed); cpp,
csharp, java, node, go, python, php had none.

Wrap jlumbroso/free-disk-space@v1.3.1 (SHA-pinned,
already used by apache/infrastructure-actions and
rust-lang/rust) in a shared composite. Frees ~30GB
by also wiping Haskell, large APT packages, Docker
images, and swap. Replace inline cleanups; invoke
from every SDK pre-merge, gated to skip fast lint
tasks where the ~90s apt removals dominate runtime.
hubcio added a commit that referenced this pull request May 28, 2026
PR #3326 C++ e2e failed with ENOSPC writing runner
log, cascading to C++ build/test cancellation and
finalize_pr failure. Only Rust pre-merge and two
workflows had inline cleanup (~14GB freed); cpp,
csharp, java, node, go, python, php had none.

Wrap jlumbroso/free-disk-space@v1.3.1 (SHA-pinned,
already used by apache/infrastructure-actions and
rust-lang/rust) in a shared composite. Frees ~30GB
by also wiping Haskell, large APT packages, Docker
images, and swap. Replace inline cleanups; invoke
from every SDK pre-merge, gated to skip fast lint
tasks where the ~90s apt removals dominate runtime.
@hubcio hubcio merged commit d66287a into master May 28, 2026
89 checks passed
@hubcio hubcio deleted the drop-libdbus-sys branch May 28, 2026 20:31
@github-actions github-actions Bot removed the S-waiting-on-review PR is waiting on a reviewer label May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ feature request ] Feature to replace dependency on libdbus-sys via keyring

3 participants