Skip to content

Conversation

@szczys
Copy link
Contributor

@szczys szczys commented Dec 19, 2025

For sample and integration tests that query logs, use polling to account for the async nature of the logging system.

poll until fetched log count matches the expected number of entries.
Polling includes a timeout and will assert.

Signed-off-by: Mike Szczys <[email protected]>
poll until fetched log count matches the expected number of entries.
Polling includes a timeout and will assert.

Signed-off-by: Mike Szczys <[email protected]>
@github-actions
Copy link

github-actions bot commented Dec 19, 2025

Visit the preview URL for this PR (updated for commit e2e2497):

https://golioth-firmware-sdk-doxygen-dev--pr879-szczys-ci-use-3nufyrbh.web.app

(expires Fri, 26 Dec 2025 21:54:37 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: a9993e61697a3983f3479e468bcb0b616f9a0578

@github-actions
Copy link

github-actions bot commented Dec 19, 2025

Code Coverage

Code Coverage

Package Line Rate Branch Rate Health
include.golioth 75% 50%
port.linux 75% 42%
port.utils 58% 46%
port.zephyr 79% 28%
src 74% 29%
Summary 74% (2850 / 3835) 29% (1605 / 5465)

@codecov
Copy link

codecov bot commented Dec 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 3 files with indirect coverage changes

@szczys szczys force-pushed the szczys/ci-use-polling-for-logs branch from 0bff22e to 71fa9d6 Compare December 19, 2025 21:23
poll until fetched log count matches the expected number of entries.
Polling includes a timeout and will assert.

Signed-off-by: Mike Szczys <[email protected]>
poll until fetched log count matches the expected number of entries.
Polling includes a timeout and will assert.

Signed-off-by: Mike Szczys <[email protected]>
- Use `is not` instead of `!=` when comparing to None
- Use `except Exception:` in place of `except:`

This commit does not not alter any functionality of the test.

Signed-off-by: Mike Szczys <[email protected]>
poll until fetched log count matches the expected number of entries.
Polling includes a timeout and will assert.

Signed-off-by: Mike Szczys <[email protected]>
@szczys szczys force-pushed the szczys/ci-use-polling-for-logs branch from 71fa9d6 to e2e2497 Compare December 19, 2025 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants