This is an automated email from the ASF dual-hosted git repository.

Abacn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 0619156f8b5 use Java 17 harness (#39570)
0619156f8b5 is described below

commit 0619156f8b517dbf31294ea5a5ee8cc242cb16e0
Author: Abdelrahman Ibrahim <[email protected]>
AuthorDate: Fri Jul 31 20:38:39 2026 +0300

    use Java 17 harness (#39570)
    
    * use Java 17 harness
    
    * update comment
---
 .github/trigger_files/beam_PostCommit_Python_Xlang_IO_Dataflow.json | 2 +-
 sdks/python/test-suites/dataflow/common.gradle                      | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/.github/trigger_files/beam_PostCommit_Python_Xlang_IO_Dataflow.json 
b/.github/trigger_files/beam_PostCommit_Python_Xlang_IO_Dataflow.json
index b2683333323..c537844dc84 100644
--- a/.github/trigger_files/beam_PostCommit_Python_Xlang_IO_Dataflow.json
+++ b/.github/trigger_files/beam_PostCommit_Python_Xlang_IO_Dataflow.json
@@ -1,4 +1,4 @@
 {
   "comment": "Modify this file in a trivial way to cause this test suite to 
run",
-  "modification": 2
+  "modification": 3
 }
diff --git a/sdks/python/test-suites/dataflow/common.gradle 
b/sdks/python/test-suites/dataflow/common.gradle
index cbc79585a5f..3bdbd4df41b 100644
--- a/sdks/python/test-suites/dataflow/common.gradle
+++ b/sdks/python/test-suites/dataflow/common.gradle
@@ -671,6 +671,8 @@ project.tasks.register("inferencePostCommitITPy312") {
 // Create cross-language tasks for running tests against Java expansion 
service(s)
 def gcpProject = project.findProperty('gcpProject') ?: 'apache-beam-testing'
 def gcpRegion = project.findProperty('gcpRegion') ?: 'us-central1'
+// Default to the minimum required Java version (currently bounded by 
IcebergIO which needs Java 17+)
+def javaHarnessVersion = project.findProperty('testJavaVersion') ?: '17'
 
 project(":sdks:python:test-suites:xlang").ext.xlangTasks.each { taskMetadata ->
     createCrossLanguageUsingJavaExpansionTask(
@@ -682,7 +684,7 @@ 
project(":sdks:python:test-suites:xlang").ext.xlangTasks.each { taskMetadata ->
         "--project=${gcpProject}",
         "--region=${gcpRegion}",
         
"--sdk_container_image=gcr.io/apache-beam-testing/beam-sdk/beam_python${project.ext.pythonVersion}_sdk:latest",
-        
"--sdk_harness_container_image_overrides=.*java.*,gcr.io/apache-beam-testing/beam-sdk/beam_java11_sdk:latest"
+        
"--sdk_harness_container_image_overrides=.*java.*,gcr.io/apache-beam-testing/beam-sdk/beam_java${javaHarnessVersion}_sdk:latest"
       ],
       pytestOptions: basicPytestOpts,
       additionalDeps: taskMetadata.additionalDeps,

Reply via email to