[ 
https://issues.apache.org/jira/browse/BEAM-6703?focusedWorklogId=379897&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-379897
 ]

ASF GitHub Bot logged work on BEAM-6703:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 31/Jan/20 10:27
            Start Date: 31/Jan/20 10:27
    Worklog Time Spent: 10m 
      Work Description: mwalenia commented on pull request #10689: [BEAM-6703] 
Make Dataflow ValidatesRunner test use Java 11 in test execution
URL: https://github.com/apache/beam/pull/10689#discussion_r373410984
 
 

 ##########
 File path: 
.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Dataflow_Java11.groovy
 ##########
 @@ -20,26 +20,40 @@ import CommonJobProperties as commonJobProperties
 import PostcommitJobBuilder
 
 
-PostcommitJobBuilder.postCommitJob('beam_PostCommit_Java11_ValidatesRunner_Dataflow',
+PostcommitJobBuilder.postCommitJob('beam_PostCommit_Java_ValidatesRunner_Dataflow_Java11',
   'Run Dataflow ValidatesRunner Java 11', 'Google Cloud Dataflow Runner 
ValidatesRunner Tests On Java 11', this) {
 
   description('Runs the ValidatesRunner suite on the Dataflow runner with Java 
11 worker harness.')
 
-  commonJobProperties.setTopLevelMainJobProperties(delegate, 'master', 270)
+  def JAVA_11_HOME = '/usr/lib/jvm/java-11-openjdk-amd64'
+  def JAVA_8_HOME = '/usr/lib/jvm/java-8-openjdk-amd64'
 
+  commonJobProperties.setTopLevelMainJobProperties(delegate, 'master', 270)
   publishers {
     archiveJunit('**/build/test-results/**/*.xml')
   }
 
   steps {
+    gradle {
+      rootBuildScriptDir(commonJobProperties.checkoutDir)
+      tasks(':runners:google-cloud-dataflow-java:testJar')
+      
tasks(':runners:google-cloud-dataflow-java:worker:legacy-worker:shadowJar')
+      switches("-Dorg.gradle.java.home=${JAVA_8_HOME}")
+    }
+    
     gradle {
       rootBuildScriptDir(commonJobProperties.checkoutDir)
       tasks(':runners:google-cloud-dataflow-java:validatesJava11Runner')
 
 Review comment:
   Running a Dataflow validatesRunner with Java 11 requires setting an 
additional task parameter in order to have correct worker harness image 
(`java.specification.version`). Since I don't think we can parametrize Gradle 
tasks, we're stuck with two of them
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 379897)
    Time Spent: 17h 40m  (was: 17.5h)

> Support Java 11 in Jenkins
> --------------------------
>
>                 Key: BEAM-6703
>                 URL: https://issues.apache.org/jira/browse/BEAM-6703
>             Project: Beam
>          Issue Type: Sub-task
>          Components: runner-dataflow, runner-direct
>            Reporter: Michał Walenia
>            Assignee: Michał Walenia
>            Priority: Minor
>             Fix For: Not applicable
>
>          Time Spent: 17h 40m
>  Remaining Estimate: 0h
>
> In this issue I'll create a Jenkins job that compiles Dataflow and Direct 
> runners with tests using Java 8 and runs Validates Runner suites with Java 11 
> Runtime.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to