Skip to content

Commit

Permalink
Reduce SequentialTasksExecutionStressTest iterations from 100 to 50 (#…
Browse files Browse the repository at this point in the history
…3725)

This is a quick-fix to help improve the execution speed of the stress test (it currently takes ~15 minutes).

I've tried a few methods of introducing memory leaks, and all of them were caught after ~30 iterations, so 50 seems like a good number.
  • Loading branch information
adam-enko authored Aug 5, 2024
1 parent bc9dec0 commit c378a63
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ class SequentialTasksExecutionStressTest : AbstractGradleIntegrationTest() {
@ParameterizedTest(name = "{0}")
@ArgumentsSource(LatestTestedVersionsArgumentsProvider::class)
fun execute(buildVersions: BuildVersions) {
val iterations = 50

val result = createGradleRunner(
buildVersions,
"runTasks",
"--info",
"--stacktrace",
"-Ptask_number=100",
"-Ptask_number=$iterations",
jvmArgs = listOf("-Xmx1G", "-XX:MaxMetaspaceSize=500m"),
enableBuildCache = false,
).buildRelaxed()
Expand Down

0 comments on commit c378a63

Please sign in to comment.