Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: settings: delay after connection for log flush #739

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

sam-golioth
Copy link
Contributor

@sam-golioth sam-golioth commented Jan 29, 2025

When registering settings during the HIL test, we get a flood of log messages. On some platforms this can overwhelm the log buffer and lead to dropped messages. If one of those dropped messages is the connection message that the test scripts wait for, the test will fail.

Now, we add a small delay after registering the settings to give time for the log buffer to flush, and then send a new "settings registration complete" message for the test script to key off of. This ensures the test script receives the message, and increases the stability of the test.

Resolves golioth/firmware-issue-tracker#737

Copy link

github-actions bot commented Jan 29, 2025

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

https://golioth-firmware-sdk-doxygen-dev--pr739-add-settings-d-m9h8o88u.web.app

(expires Wed, 05 Feb 2025 19:27:09 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: a9993e61697a3983f3479e468bcb0b616f9a0578

Copy link

github-actions bot commented Jan 29, 2025

Code Coverage

Code Coverage

Package Line Rate Branch Rate Health
include.golioth 75% 50%
port.linux 62% 34%
port.utils 58% 46%
port.zephyr 58% 25%
src 67% 30%
Summary 66% (2704 / 4086) 30% (1118 / 3712)

Copy link

codecov bot commented Jan 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

see 6 files with indirect coverage changes

When registering settings during the HIL test, we get a flood
of log messages. On some platforms this can overwhelm the log
buffer and lead to dropped messages. If one of those dropped
messages is the connection message that the test scripts wait
for, the test will fail.

Now, we add a small delay after registering the settings to give
time for the log buffer to flush, and then send a new "settings
registration complete" message for the test script to key off of.
This ensures the test script receives the message, and
increases the stability of the test.

Signed-off-by: Sam Friedman <[email protected]>
@sam-golioth sam-golioth merged commit de1956f into main Jan 30, 2025
135 of 140 checks passed
@sam-golioth sam-golioth deleted the add_settings_delay branch January 30, 2025 16:45
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.

3 participants