This is an automated email from the ASF dual-hosted git repository.

piotr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git


The following commit(s) were added to refs/heads/master by this push:
     new 62f7256e2 fix(ci): fix gnome-keyring locking mid-test in CI (#2868)
62f7256e2 is described below

commit 62f7256e298b8740b67551cb4bf632a4af91cb71
Author: Hubert Gruszecki <[email protected]>
AuthorDate: Wed Mar 4 21:18:27 2026 +0100

    fix(ci): fix gnome-keyring locking mid-test in CI (#2868)
---
 .github/actions/rust/pre-merge/action.yml | 6 ++++--
 .github/workflows/post-merge.yml          | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/.github/actions/rust/pre-merge/action.yml 
b/.github/actions/rust/pre-merge/action.yml
index e2c29f0fd..398cf4397 100644
--- a/.github/actions/rust/pre-merge/action.yml
+++ b/.github/actions/rust/pre-merge/action.yml
@@ -94,9 +94,11 @@ runs:
     - name: Install dependencies for Rust tests
       if: inputs.task == 'test' && runner.os == 'Linux'
       run: |
-        sudo apt-get update --yes && sudo apt-get install --yes musl-tools 
gnome-keyring keyutils
+        sudo apt-get update --yes && sudo apt-get install --yes musl-tools 
gnome-keyring keyutils dbus-x11
         rm -f $HOME/.local/share/keyrings/*
-        echo -n "test" | gnome-keyring-daemon --unlock
+        eval $(dbus-launch --sh-syntax)
+        echo "DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS" >> 
$GITHUB_ENV
+        echo -n "test" | gnome-keyring-daemon --unlock --components=secrets
       shell: bash
 
     - name: Install cargo-llvm-cov
diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml
index fb32e86f9..7a0964fa7 100644
--- a/.github/workflows/post-merge.yml
+++ b/.github/workflows/post-merge.yml
@@ -188,9 +188,11 @@ jobs:
       - name: Install system dependencies
         run: |
           sudo apt-get update --yes
-          sudo apt-get install --yes gnome-keyring keyutils
+          sudo apt-get install --yes gnome-keyring keyutils dbus-x11
           rm -f $HOME/.local/share/keyrings/*
-          echo -n "test" | gnome-keyring-daemon --unlock
+          eval $(dbus-launch --sh-syntax)
+          echo "DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS" >> 
$GITHUB_ENV
+          echo -n "test" | gnome-keyring-daemon --unlock --components=secrets
 
       - name: Setup Rust with cache
         uses: ./.github/actions/utils/setup-rust-with-cache

Reply via email to