You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/11/17 18:33:56 UTC

[GitHub] [beam] MarcoRob commented on a diff in pull request #23292: GA Migration Java PostCommit Validate Runners (Spark, Spark Java 11, SparkStructuredStream, ULR)

MarcoRob commented on code in PR #23292:
URL: https://github.com/apache/beam/pull/23292#discussion_r1025560271


##########
.github/workflows/job-postcommit-java-vr-spark-java11.yml:
##########
@@ -0,0 +1,67 @@
+# 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.
+
+# To learn more about GitHub Actions in Apache Beam check the CI.md
+
+name: Java VR Spark Java11 PostCommit
+on:
+  workflow_dispatch:
+  schedule:
+    - cron: '0 */6 * * *'
+  push:
+    branches: ['master', 'release-*']
+    tags: ['v*']
+permissions: read-all
+
+jobs:
+  java_vr_spark_java11:
+    name: Run Spark ValidatesRunner Java 11
+    runs-on: [self-hosted, ubuntu-20.04]
+    timeout-minutes: 270
+    steps:
+      - name: Get number of available processors
+        id: get_available_processors
+        shell: bash
+        run: |
+          CORES=$(grep -c ^processor /proc/cpuinfo)
+          BALANCE_CORES=$((3*CORES))
+          echo $BALANCE_CORES
+          echo "::set-output name=BALANCE_CORES::$BALANCE_CORES"
+      - name: Checkout code
+        uses: actions/checkout@v3
+        with:
+          persist-credentials: false
+      - name: Setup environment
+        uses: ./.github/actions/setup-self-hosted-action
+      - name: Spark 3 Test Jobs
+        shell: bash
+        run: |
+          ./gradlew :runners:spark:3:jar
+          sleep 5

Review Comment:
   Yes, I tested again and at the beginning, the `sleep` it was a precaution to give time to run the first command and then the next one, but testing out the `sleep` is not necessary as you mentioned, I will remove it.



-- 
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.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org