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

yhu 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 67c30a447cf Fix bug causing job failure (#28982)
67c30a447cf is described below

commit 67c30a447cf57138ff9b3bd2204e447a08f114fd
Author: Aleksandr Dudko <[email protected]>
AuthorDate: Tue Oct 17 23:41:02 2023 +0400

    Fix bug causing job failure (#28982)
    
    * Fix bug causing runs failure
    
    * Fix name for PreCommit Java PVR Flink Docker
---
 .../beam_PostCommit_Java_PVR_Spark_Batch.yml        | 21 ++++++++++++++++-----
 .../beam_PreCommit_Java_PVR_Flink_Docker.yml        |  2 +-
 2 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/beam_PostCommit_Java_PVR_Spark_Batch.yml 
b/.github/workflows/beam_PostCommit_Java_PVR_Spark_Batch.yml
index c240ac5abf2..2df2b39cd14 100644
--- a/.github/workflows/beam_PostCommit_Java_PVR_Spark_Batch.yml
+++ b/.github/workflows/beam_PostCommit_Java_PVR_Spark_Batch.yml
@@ -59,8 +59,7 @@ jobs:
         job_phrase: [Run Java Spark PortableValidatesRunner Batch]
     if: |
       github.event_name == 'workflow_dispatch' ||
-      github.event_name == 'schedule' ||
-      github.event.comment.body == 'Run Java Spark PortableValidatesRunner 
Batch'
+      github.event_name == 'schedule'
     steps:
       - uses: actions/checkout@v4
       - name: Setup repository
@@ -69,12 +68,16 @@ jobs:
           comment_phrase: ${{ matrix.job_phrase }}
           github_token: ${{ secrets.GITHUB_TOKEN }}
           github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
+      - name: Setup environment
+        uses: ./.github/actions/setup-environment-action
       - name: run PostCommit Java PortableValidatesRunner Spark Batch script
+        env:
+          CLOUDSDK_CONFIG: ${{ env.KUBELET_GCLOUD_CONFIG_PATH}}
         uses: ./.github/actions/gradle-command-self-hosted-action
         with:
             gradle-command: |
-              :runners:spark:3:job-server:validatesPortableRunnerBatch 
-              :runners:spark:3:job-server:validatesPortableRunnerDocker
+              :runners:spark:3:job-server:validatesPortableRunnerBatch \
+              :runners:spark:3:job-server:validatesPortableRunnerDocker \
       - name: Archive JUnit Test Results
         uses: actions/upload-artifact@v3
         if: failure()
@@ -85,4 +88,12 @@ jobs:
         uses: EnricoMi/publish-unit-test-result-action@v2
         if: always()
         with:
-          files: '**/build/test-results/**/*.xml'
\ No newline at end of file
+          large_files: true
+          commit: '${{ env.prsha || env.GITHUB_SHA }}'
+          comment_mode: ${{ github.event_name == 'issue_comment'  && 'always' 
|| 'off' }}
+          files: '**/build/test-results/**/*.xml'
+      - name: Archive SpotBugs Results
+        uses: actions/upload-artifact@v3
+        with:
+          name: SpotBugs Results
+          path: "**/build/reports/spotbugs/*.html"
\ No newline at end of file
diff --git a/.github/workflows/beam_PreCommit_Java_PVR_Flink_Docker.yml 
b/.github/workflows/beam_PreCommit_Java_PVR_Flink_Docker.yml
index ac6b9e0471a..79794904b48 100644
--- a/.github/workflows/beam_PreCommit_Java_PVR_Flink_Docker.yml
+++ b/.github/workflows/beam_PreCommit_Java_PVR_Flink_Docker.yml
@@ -69,7 +69,7 @@ env:
   GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GE_CACHE_PASSWORD }}
 
 jobs:
-  beam_PreCommit_Java:
+  beam_PreCommit_Java_PVR_Flink_Docker:
     name: ${{matrix.job_name}} (${{matrix.job_phrase}})
     runs-on: [self-hosted, ubuntu-20.04, main]
     strategy:

Reply via email to