Skip to main content

Custom number of retries

At the moment we can enable or disable the auto-retry for cloud runs.

When enabled, the number of retries is 3.

It would be useful to be able to change this number to something lower, such as 1, 2 or 3 retry attempts instead of the always fixed 3.

Status: Completed7 comments

Log in to comment and vote

Comments7

  • Paweł Bylina

    Team•

    Jun 13, 2024

    Feature arrived!

    • Marius COJOCARIU

      •

      Jun 13, 2024

      Thank youuuuuu, we're very happy with this addition! 🚀Keep up the good work!

  • Robert Hedman

    •

    Mar 15, 2024

    I had this thought too, but mostly for increasing the number of retries, not lowering them. But if this was an input field that takes any number it would solve both cases.

    • Paweł Bylina

      Team•

      Mar 15, 2024

      Great, thanks for that inside.

  • Paweł Bylina

    Team•

    Mar 14, 2024

    @Marius COJOCARIU For better understanding - what's the actual use case here? Why 2 instead of 3?

    • Marius COJOCARIU

      •

      Mar 15, 2024

      We trust that our automated tests are good enough not to need 3 retries if they fail (we currently have the option disabled), but just in case there is an issue such as latency or network calls taking too long, we still would prefer a max of 1 retry to help with flakiness.

      3 retries for each failed test can add lots of runtime in case a testsuite execution has a big number of failures, while only 1 retry would decrease the total runtime down in such a scenario while still showing there is an issue somewhere.

      Hypothetical scenario, let's say our testsuite takes 3 hours to execute in best case scenario, so when all tests are green, and each test takes an equal amount of minutes to execute.

      But if half of the tests fail due to a legit software issue and not flakiness:

      • having the option to only enable 1 single retry per failed test -> 1.5 hours extra only for retries -> 3 hours for normal execution + 1.5 hours retries = total runtime 4.5 hours total runtime.

      • currently only option is 3 retries per failed test -> 1.5 hours x 3 times -> 4.5 hours extra only for retries -> 3 hours for normal execution + 4.5h from retries -> 7.5 hours total runtime.

      In both bullet points above, the test history would show that there is a real issue with the software, and it's not just bad flakiness, except with one retry we save up on execution time and have full results 3 hours earlier.

      • Paweł Bylina

        Team•

        Mar 15, 2024

        Thak you. I love your detailed reporting and explanations! :D