mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 13:02:07 +03:00
354ee94a2f
- As asked for by @hubertp who was encountering flaky test failures on CI in the Http_Spec and related ones, I'm adding retry logic to make such cases much less likely. - I've made the test server randomly fail 50% of tests and with the retry logic the tests are still passing, so I think that should be much more robust, in practice the failure rate is much much less (I imagine <1% as most of the time these tests were working and we do a ton of requests in a single CI run). - I move the `with_retries` method to now be `Test.with_retries` which can be used anywhere in our tests for the retry logic. - It sleeps for 0.1s between retries. Not all kinds of tests need it, this was mostly for propagation delays in the Cloud in our tests. I was thinking if the delay should be configurable, but I think the 0.1s delay is not problematic and if our tests are sometimes failing due to high machine load, the delay could also help. - This _does not_ add retry logic to raw HTTP operations or `Data.fetch`. We may add that later, but that needs some further design. In such case we may remove some retries from tests if they become unnecessary. |
||
---|---|---|
.. | ||
AWS_Tests | ||
Base_Tests | ||
Benchmarks | ||
Examples_Tests | ||
Exploratory_Benchmarks | ||
Geo_Tests | ||
Google_Api_Test | ||
Image_Tests | ||
micro-distribution | ||
Table_Tests | ||
Visualization_Tests |