question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Gradle check retry not working as expected

See original GitHub issue

Describe the bug

Sample runs -

To Reproduce

  1. Run gradle check for a PR with a test failure

Expected behavior

  • Retries to be present within the console output with x tests completed, y failed with y > 1 in case of failed tests with a retry

Plugins

  • N/A

Screenshots

Host/Environment (please complete the following information):

  • Jenkins build server for OpenSearch

Additional context

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
andrrosscommented, Nov 15, 2022

Again looking at 6825, we see the “BUILD SUCCESSFUL” result in the output (tests succeeded on retry):

BUILD SUCCESSFUL in 25m 35s
2626 actionable tasks: 2612 executed, 2 from cache, 12 up-to-date
...
Finished: UNSTABLE

The gradle check jenkins run completes with the result “UNSTABLE” and results in a failure of the GitHub action. Is this the right behavior? I think the point of the retries is to pass the gradle check when tests pass on retry so this seems wrong to me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to retry test methods from parent classes with Spock 2
org.gradle.test-retry was unable to retry the following test methods, which is unexpected. Please file a bug report at ...
Read more >
Jenkinsfile clear gradle cache and retry on failure
Current scenario: We have configured CI pipeline and running a jenkinsfile.groovy script for a gradle build. The pipeline is working fine ...
Read more >
Learning the Basics - Gradle User Manual
There are different issues with using mavenLocal() that you should be aware of: Maven uses it as a cache, not a repository, meaning...
Read more >
Flaky test detection doesn't consider multiple runs of the same ...
Gradle build is successful. When "support test retry: successful test run mutes previous test failure" is unchecked, adding teamcity.internal.
Read more >
Gradle Enterprise Predictive Test Selection User Manual
In order to obtain an accurate estimate of expected Predictive Test Selection quality, it is recommended to inspect incorrect predictions and omit simulations...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found