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

hubcio 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 9e6921596 fix(message_bus): expose background_tasks_len in release 
builds (#3242)
9e6921596 is described below

commit 9e692159645761f2a2d53339cb48c15e7a6107a4
Author: Hubert Gruszecki <[email protected]>
AuthorDate: Tue May 12 12:20:33 2026 +0200

    fix(message_bus): expose background_tasks_len in release builds (#3242)
    
    The accessor was gated by `#[cfg(any(test, debug_assertions))]`,
    which hid it from the `installer_panic_cleanup` integration test
    in release builds: integration tests live in a separate crate, so
    the library's `cfg(test)` is unset, and `debug_assertions` is off
    under `--release`. Both predicates failed only in the release ×
    integration-test quadrant, which CI does not exercise.
    
    Drop the cfg and mark `#[doc(hidden)]`. The accessor is a zero-cost
    getter over a `RefCell<Vec<_>>` and carries no prod risk; doc-hidden
    preserves the "test-only invariant probe" signal without breaking
    external test crates.
    
    Fixes #3234
---
 core/message_bus/src/lib.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/message_bus/src/lib.rs b/core/message_bus/src/lib.rs
index 690a8db16..a927bf8c6 100644
--- a/core/message_bus/src/lib.rs
+++ b/core/message_bus/src/lib.rs
@@ -623,7 +623,7 @@ impl IggyMessageBus {
     /// callers. A long-running bus is expected to keep this number
     /// bounded under sustained accept traffic; a leak shows up here as
     /// monotonic growth proportional to total accepts.
-    #[cfg(any(test, debug_assertions))]
+    #[doc(hidden)]
     #[must_use]
     pub fn background_tasks_len(&self) -> usize {
         self.background_tasks.borrow().len()

Reply via email to