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

gradle: speed up all java connector integration tests (#32318)

This commit is contained in:
Marius Posta
2023-11-08 12:57:03 -08:00
committed by GitHub
parent c81e40e262
commit 6813ed60ba

View File

@@ -40,6 +40,13 @@ class AirbyteIntegrationTestJavaPlugin implements Plugin<Project> {
maxParallelForks = project.test.maxParallelForks
maxHeapSize = project.test.maxHeapSize
// Tone down the JIT when running the containerized connector to improve overall performance.
// The JVM default settings are optimized for long-lived processes in steady-state operation.
// Unlike in production, the connector containers in these tests are always short-lived.
// It's very much worth injecting a JAVA_OPTS environment variable into the container with
// flags which will reduce startup time at the detriment of long-term performance.
environment 'JOB_DEFAULT_ENV_JAVA_OPTS', '-XX:TieredStopAtLevel=1'
// Always re-run integration tests no matter what.
outputs.upToDateWhen { false }
}