Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"comment": "Modify this file in a trivial way to cause this test suite to run",
"modification": 1
"modification": 2
}
10 changes: 10 additions & 0 deletions .github/workflows/beam_PreCommit_Java_Delta_IO_Direct.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ jobs:
-PtestJavaVersion=17 \
-Pjava17Home=$JAVA_HOME_17_X64 \
--info
- name: run Delta IO Prism integration tests
uses: $/.github/actions/gradle-command-self-hosted-action
with:
gradle-command: :sdks:java:io:delta:prismIntegrationTest

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please also do a small update to the trigger file so that the test suite get triggered for this PR.
https://github.com/apache/beam/blob/master/.github/trigger_files/beam_PreCommit_Java_Delta_IO_Direct.json

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done @chamikaramj the Delta suite ran and passed, including the Prism step.

arguments: |
-PdisableSpotlessCheck=true \
-PdisableCheckStyle=true \
-PtestJavaVersion=17 \
-Pjava17Home=$JAVA_HOME_17_X64 \
--info
- name: Archive JUnit Test Results
uses: actions/upload-artifact@v7
if: ${{ !success() }}
Expand Down
30 changes: 30 additions & 0 deletions sdks/java/io/delta/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ dependencies {
testImplementation library.java.testcontainers_localstack
testImplementation library.java.hadoop_aws
testRuntimeOnly project(path: ":runners:google-cloud-dataflow-java")
testRuntimeOnly project(path: ":runners:prism:java")
testRuntimeOnly library.java.slf4j_simple
}

Expand Down Expand Up @@ -138,3 +139,32 @@ task integrationTest(type: Test) {
systemProperty "org.slf4j.simpleLogger.log.org.apache.hadoop.fs.s3a", "info"
systemProperty "org.slf4j.simpleLogger.log.software.amazon.awssdk", "info"
}

project.evaluationDependsOn(":runners:prism")

task prismIntegrationTest(type: Test) {
group = "Verification"
description = "Runs local Delta Lake Managed IO tests with the Prism runner."

def prismProject = project(":runners:prism")
dependsOn prismProject.tasks.named("build")
def args = [
"--runner=TestPrismRunner",
"--defaultEnvironmentType=LOOPBACK",
"--enableWebUI=false",
"--prismLocation=${prismProject.property('buildTarget').toString()}",
"--prismLogLevel=warn",
]
systemProperty "beamTestPipelineOptions", JsonOutput.toJson(args)

outputs.upToDateWhen { false }
include '**/DeltaIOTest.class'
filter {
includeTestsMatching 'org.apache.beam.sdk.io.delta.DeltaIOTest.testManagedDeltaRead'
includeTestsMatching 'org.apache.beam.sdk.io.delta.DeltaIOTest.testManagedDeltaReadWithVersion'
includeTestsMatching 'org.apache.beam.sdk.io.delta.DeltaIOTest.testManagedDeltaReadWithTimestamp'
includeTestsMatching 'org.apache.beam.sdk.io.delta.DeltaIOTest.testReadChangesWithManaged'
}
classpath = sourceSets.test.runtimeClasspath
testClassesDirs = sourceSets.test.output.classesDirs
}
Loading