Skip to content

Conversation

@JordanYates
Copy link
Contributor

zbus_chan_pub_stats_msg_age returns milliseconds, while clock_window is in clock ticks. Update the thresholds to refer to the same 50ms window as clock_window.

Fixes #99500.

@JordanYates
Copy link
Contributor Author

@katgiadla please validate on the failing hardware

@zephyrbot zephyrbot added area: Zbus area: Tests Issues related to a particular existing or missing test labels Nov 20, 2025
Copy link
Contributor

@rodrigopex rodrigopex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is repetitive usage of a constant. Could you move that to a define or static constant with a meaningful name? That would reduce maintenance effort.

`zbus_chan_pub_stats_msg_age` returns milliseconds, while `clock_window`
is in clock ticks. Update the thresholds to refer to the same 50ms
window as `clock_window`.

Fixes zephyrproject-rtos#99500.

Signed-off-by: Jordan Yates <jordan@embeint.com>
@JordanYates JordanYates force-pushed the 251120_zbus_pub_stats branch from b6de3ad to 084924e Compare November 20, 2025 22:56
@sonarqubecloud
Copy link

@rodrigopex rodrigopex requested a review from pdgendt November 21, 2025 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Tests Issues related to a particular existing or missing test area: Zbus

Projects

None yet

Development

Successfully merging this pull request may close these issues.

subsys: zbus: publish_stats: message_bus.zbus.publish_stats fails

4 participants