1
0
mirror of synced 2025-12-19 18:14:56 -05:00

Bulk load CDK: test runner not micronaut, fix concurrent execution (#47006)

This commit is contained in:
Edward Gao
2024-10-18 12:45:16 -07:00
committed by GitHub
parent 26f00100ce
commit 58d01c1825
3 changed files with 39 additions and 15 deletions

View File

@@ -152,10 +152,6 @@ class AirbyteBulkConnectorPlugin implements Plugin<Project> {
resources {
srcDir 'src/test-integration/resources'
}
resources {
srcDir '.'
include 'metadata.yaml'
}
}
// This source set should only be used for tests based on the old CDK's test classes,
// in particular DestinationAcceptanceTest / BaseTypingDedupingTest.
@@ -178,6 +174,11 @@ class AirbyteBulkConnectorPlugin implements Plugin<Project> {
testClassesDirs = project.sourceSets.integrationTest.output.classesDirs
classpath = project.sourceSets.integrationTest.runtimeClasspath
useJUnitPlatform()
jvmArgs = project.test.jvmArgs
systemProperties = project.test.systemProperties
maxParallelForks = project.test.maxParallelForks
maxHeapSize = project.test.maxHeapSize
}
// For historical reasons (i.e. airbyte-ci), this task is called integrationTestJava.
@@ -193,7 +194,12 @@ class AirbyteBulkConnectorPlugin implements Plugin<Project> {
useJUnitPlatform()
// We need a docker image to run this task, so depend on assemble
dependsOn project.tasks.assemble
environment "MICRONAUT_ENVIRONMENTS", "DOCKERIZED_INTEGRATION_TEST"
environment "AIRBYTE_CONNECTOR_INTEGRATION_TEST_RUNNER", "docker"
jvmArgs = project.test.jvmArgs
systemProperties = project.test.systemProperties
maxParallelForks = project.test.maxParallelForks
maxHeapSize = project.test.maxHeapSize
}
project.dependencies {