Skip to content

Commit

Permalink
old py, java, spotbugs plugins fix (#29008)
Browse files Browse the repository at this point in the history
  • Loading branch information
magicgoody authored Oct 18, 2023
1 parent 574255a commit 1cb87c3
Show file tree
Hide file tree
Showing 81 changed files with 419 additions and 65 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,10 @@ jobs:
arguments: |
--info \
-Ptest=apache_beam/examples/wordcount_it_test.py::WordCountIT::test_wordcount_it \
"-Ptest-pipeline-options=${{ env.beam_PerformanceTests_WordCountIT_PythonVersions_test_arguments_1 }}"
"-Ptest-pipeline-options=${{ env.beam_PerformanceTests_WordCountIT_PythonVersions_test_arguments_1 }}"
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: always()
with:
name: python-code-coverage-report
path: "**/pytest*.xml"
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,6 @@ jobs:
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
commit: '${{ env.prsha || env.GITHUB_SHA }}'
comment_mode: ${{ github.event_name == 'issue_comment' && 'always' || 'off' }}
files: '**/build/test-results/**/*.xml'
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,6 @@ jobs:
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
commit: '${{ env.prsha || env.GITHUB_SHA }}'
comment_mode: ${{ github.event_name == 'issue_comment' && 'always' || 'off' }}
files: '**/build/test-results/**/*.xml'
13 changes: 13 additions & 0 deletions .github/workflows/beam_PostCommit_Java_PVR_Flink_Streaming.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,16 @@ jobs:
uses: ./.github/actions/gradle-command-self-hosted-action
with:
gradle-command: runners:flink:1.15:job-server:validatesPortableRunnerStreaming
- name: Archive JUnit Test Results
uses: actions/upload-artifact@v3
if: failure()
with:
name: JUnit Test Results
path: "**/build/reports/tests/"
- name: Publish JUnit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
commit: '${{ env.prsha || env.GITHUB_SHA }}'
comment_mode: ${{ github.event_name == 'issue_comment' && 'always' || 'off' }}
files: '**/build/test-results/**/*.xml'
2 changes: 2 additions & 0 deletions .github/workflows/beam_PostCommit_Java_PVR_Samza.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,6 @@ jobs:
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
commit: '${{ env.prsha || env.GITHUB_SHA }}'
comment_mode: ${{ github.event_name == 'issue_comment' && 'always' || 'off' }}
files: '**/build/test-results/**/*.xml'
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,6 @@ jobs:
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: '**/build/test-results/**/*.xml'
commit: '${{ env.prsha || env.GITHUB_SHA }}'
comment_mode: ${{ github.event_name == 'issue_comment' && 'always' || 'off' }}
files: '**/build/test-results/**/*.xml'
2 changes: 1 addition & 1 deletion .github/workflows/beam_PostCommit_Java_PVR_Spark_Batch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: SpotBugs Results
path: "**/build/reports/spotbugs/*.html"
path: "**/build/reports/spotbugs/*.html"
1 change: 1 addition & 0 deletions .github/workflows/beam_PostCommit_PortableJar_Flink.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:
-PpythonVersion=3.8 \
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: always()
with:
name: python-code-coverage-report
path: "**/pytest*.xml"
1 change: 1 addition & 0 deletions .github/workflows/beam_PostCommit_PortableJar_Spark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:
-PpythonVersion=3.8 \
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: always()
with:
name: python-code-coverage-report
path: "**/pytest*.xml"
1 change: 1 addition & 0 deletions .github/workflows/beam_PostCommit_Python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
CLOUDSDK_CONFIG: ${{ env.KUBELET_GCLOUD_CONFIG_PATH}}
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: always()
with:
name: python-code-coverage-report
path: "**/pytest*.xml"
1 change: 1 addition & 0 deletions .github/workflows/beam_PostCommit_Python_Arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ jobs:
USER: github-actions
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: always()
with:
name: python-code-coverage-report
path: "**/pytest*.xml"
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:
-PpythonVersion=3.11 \
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: always()
with:
name: python-code-coverage-report
path: "**/pytest*.xml"
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
-PpythonVersion=${{ matrix.python_version }} \
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: always()
with:
name: python-code-coverage-report
path: "**/pytest*.xml"
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
-PpythonVersion=${{ matrix.python_version }} \
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: always()
with:
name: python-code-coverage-report
path: "**/pytest*.xml"
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
-PpythonVersion=${{ matrix.python_version }} \
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: always()
with:
name: python-code-coverage-report
path: "**/pytest*.xml"
1 change: 1 addition & 0 deletions .github/workflows/beam_PostCommit_Python_MongoDBIO_IT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
-PpythonVersion=3.11 \
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: always()
with:
name: python-code-coverage-report
path: "**/pytest*.xml"
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ jobs:
-PpythonVersion=${{ matrix.python_version }} \
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: always()
with:
name: python-code-coverage-report
path: "**/pytest*.xml"
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ jobs:
-PpythonVersion=${{ matrix.python_version }} \
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: always()
with:
name: python-code-coverage-report
path: "**/pytest*.xml"
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
-PpythonVersion=${{ matrix.python_version }} \
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: always()
with:
name: python-code-coverage-report
path: "**/pytest*.xml"
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ jobs:
-PpythonVersion=${{ matrix.python_version }} \
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: always()
with:
name: python-code-coverage-report
path: "**/pytest*.xml"
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
-PpythonVersion=${{ matrix.python_version }} \
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: always()
with:
name: python-code-coverage-report
path: "**/pytest*.xml"
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
-PpythonVersion=${{ matrix.python_version }} \
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: always()
with:
name: python-code-coverage-report
path: "**/pytest*.xml"
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@ jobs:
uses: actions/upload-artifact@v3
if: always()
with:
name: archiveJunit
name: python-code-coverage-report
path: "**/pytest*.xml"
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@ jobs:
uses: actions/upload-artifact@v3
if: always()
with:
name: archiveJunit
name: python-code-coverage-report
path: "**/pytest*.xml"
1 change: 1 addition & 0 deletions .github/workflows/beam_PostCommit_Sickbay_Python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ jobs:
-PpythonVersion=${{ matrix.python_version }} \
- name: Archive code coverage results
uses: actions/upload-artifact@v3
if: always()
with:
name: python-code-coverage-report
path: "**/pytest*.xml"
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ jobs:
uses: actions/upload-artifact@v3
if: always()
with:
name: archiveJunit
name: python-code-coverage-report
path: "**/pytest*.xml"
13 changes: 10 additions & 3 deletions .github/workflows/beam_PostCommit_XVR_Direct.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,16 @@ jobs:
arguments: |
-PpythonVersion=${{ matrix.python_version }} \
-PskipNonPythonTask=false \
- name: Archive code coverage results
- name: Archive JUnit Test Results
uses: actions/upload-artifact@v3
if: failure()
with:
name: JUnit Test Results
path: "**/build/reports/tests/"
- name: Publish JUnit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
name: archiveJunit
path: "**/build/test-results/**/*.xml"
commit: '${{ env.prsha || env.GITHUB_SHA }}'
comment_mode: ${{ github.event_name == 'issue_comment' && 'always' || 'off' }}
files: '**/build/test-results/**/*.xml'
13 changes: 10 additions & 3 deletions .github/workflows/beam_PostCommit_XVR_Flink.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,16 @@ jobs:
arguments: |
-PpythonVersion=${{ matrix.python_version }} \
-PskipNonPythonTask=false \
- name: Archive code coverage results
- name: Archive JUnit Test Results
uses: actions/upload-artifact@v3
if: failure()
with:
name: JUnit Test Results
path: "**/build/reports/tests/"
- name: Publish JUnit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
name: archiveJunit
path: "**/build/test-results/**/*.xml"
commit: '${{ env.prsha || env.GITHUB_SHA }}'
comment_mode: ${{ github.event_name == 'issue_comment' && 'always' || 'off' }}
files: '**/build/test-results/**/*.xml'
13 changes: 10 additions & 3 deletions .github/workflows/beam_PostCommit_XVR_JavaUsingPython_Dataflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,16 @@ jobs:
gradle-command: :runners:google-cloud-dataflow-java:validatesCrossLanguageRunnerJavaUsingPython
arguments: |
-PpythonVersion=${{ matrix.python_version }} \
- name: Archive code coverage results
- name: Archive JUnit Test Results
uses: actions/upload-artifact@v3
if: failure()
with:
name: JUnit Test Results
path: "**/build/reports/tests/"
- name: Publish JUnit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
name: archiveJunit
path: "**/build/test-results/**/*.xml"
commit: '${{ env.prsha || env.GITHUB_SHA }}'
comment_mode: ${{ github.event_name == 'issue_comment' && 'always' || 'off' }}
files: '**/build/test-results/**/*.xml'
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ jobs:
uses: actions/upload-artifact@v3
if: always()
with:
name: archiveJunit
name: python-code-coverage-report
path: "**/pytest*.xml"
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@ jobs:
uses: actions/upload-artifact@v3
if: always()
with:
name: archiveJunit
name: python-code-coverage-report
path: "**/pytest*.xml"
13 changes: 10 additions & 3 deletions .github/workflows/beam_PostCommit_XVR_Samza.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,16 @@ jobs:
arguments: |
-PpythonVersion=${{ matrix.python_version }} \
-PskipNonPythonTask=false \
- name: Archive code coverage results
- name: Archive JUnit Test Results
uses: actions/upload-artifact@v3
if: failure()
with:
name: JUnit Test Results
path: "**/build/reports/tests/"
- name: Publish JUnit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
name: archiveJunit
path: "**/build/test-results/**/*.xml"
commit: '${{ env.prsha || env.GITHUB_SHA }}'
comment_mode: ${{ github.event_name == 'issue_comment' && 'always' || 'off' }}
files: '**/build/test-results/**/*.xml'
13 changes: 10 additions & 3 deletions .github/workflows/beam_PostCommit_XVR_Spark3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,16 @@ jobs:
arguments: |
-PpythonVersion=${{ matrix.python_version }} \
-PskipNonPythonTask=false \
- name: Archive code coverage results
- name: Archive JUnit Test Results
uses: actions/upload-artifact@v3
if: failure()
with:
name: JUnit Test Results
path: "**/build/reports/tests/"
- name: Publish JUnit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
name: archiveJunit
path: "**/build/test-results/**/*.xml"
commit: '${{ env.prsha || env.GITHUB_SHA }}'
comment_mode: ${{ github.event_name == 'issue_comment' && 'always' || 'off' }}
files: '**/build/test-results/**/*.xml'
9 changes: 8 additions & 1 deletion .github/workflows/beam_PreCommit_Java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,13 @@ jobs:
files: '**/build/test-results/**/*.xml'
- name: Archive SpotBugs Results
uses: actions/upload-artifact@v3
if: always()
with:
name: SpotBugs Results
path: "**/build/reports/spotbugs/*.html"
path: '**/build/reports/spotbugs/*.html'
- name: Publish SpotBugs Results
uses: jwgmeligmeyling/spotbugs-github-action@v1.2
if: always()
with:
name: Publish SpotBugs
path: '**/build/reports/spotbugs/*.html'
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ jobs:
files: '**/build/test-results/**/*.xml'
- name: Archive SpotBugs Results
uses: actions/upload-artifact@v3
if: always()
with:
name: SpotBugs Results
path: "**/build/reports/spotbugs/*.html"
path: '**/build/reports/spotbugs/*.html'
- name: Publish SpotBugs Results
uses: jwgmeligmeyling/spotbugs-github-action@v1.2
if: always()
with:
name: Publish SpotBugs
path: '**/build/reports/spotbugs/*.html'
Loading

0 comments on commit 1cb87c3

Please sign in to comment.