Skip to content

Commit 7e74fba

Browse files
fix: splunk python 3.9 tests handling (#188)
* 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
1 parent 1b27e59 commit 7e74fba

File tree

1 file changed

+67
-8
lines changed

1 file changed

+67
-8
lines changed

.github/workflows/reusable-build-test-release.yml

Lines changed: 67 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ jobs:
265265
type=ref,event=pr
266266
- name: matrix
267267
id: matrix
268-
uses: splunk/addonfactory-test-matrix-action@v1.10
268+
uses: splunk/addonfactory-test-matrix-action@v1.11
269269

270270
fossa-scan:
271271
runs-on: ubuntu-latest
@@ -1213,7 +1213,16 @@ jobs:
12131213
- name: Test Report
12141214
id: test_report
12151215
uses: dorny/test-reporter@v1
1216-
if: ${{ !cancelled() }}
1216+
if: ${{ !cancelled() && !contains(matrix.splunk.version, 'unreleased-python3_9') }}
1217+
with:
1218+
name: splunk ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} ${{ env.TEST_TYPE }} test report
1219+
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
1220+
reporter: java-junit
1221+
- name: Test Report Python 3.9
1222+
continue-on-error: true
1223+
id: test_report_python_3_9
1224+
uses: dorny/test-reporter@v1
1225+
if: ${{ !cancelled() && contains(matrix.splunk.version, 'unreleased-python3_9') }}
12171226
with:
12181227
name: splunk ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} ${{ env.TEST_TYPE }} test report
12191228
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
@@ -1415,7 +1424,16 @@ jobs:
14151424
- name: Test Report
14161425
id: test_report
14171426
uses: dorny/test-reporter@v1
1418-
if: ${{ !cancelled() }}
1427+
if: ${{ !cancelled() && !contains(matrix.splunk.version, 'unreleased-python3_9') }}
1428+
with:
1429+
name: splunk ${{ matrix.splunk.version }} ${{ env.TEST_TYPE }} test report
1430+
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
1431+
reporter: java-junit
1432+
- name: Test Report Python 3.9
1433+
continue-on-error: true
1434+
id: test_report_python_3_9
1435+
uses: dorny/test-reporter@v1
1436+
if: ${{ !cancelled() && contains(matrix.splunk.version, 'unreleased-python3_9') }}
14191437
with:
14201438
name: splunk ${{ matrix.splunk.version }} ${{ env.TEST_TYPE }} test report
14211439
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
@@ -1624,7 +1642,16 @@ jobs:
16241642
- name: Test Report
16251643
id: test_report
16261644
uses: dorny/test-reporter@v1
1627-
if: ${{ !cancelled() }}
1645+
if: ${{ !cancelled() && !contains(matrix.splunk.version, 'unreleased-python3_9') }}
1646+
with:
1647+
name: splunk ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} ${{ env.TEST_TYPE }} ${{ matrix.browser }} ${{ matrix.vendor-version.image }} test report
1648+
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
1649+
reporter: java-junit
1650+
- name: Test Report Python 3.9
1651+
id: test_report_python_3_9
1652+
continue-on-error: true
1653+
uses: dorny/test-reporter@v1
1654+
if: ${{ !cancelled() && contains(matrix.splunk.version, 'unreleased-python3_9') }}
16281655
with:
16291656
name: splunk ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} ${{ env.TEST_TYPE }} ${{ matrix.browser }} ${{ matrix.vendor-version.image }} test report
16301657
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
@@ -1846,7 +1873,15 @@ jobs:
18461873
- name: Test Report
18471874
id: test_report
18481875
uses: dorny/test-reporter@v1
1849-
if: ${{ !cancelled() }}
1876+
if: ${{ !cancelled() && !contains(matrix.splunk.version, 'unreleased-python3_9') }}
1877+
with:
1878+
name: splunk ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} ${{ env.TEST_TYPE }} ${{ matrix.vendor-version.image }} test report
1879+
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
1880+
reporter: java-junit
1881+
- name: Test Report Python 3.9
1882+
id: test_report_python_3_9
1883+
uses: dorny/test-reporter@v1
1884+
if: ${{ !cancelled() && contains(matrix.splunk.version, 'unreleased-python3_9') }}
18501885
with:
18511886
name: splunk ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} ${{ env.TEST_TYPE }} ${{ matrix.vendor-version.image }} test report
18521887
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
@@ -2062,7 +2097,15 @@ jobs:
20622097
- name: Test Report
20632098
id: test_report
20642099
uses: dorny/test-reporter@v1
2065-
if: ${{ !cancelled() }}
2100+
if: ${{ !cancelled() && !contains(matrix.splunk.version, 'unreleased-python3_9') }}
2101+
with:
2102+
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
2103+
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
2104+
reporter: java-junit
2105+
- name: Test Report Python 3.9
2106+
id: test_report_python_3_9
2107+
uses: dorny/test-reporter@v1
2108+
if: ${{ !cancelled() && contains(matrix.splunk.version, 'unreleased-python3_9') }}
20662109
with:
20672110
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
20682111
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
@@ -2277,7 +2320,15 @@ jobs:
22772320
- name: Test Report
22782321
id: test_report
22792322
uses: dorny/test-reporter@v1
2280-
if: ${{ !cancelled() }}
2323+
if: ${{ !cancelled() && !contains(matrix.splunk.version, 'unreleased-python3_9') }}
2324+
with:
2325+
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
2326+
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
2327+
reporter: java-junit
2328+
- name: Test Report Python 3.9
2329+
id: test_report_python_3_9
2330+
uses: dorny/test-reporter@v1
2331+
if: ${{ !cancelled() && contains(matrix.splunk.version, 'unreleased-python3_9') }}
22812332
with:
22822333
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
22832334
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
@@ -2502,7 +2553,15 @@ jobs:
25022553
- name: Test Report
25032554
id: test_report
25042555
uses: dorny/test-reporter@v1
2505-
if: ${{ steps.get-escu-detections.outputs.escu-test-run == 'true' }}
2556+
if: ${{ steps.get-escu-detections.outputs.escu-test-run == 'true' && !cancelled() && !contains(matrix.splunk.version, 'unreleased-python3_9')}}
2557+
with:
2558+
name: splunk ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} ${{ env.TEST_TYPE }} ${{ matrix.vendor-version.image }} test report
2559+
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"
2560+
reporter: java-junit
2561+
- name: Test Report Python 3.9
2562+
id: test_report_python_3_9
2563+
uses: dorny/test-reporter@v1
2564+
if: ${{ steps.get-escu-detections.outputs.escu-test-run == 'true' && !cancelled() && contains(matrix.splunk.version, 'unreleased-python3_9')}}
25062565
with:
25072566
name: splunk ${{ matrix.splunk.version }}${{ secrets.OTHER_TA_REQUIRED_CONFIGS }} ${{ env.TEST_TYPE }} ${{ matrix.vendor-version.image }} test report
25082567
path: "${{ needs.setup.outputs.directory-path }}/test-results/*.xml"

0 commit comments

Comments
 (0)