Skip to content

Commit b64b238

Browse files
fix: limit scheduled runs to latest Splunk (#369)
### Description Limit test executions for scheduled runs to only latest Splunk version ### Checklist - [ ] `README.md` has been updated or is not required - [ ] push trigger tests - [ ] manual release test - [ ] automated releases test - [ ] pull request trigger tests - [ ] schedule trigger tests - [ ] workflow errors/warnings reviewed and addressed ### Testing done https://github.com/splunk/test-addonfactory-repo/actions/runs/13200963135 --------- Co-authored-by: Dariusz Karas <dkaras@splunk.com>
1 parent 7ff8324 commit b64b238

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

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

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ on:
3939
required: false
4040
description: "branch for k8s manifests to run the tests on"
4141
type: string
42-
default: "v3.4"
42+
default: "v3.3.2"
4343
scripted-inputs-os-list:
4444
required: false
4545
description: "list of OS used for scripted input tests"
@@ -246,6 +246,7 @@ jobs:
246246
meta:
247247
runs-on: ubuntu-latest
248248
outputs:
249+
matrix_Splunk: ${{ steps.determine_splunk.outputs.matrixSplunk }}
249250
matrix_supportedSplunk: ${{ steps.matrix.outputs.supportedSplunk }}
250251
matrix_latestSplunk: ${{ steps.matrix.outputs.latestSplunk }}
251252
matrix_supportedSC4S: ${{ steps.matrix.outputs.supportedSC4S }}
@@ -261,6 +262,13 @@ jobs:
261262
persist-credentials: false
262263
- id: matrix
263264
uses: splunk/addonfactory-test-matrix-action@v3.0
265+
- id: determine_splunk
266+
run: |
267+
if [ "${{ github.event_name }}" == "schedule" ]; then
268+
echo "matrixSplunk=${{ toJson(steps.matrix.outputs.latestSplunk) }}" >> "$GITHUB_OUTPUT"
269+
else
270+
echo "matrixSplunk=${{toJson(steps.matrix.outputs.supportedSplunk) }}" >> "$GITHUB_OUTPUT"
271+
fi
264272
- name: job summary
265273
run: |
266274
splunk_version_list=$(echo '${{ steps.matrix.outputs.supportedSplunk }}' | jq -r '.[].version')
@@ -988,7 +996,6 @@ jobs:
988996
name: artifact-openapi
989997
path: ${{ github.workspace }}
990998
- name: Setup python
991-
if: steps.download-openapi.conclusion != 'skipped'
992999
uses: actions/setup-python@v5
9931000
with:
9941001
python-version: 3.7
@@ -1049,7 +1056,7 @@ jobs:
10491056
strategy:
10501057
fail-fast: false
10511058
matrix:
1052-
splunk: ${{ fromJson(needs.meta.outputs.matrix_latestSplunk) }}
1059+
splunk: ${{ fromJson(needs.meta.outputs.matrix_Splunk) }}
10531060
sc4s: ${{ fromJson(needs.meta.outputs.matrix_supportedSC4S) }}
10541061
container:
10551062
image: ghcr.io/splunk/workflow-engine-base:4.1.0
@@ -1310,7 +1317,7 @@ jobs:
13101317
strategy:
13111318
fail-fast: false
13121319
matrix:
1313-
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
1320+
splunk: ${{ fromJson(needs.meta.outputs.matrix_Splunk) }}
13141321
sc4s: ${{ fromJson(needs.meta.outputs.matrix_supportedSC4S) }}
13151322
container:
13161323
image: ghcr.io/splunk/workflow-engine-base:4.1.0
@@ -1579,9 +1586,8 @@ jobs:
15791586
strategy:
15801587
fail-fast: false
15811588
matrix:
1582-
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
1589+
splunk: ${{ fromJson(needs.meta.outputs.matrix_Splunk) }}
15831590
sc4s: ${{ fromJson(needs.meta.outputs.matrix_supportedSC4S) }}
1584-
15851591
container:
15861592
image: ghcr.io/splunk/workflow-engine-base:4.1.0
15871593
env:
@@ -1835,7 +1841,7 @@ jobs:
18351841
strategy:
18361842
fail-fast: false
18371843
matrix:
1838-
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
1844+
splunk: ${{ fromJson(needs.meta.outputs.matrix_Splunk) }}
18391845
browser: [ "chrome" ]
18401846
vendor-version: ${{ fromJson(needs.meta.outputs.matrix_supportedUIVendors) }}
18411847
marker: ${{ fromJson(inputs.ui_marker) }}
@@ -2113,7 +2119,7 @@ jobs:
21132119
strategy:
21142120
fail-fast: false
21152121
matrix:
2116-
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
2122+
splunk: ${{ fromJson(needs.meta.outputs.matrix_Splunk) }}
21172123
modinput-type: [ "modinput_functional" ]
21182124
vendor-version: ${{ fromJson(needs.meta.outputs.matrix_supportedModinputFunctionalVendors) }}
21192125
marker: ${{ fromJson(inputs.marker) }}
@@ -2389,7 +2395,7 @@ jobs:
23892395
strategy:
23902396
fail-fast: false
23912397
matrix:
2392-
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
2398+
splunk: ${{ fromJson(needs.meta.outputs.matrix_Splunk) }}
23932399
vendor-version: ${{ fromJson(needs.meta.outputs.matrix_supportedModinputFunctionalVendors) }}
23942400
marker: ${{ fromJson(inputs.ucc-modinput-marker) }}
23952401
container:
@@ -2664,7 +2670,7 @@ jobs:
26642670
strategy:
26652671
fail-fast: false
26662672
matrix:
2667-
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
2673+
splunk: ${{ fromJson(needs.meta.outputs.matrix_Splunk) }}
26682674
vendor-version: ${{ fromJson(needs.meta.outputs.matrix_supportedModinputFunctionalVendors) }}
26692675
ta-version-from-upgrade: ${{ fromJson(inputs.upgrade-tests-ta-versions) }}
26702676
container:
@@ -2927,7 +2933,7 @@ jobs:
29272933
strategy:
29282934
fail-fast: false
29292935
matrix:
2930-
splunk: ${{ fromJson(needs.meta.outputs.matrix_supportedSplunk) }}
2936+
splunk: ${{ fromJson(needs.meta.outputs.matrix_Splunk) }}
29312937
os: ${{ fromJson(inputs.scripted-inputs-os-list) }}
29322938
container:
29332939
image: ghcr.io/splunk/workflow-engine-base:4.1.0

0 commit comments

Comments
 (0)