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

Timing tests are flaky and this is very bad #1517

Closed
Patater opened this issue Mar 27, 2018 · 2 comments
Closed

Timing tests are flaky and this is very bad #1517

Patater opened this issue Mar 27, 2018 · 2 comments
Labels
bug component-platform Portability layer and build scripts

Comments

@Patater
Copy link
Contributor

Patater commented Mar 27, 2018

Description

  • Type: Bug
  • Priority: Blocker

Bug

OS
All

mbed TLS build:
Version: development (and many other versions)

Expected behavior

The CI should run tests that are not flaky, so we can reliably tell that PRs or new code additions do not cause regressions.

Actual behavior

The timing tests (timing_suite) sometimes fail and sometimes pass.

What we should do about this

CI should run only non-flaky tests. We've made attempts in the past at improving the tests (like in #1136), but we should instead take a step back and instead of just making the timing tests more robust, think about why we have them in the first place. Then we should determine the most sensible course forward to solving the issues that the timing tests were originally written to solve. If this means we wanted to increase our test coverage via the timing tests, we should consider less flaky ways of increasing test coverage. If we wanted some random timing variation testing, we can exclude such exploratory testing from the CI and perform the testing another way.

@ciarmcom
Copy link

ARM Internal Ref: IOTSSL-2203

@mpg
Copy link
Contributor

mpg commented Apr 9, 2018

Note: most of the failures I've seen were in test_suite_timing, but some also happen in programs/test/selftest, for example https://jenkins-internal.mbed.com/job/mbedtls-pr/1187/execution/node/80/log/

@RonEld RonEld added fix available component-platform Portability layer and build scripts labels Feb 17, 2019
yuhaoth added a commit to yuhaoth/mbedtls1.3 that referenced this issue Apr 18, 2023
See Mbed-TLS#1517. They often failed on the CI.

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
yuhaoth added a commit to yuhaoth/mbedtls1.3 that referenced this issue Apr 18, 2023
See Mbed-TLS#1517. They often failed on the CI.

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug component-platform Portability layer and build scripts
Projects
None yet
Development

No branches or pull requests

4 participants