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 parallel forks for tests #760

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ tasks.withType<KotlinCompile> {

tasks.test {
maxHeapSize = "2048m"
maxParallelForks = (Runtime.getRuntime().availableProcessors() / 2).coerceAtLeast(1)
Copy link
Collaborator

Choose a reason for hiding this comment

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

it's worth to know, how many processors/cores are available in average on TC

extensions.configure(kotlinx.kover.api.KoverTaskExtension::class) {
excludes.set(
listOf(
Expand All @@ -374,6 +375,10 @@ tasks.test {
}
}

tasks.getByName<Test>("samplesTest") {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this referred to all of our tests?

maxParallelForks = 1
}

tasks.processJupyterApiResources {
libraryProducers = listOf("org.jetbrains.kotlinx.dataframe.jupyter.Integration")
}
Expand Down
1 change: 1 addition & 0 deletions plugins/dataframe-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ val integrationTestTask = task<Test>("integrationTest") {
dependsOn(":core:publishCorePublicationToMavenLocal")
description = "Runs integration tests."
group = "verification"
maxParallelForks = (Runtime.getRuntime().availableProcessors() / 2).coerceAtLeast(1)

testClassesDirs = sourceSets["integrationTest"].output.classesDirs
classpath = sourceSets["integrationTest"].runtimeClasspath
Expand Down
Loading