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

Enable test retry for all our modules #5825

Merged
merged 1 commit into from
Feb 27, 2023
Merged

Enable test retry for all our modules #5825

merged 1 commit into from
Feb 27, 2023

Conversation

BraisGabin
Copy link
Member

@BraisGabin BraisGabin commented Feb 24, 2023

This was a point we talked with the Gradle folks. It improves the predictive tests.

Documentation: https://docs.gradle.com/enterprise/predictive-test-selection/#flaky_test_retry

@github-actions github-actions bot added the build label Feb 24, 2023
@codecov
Copy link

codecov bot commented Feb 24, 2023

Codecov Report

Merging #5825 (f9a61b2) into main (2367650) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main    #5825   +/-   ##
=========================================
  Coverage     84.59%   84.59%           
  Complexity     3790     3790           
=========================================
  Files           546      546           
  Lines         12918    12918           
  Branches       2268     2268           
=========================================
  Hits          10928    10928           
  Misses          861      861           
  Partials       1129     1129           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -58,6 +59,13 @@ allprojects {

subprojects {
tasks.withType<Test>().configureEach {
retry {
@Suppress("MagicNumber")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we can really extract those as top level constants?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To me these are false positives. maxRetries.set(3) is clear what 3 does. We don't need a constant to make it easier to understand.

@BraisGabin BraisGabin added this to the 1.23.0 milestone Feb 26, 2023
@BraisGabin BraisGabin merged commit a665e8a into main Feb 27, 2023
@BraisGabin BraisGabin deleted the enable-retry-tests branch February 27, 2023 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants