enso/distribution/lib/Standard
Radosław Waśko 354ee94a2f
Make HTTP tests more robust by adding retries to the tests (#9652)
- 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.
2024-04-09 10:07:22 +00:00
..
AWS/0.0.0-dev Fix missing AWS region in S3 operations (#9546) 2024-03-27 12:00:15 +00:00
Base/0.0.0-dev Improve handling of File.parent and File.name (#9642) 2024-04-08 22:41:38 +00:00
Database/0.0.0-dev Restructure Standard.Table. (#9559) 2024-03-27 17:10:43 +00:00
Examples/0.0.0-dev Make data-links behave more like 'symlinks' (#9485) 2024-03-22 17:01:54 +00:00
Geo/0.0.0-dev Apply ICONs and other tweaks. (#9552) 2024-03-26 19:44:06 +00:00
Google_Api/0.0.0-dev Follow up #9611 (#9629) 2024-04-04 11:27:51 +00:00
Image/0.0.0-dev Some fixes working towards a sales demo (#9501) 2024-03-20 16:44:50 +00:00
Searcher/0.0.0-dev Apply ICONs and other tweaks. (#9552) 2024-03-26 19:44:06 +00:00
Snowflake/0.0.0-dev Restructure Standard.Table. (#9559) 2024-03-27 17:10:43 +00:00
Table/0.0.0-dev Testing autoscoped constructors in a vector (#9630) 2024-04-04 17:13:33 +02:00
Test/0.0.0-dev Make HTTP tests more robust by adding retries to the tests (#9652) 2024-04-09 10:07:22 +00:00
Visualization/0.0.0-dev Restructure Standard.Table. (#9559) 2024-03-27 17:10:43 +00:00