Skip to content

Commit

Permalink
Bulk load CDK: integration test should log full exception (#49466)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgao authored Dec 13, 2024
1 parent 70f240e commit 526c159
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions airbyte-cdk/bulk/core/load/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ def integrationTestTask = tasks.register('integrationTest', Test) {
systemProperties = project.test.systemProperties
maxParallelForks = project.test.maxParallelForks
maxHeapSize = project.test.maxHeapSize

testLogging() {
events 'skipped', 'started', 'passed', 'failed'
exceptionFormat 'full'
}
}

// These tests are lightweight enough to run on every PR.
Expand Down
12 changes: 12 additions & 0 deletions buildSrc/src/main/groovy/airbyte-bulk-connector.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ class AirbyteBulkConnectorPlugin implements Plugin<Project> {
systemProperties = project.test.systemProperties
maxParallelForks = project.test.maxParallelForks
maxHeapSize = project.test.maxHeapSize

testLogging() {
events 'skipped', 'started', 'passed', 'failed'
exceptionFormat 'full'
}
}

// For historical reasons (i.e. airbyte-ci), this task is called integrationTestJava.
Expand All @@ -200,6 +205,13 @@ class AirbyteBulkConnectorPlugin implements Plugin<Project> {
systemProperties = project.test.systemProperties
maxParallelForks = project.test.maxParallelForks
maxHeapSize = project.test.maxHeapSize

testLogging() {
events 'skipped', 'started', 'passed', 'failed'
exceptionFormat 'full'
// Swallow the logs when running in airbyte-ci, rely on test reports instead.
showStandardStreams = !System.getenv().containsKey("RUN_IN_AIRBYTE_CI")
}
}

project.dependencies {
Expand Down

0 comments on commit 526c159

Please sign in to comment.