Skip to content

subsys: zbus: publish_stats: message_bus.zbus.publish_stats fails #79867

@katgiadla

Description

@katgiadla

Describe the bug
The test tests/subsys/zbus/publish_stats/message_bus.zbus.publish_stats fails

Observed for:

  • nrf52840dk/nrf52840
  • nrf52dk/nrf52832
  • nrf54l15dk/nrf54l15/cpuapp
  • nrf54l15dk/nrf54l15/cpuflpr
  • nrf5340dk/nrf5340/cpunet
  • nrf5340dk/nrf5340/cpuapp
  • nrf5340dk/nrf5340/cpuapp/ns
  • nrf9160dk/nrf9160
  • nrf9160dk/nrf9160/ns
  • nrf54h20dk/nrf54h20/cpuapp
  • nrf54h20dk/nrf54h20/cpurad
  • nrf54h20dk/nrf54h20/cpuppr

To Reproduce
Steps to reproduce the behavior:

  1. have nrf9160dk/nrf9160 connected
  2. go to your zephyr dir
  3. call ./scripts/twister -T tests/subsys/zbus/publish_stats -p nrf9160dk/nrf9160 --device-testing --device-serial /dev/ttyACM0 -v --inline-logs --west-flash="--erase"
  4. See console output with error

Expected behavior
Valid console output

Impact
Not clear

Logs and console output

*** Booting Zephyr OS build v3.7.0-4232-g9b5260de9a31 ***
Running TESTSUITE publish_stats
===================================================================
START - test_channel_metadata

    Assertion failed at zephyr/tests/subsys/zbus/publish_stats/src/main.c:37: publish_stats_test_channel_metadata: 1000 not within zbus_chan_pub_stats_avg_period(&chan) +/- 50

 FAIL - test_channel_metadata in 1.018 seconds
===================================================================
TESTSUITE publish_stats failed.

------ TESTSUITE SUMMARY START ------

SUITE FAIL -   0.00% [publish_stats]: pass = 0, fail = 1, skip = 0, total = 1 duration = 1.018 seconds
 - FAIL - [publish_stats.test_channel_metadata] duration = 1.018 seconds

------ TESTSUITE SUMMARY END ------

===================================================================
RunID: e101656a64ea052518fadcb02f598410
PROJECT EXECUTION FAILED

Environment (please complete the following information):

  • OS: Ubuntu 20.04.1 LTS
  • Toolchain Zephyr SDK 0.16.8
  • Commit SHA or Version used: v3.7.0-4232-g9b5260de9a31

Additional context
Probably introduced by 865f88c

Metadata

Metadata

Assignees

Labels

area: ZbusbugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions