Skip to content

Enable test retry for all our modules - #5825

Merged
BraisGabin merged 1 commit into
mainfrom
enable-retry-tests
Feb 27, 2023
Merged

BraisGabin merged 1 commit into
mainfrom
enable-retry-tests

Conversation

@BraisGabin

@BraisGabin BraisGabin commented Feb 24, 2023

Copy link
Copy Markdown
Member

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

codecov Bot commented Feb 24, 2023

Copy link
Copy Markdown

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.

Comment thread build.gradle.kts
subprojects {
tasks.withType<Test>().configureEach {
retry {
@Suppress("MagicNumber")

Copy link
Copy Markdown
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
Copy Markdown
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