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

Disable parallelism on retry #209

Open
Tracked by #271
nedtwigg opened this issue Sep 3, 2023 · 0 comments
Open
Tracked by #271

Disable parallelism on retry #209

nedtwigg opened this issue Sep 3, 2023 · 0 comments

Comments

@nedtwigg
Copy link

nedtwigg commented Sep 3, 2023

I have a big bank of tests where:

  • 100% pass if we run the testsuite single-threaded
  • 100% sometimes pass if we run the testsuite in parallel
  • 5% of tests on average will fail if we run the testsuite in parallel, due to heavy load

This is good - we can speed up our test suite a ton by going parallel, and then rerun the handful of tests that failed due to load.

But ideally I wish the rerun could do something like:

test {
  useJUnitPlatform {}
  systemProperty 'junit.vintage.execution.parallel.enabled', 'true'
  retry {
    maxRetries = 1
    onRetry {
      systemProperty 'junit.vintage.execution.parallel.enabled', 'false'
    }
  }
}
@pshevche pshevche added the enhancement New feature or request label Apr 2, 2024
@pshevche pshevche removed the enhancement New feature or request label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants