You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by mw...@apache.org on 2020/05/18 06:26:03 UTC

[beam] branch master updated: [BEAM-2530] Implement Zeta SQL precommit compile tests and run on java 11 (#11692)

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

mwalenia 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 d773f8c  [BEAM-2530] Implement Zeta SQL precommit compile tests and run on java 11 (#11692)
d773f8c is described below

commit d773f8ca7a4d63d01472b5eaef8b67157d60f40e
Author: pawelpasterz <32...@users.noreply.github.com>
AuthorDate: Mon May 18 08:25:39 2020 +0200

    [BEAM-2530] Implement Zeta SQL precommit compile tests and run on java 11 (#11692)
    
    [BEAM-2530] Implement Zeta SQL precommit compile tests and run on java 11
---
 .../job_PreCommit_BeamSQL_ZetaSQL_Java11.groovy    | 39 ++++++++++++++++++++++
 build.gradle                                       |  1 +
 2 files changed, 40 insertions(+)

diff --git a/.test-infra/jenkins/job_PreCommit_BeamSQL_ZetaSQL_Java11.groovy b/.test-infra/jenkins/job_PreCommit_BeamSQL_ZetaSQL_Java11.groovy
new file mode 100644
index 0000000..50fd124
--- /dev/null
+++ b/.test-infra/jenkins/job_PreCommit_BeamSQL_ZetaSQL_Java11.groovy
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import PrecommitJobBuilder
+import CommonJobProperties as properties
+
+PrecommitJobBuilder builder = new PrecommitJobBuilder(
+        scope: this,
+        nameBase: 'JavaBeamZetaSQLJava11',
+        gradleTask: ':javaPreCommitBeamZetaSQL',
+        gradleSwitches: [
+                '-PdisableSpotlessCheck=true',
+                '-PcompileAndRunTestsWithJava11',
+                "-Pjava11Home=${CommonJobProperties.JAVA_11_HOME}"
+        ], // spotless checked in separate pre-commit
+        triggerPathPatterns: [
+                '^sdks/java/extensions/sql/.*$',
+        ]
+)
+builder.build {
+    publishers {
+        archiveJunit('**/build/test-results/**/*.xml')
+    }
+}
diff --git a/build.gradle b/build.gradle
index 7fed2aa..848eef6 100644
--- a/build.gradle
+++ b/build.gradle
@@ -350,6 +350,7 @@ if (project.hasProperty('javaLinkageArtifactIds')) {
 if (project.hasProperty('compileAndRunTestsWithJava11')) {
   project.javaPreCommitPortabilityApi.dependsOn ':sdks:java:testing:test-utils:verifyJavaVersion'
   project.javaExamplesDataflowPrecommit.dependsOn ':sdks:java:testing:test-utils:verifyJavaVersion'
+  project.javaPreCommitBeamZetaSQL.dependsOn ':sdks:java:testing:test-utils:verifyJavaVersion'
 } else {
   allprojects {
     tasks.withType(Test) {