Skip to content

Commit

Permalink
docs(cloud): added retries description
Browse files Browse the repository at this point in the history
  • Loading branch information
austyh committed Aug 18, 2024
1 parent ff74a7e commit fc12c0e
Show file tree
Hide file tree
Showing 4 changed files with 2,980 additions and 12,071 deletions.
9 changes: 8 additions & 1 deletion docs/cloud/intro/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Whenever you submit an application and test application to Marathon Cloud, the f

When you run tests with Marathon Cloud for the first time, we begin storing the test history in our database.
The next time you run these tests, we already have information on the average time and the probability of a successful execution for each test.
Using this data, we calculate the necessary number of devices to ensure that your tests will complete within 15 minutes.
Using this data, we calculate the necessary number of devices to ensure that your tests will complete within 15 minutes, whether that requires 5 devices or 200.
We also monitor the progress of test executions and adjust the distribution of tests across devices as needed.
While the tests are running, our service can dynamically increase the number of devices to expedite the execution process.

Expand All @@ -35,6 +35,13 @@ If you prefer, you can enable the "isolated" parameter to manage device cleaning
but please note that this may lead to an increase in the number of devices required and the overall time of devices taken for testing.
However, the total execution time will still be 15 minutes.

### Retries
Retries are a cornerstone of effective testing. The larger your test suite, the greater the likelihood that one test might fail due to environmental instability, commonly known as test flakiness. While adding retries can improve test stability, it also increases the total testing time.
Marathon offers two retry strategies and several enhancements to strike a balance between stability and efficiency:
- Predictive retries: By analyzing past test executions, we can determine the success rate of each test. For flaky tests, we can run multiple executions to ensure at least one succeeds.
- Common retries: If a test fails, we will rerun it up to three times. Marathon will attempt to run the test on a different device to minimize environmental impact on the results.
- Additional features: Sorting, batching, test rebalancing, and more.




Expand Down
Loading

0 comments on commit fc12c0e

Please sign in to comment.