This is an automated email from the ASF dual-hosted git repository.
mmodzelewski 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 f65bb974f fix(integration): gate keyring setup on supported targets
(#3717)
f65bb974f is described below
commit f65bb974fd17a03783286e36a793cb548b2177e2
Author: Alan Tang <[email protected]>
AuthorDate: Tue Jul 21 18:19:43 2026 +0800
fix(integration): gate keyring setup on supported targets (#3717)
---
core/integration/tests/cli/common/keyring.rs | 7 +++++--
core/integration/tests/cli/common/mod.rs | 5 +++--
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/core/integration/tests/cli/common/keyring.rs
b/core/integration/tests/cli/common/keyring.rs
index fcb0eb251..d1403f9be 100644
--- a/core/integration/tests/cli/common/keyring.rs
+++ b/core/integration/tests/cli/common/keyring.rs
@@ -42,6 +42,7 @@ mod backend {
})
}
+ #[cfg(not(any(target_os = "macos", target_env = "musl")))]
pub(crate) fn ensure_keyring_store() {
if let Err(msg) = init_store() {
panic!("{msg}");
@@ -65,10 +66,12 @@ mod backend {
mod backend {
use std::net::SocketAddr;
+ #[cfg(not(any(target_os = "macos", target_env = "musl")))]
pub(crate) fn ensure_keyring_store() {}
pub(crate) fn clear_session_entry(_address: SocketAddr) {}
}
-#[allow(unused_imports)]
-pub(crate) use backend::{clear_session_entry, ensure_keyring_store};
+pub(crate) use backend::clear_session_entry;
+#[cfg(not(any(target_os = "macos", target_env = "musl")))]
+pub(crate) use backend::ensure_keyring_store;
diff --git a/core/integration/tests/cli/common/mod.rs
b/core/integration/tests/cli/common/mod.rs
index c4acb0068..31a04fdf3 100644
--- a/core/integration/tests/cli/common/mod.rs
+++ b/core/integration/tests/cli/common/mod.rs
@@ -20,8 +20,9 @@ pub(crate) mod help;
pub(crate) mod keyring;
pub(crate) use crate::cli::common::command::IggyCmdCommand;
pub(crate) use crate::cli::common::help::{CLAP_INDENT, TestHelpCmd,
USAGE_PREFIX};
-#[allow(unused_imports)]
-pub(crate) use crate::cli::common::keyring::{clear_session_entry,
ensure_keyring_store};
+pub(crate) use crate::cli::common::keyring::clear_session_entry;
+#[cfg(not(any(target_os = "macos", target_env = "musl")))]
+pub(crate) use crate::cli::common::keyring::ensure_keyring_store;
use assert_cmd::assert::{Assert, OutputAssertExt};
use assert_cmd::prelude::CommandCargoExt;
use async_trait::async_trait;