Skip to content

Commit

Permalink
fix: splunk python 3.9 tests handling (#188)
Browse files Browse the repository at this point in the history
* fix: add handling for unreleased splunk in matrix

* chore: add Test Report python 3.9 step for KO tests

* chore: add continue-on-error for test on python3.9

* chore: add python 3.9 test report step to all test types

* chore: update addonfactory-test-matrix action to v1.11
  • Loading branch information
mkolasinski-splunk authored Oct 12, 2023
1 parent 1b27e59 commit 7e74fba
Showing 1 changed file with 67 additions and 8 deletions.
75 changes: 67 additions & 8 deletions .github/workflows/reusable-build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ jobs:
type=ref,event=pr
- name: matrix
id: matrix
uses: splunk/addonfactory-test-matrix-action@v1.10
uses: splunk/addonfactory-test-matrix-action@v1.11

fossa-scan:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -1213,7 +1213,16 @@ jobs:
- name: Test Report
id: test_report
uses: dorny/test-reporter@v1
if: ${{ !cancelled() }}
if: ${{ !cancelled() && !contains(matrix.splunk.version, 'unreleased-python3_9') }}
with:
name: splunk ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} ${{ env.TEST_TYPE }} test report
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
reporter: java-junit
- name: Test Report Python 3.9
continue-on-error: true
id: test_report_python_3_9
uses: dorny/test-reporter@v1
if: ${{ !cancelled() && contains(matrix.splunk.version, 'unreleased-python3_9') }}
with:
name: splunk ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} ${{ env.TEST_TYPE }} test report
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
Expand Down Expand Up @@ -1415,7 +1424,16 @@ jobs:
- name: Test Report
id: test_report
uses: dorny/test-reporter@v1
if: ${{ !cancelled() }}
if: ${{ !cancelled() && !contains(matrix.splunk.version, 'unreleased-python3_9') }}
with:
name: splunk ${{ matrix.splunk.version }} ${{ env.TEST_TYPE }} test report
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
reporter: java-junit
- name: Test Report Python 3.9
continue-on-error: true
id: test_report_python_3_9
uses: dorny/test-reporter@v1
if: ${{ !cancelled() && contains(matrix.splunk.version, 'unreleased-python3_9') }}
with:
name: splunk ${{ matrix.splunk.version }} ${{ env.TEST_TYPE }} test report
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
Expand Down Expand Up @@ -1624,7 +1642,16 @@ jobs:
- name: Test Report
id: test_report
uses: dorny/test-reporter@v1
if: ${{ !cancelled() }}
if: ${{ !cancelled() && !contains(matrix.splunk.version, 'unreleased-python3_9') }}
with:
name: splunk ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} ${{ env.TEST_TYPE }} ${{ matrix.browser }} ${{ matrix.vendor-version.image }} test report
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
reporter: java-junit
- name: Test Report Python 3.9
id: test_report_python_3_9
continue-on-error: true
uses: dorny/test-reporter@v1
if: ${{ !cancelled() && contains(matrix.splunk.version, 'unreleased-python3_9') }}
with:
name: splunk ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} ${{ env.TEST_TYPE }} ${{ matrix.browser }} ${{ matrix.vendor-version.image }} test report
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
Expand Down Expand Up @@ -1846,7 +1873,15 @@ jobs:
- name: Test Report
id: test_report
uses: dorny/test-reporter@v1
if: ${{ !cancelled() }}
if: ${{ !cancelled() && !contains(matrix.splunk.version, 'unreleased-python3_9') }}
with:
name: splunk ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} ${{ env.TEST_TYPE }} ${{ matrix.vendor-version.image }} test report
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
reporter: java-junit
- name: Test Report Python 3.9
id: test_report_python_3_9
uses: dorny/test-reporter@v1
if: ${{ !cancelled() && contains(matrix.splunk.version, 'unreleased-python3_9') }}
with:
name: splunk ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} ${{ env.TEST_TYPE }} ${{ matrix.vendor-version.image }} test report
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
Expand Down Expand Up @@ -2062,7 +2097,15 @@ jobs:
- name: Test Report
id: test_report
uses: dorny/test-reporter@v1
if: ${{ !cancelled() }}
if: ${{ !cancelled() && !contains(matrix.splunk.version, 'unreleased-python3_9') }}
with:
name: splunk ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} ${{ env.TEST_TYPE }} ${{ matrix.vendor-version.image }} ${{ steps.os-name-version.outputs.os-name }} ${{ steps.os-name-version.outputs.os-version }} test report
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
reporter: java-junit
- name: Test Report Python 3.9
id: test_report_python_3_9
uses: dorny/test-reporter@v1
if: ${{ !cancelled() && contains(matrix.splunk.version, 'unreleased-python3_9') }}
with:
name: splunk ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} ${{ env.TEST_TYPE }} ${{ matrix.vendor-version.image }} ${{ steps.os-name-version.outputs.os-name }} ${{ steps.os-name-version.outputs.os-version }} test report
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
Expand Down Expand Up @@ -2277,7 +2320,15 @@ jobs:
- name: Test Report
id: test_report
uses: dorny/test-reporter@v1
if: ${{ !cancelled() }}
if: ${{ !cancelled() && !contains(matrix.splunk.version, 'unreleased-python3_9') }}
with:
name: splunk ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} ${{ env.TEST_TYPE }} ${{ matrix.vendor-version.image }} ${{ steps.os-name-version.outputs.os-name }} ${{ steps.os-name-version.outputs.os-version }} test report
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
reporter: java-junit
- name: Test Report Python 3.9
id: test_report_python_3_9
uses: dorny/test-reporter@v1
if: ${{ !cancelled() && contains(matrix.splunk.version, 'unreleased-python3_9') }}
with:
name: splunk ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} ${{ env.TEST_TYPE }} ${{ matrix.vendor-version.image }} ${{ steps.os-name-version.outputs.os-name }} ${{ steps.os-name-version.outputs.os-version }} test report
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
Expand Down Expand Up @@ -2502,7 +2553,15 @@ jobs:
- name: Test Report
id: test_report
uses: dorny/test-reporter@v1
if: ${{ steps.get-escu-detections.outputs.escu-test-run == 'true' }}
if: ${{ steps.get-escu-detections.outputs.escu-test-run == 'true' && !cancelled() && !contains(matrix.splunk.version, 'unreleased-python3_9')}}
with:
name: splunk ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} ${{ env.TEST_TYPE }} ${{ matrix.vendor-version.image }} test report
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
reporter: java-junit
- name: Test Report Python 3.9
id: test_report_python_3_9
uses: dorny/test-reporter@v1
if: ${{ steps.get-escu-detections.outputs.escu-test-run == 'true' && !cancelled() && contains(matrix.splunk.version, 'unreleased-python3_9')}}
with:
name: splunk ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} ${{ env.TEST_TYPE }} ${{ matrix.vendor-version.image }} test report
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
Expand Down

0 comments on commit 7e74fba

Please sign in to comment.