Skip to content

Overhaul falky tests #9

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

Merged
merged 6 commits into from
Mar 17, 2025
Merged

Conversation

SmithChart
Copy link
Member

The two tests test_tacd_dut_power_off_floating and test_network_tftp have been proven to be flaky in CI.
This PR aims at improving the tests.

The tolerance of the complete measurement-chain with a single sample
and only little time for analog settling seems to be higher than 10 %.
With 15 % tolerance the test succeeds.
Every now and than this test randomly fails, because the http-request to
the `tacd` provides an old value. It seems that sometimes 0.2 s are not
enough for the `tacd` to actually provide a new sample.

This change increases the waiting time to 0.5 s, which seems to fix the
issue.
It seems the default timeout of 30 s was too tight for tftp-ing 15 MB.
Measurements show that the transfer takes between 26 and 32 s in about
15 samples.

With with this change we increase the timeout a little bit, so that this
test is hopefully less flaky.
@SmithChart SmithChart requested a review from jluebbe March 14, 2025 13:29
@SmithChart SmithChart self-assigned this Mar 14, 2025
It seems ruff has learned a new trick since the last PR in this repo.
This fixes it.
@jluebbe jluebbe changed the title Overhault falky tests Overhaul falky tests Mar 14, 2025
@SmithChart SmithChart merged commit 2d0360f into linux-automation:master Mar 17, 2025
2 checks passed
@SmithChart SmithChart deleted the less-flaky branch March 17, 2025 07:27
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