Skip to content

Commit

Permalink
feat: limit only to latest splunk version when run is scheduled
Browse files Browse the repository at this point in the history
  • Loading branch information
dkaras-splunk committed Jan 10, 2025
1 parent c2d398c commit 6e42e3a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/reusable-build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@ jobs:
run: |
set +e
declare -A EXECUTE_LABELED
<<<<<<< Updated upstream
TESTSET=("execute_knowledge" "execute_ui" "execute_modinput_functional" "execute_ucc_modinput_functional" "execute_scripted_inputs" "execute_requirement_test" "execute_upgrade")
=======
TESTSET=("execute_knowledge" "execute_ui" "execute_modinput_functional" "execute_ucc_modinput_functional" "execute_scripted_inputs" "execute_requirement_test")
>>>>>>> Stashed changes
for test_type in "${TESTSET[@]}"; do
EXECUTE_LABELED["$test_type"]="false"
done
Expand Down Expand Up @@ -260,6 +264,15 @@ jobs:
persist-credentials: false
- id: matrix
uses: splunk/addonfactory-test-matrix-action@v3.0
<<<<<<< Updated upstream
=======
- name: Reduce Splunk Versions for Scheduled Runs
if: github.event_name == 'schedule'
run: |
echo "Reducing the number of Splunk versions for scheduled runs"
jq '.supportedSplunk = .latestSplunk' $GITHUB_OUTPUT > $GITHUB_OUTPUT.tmp
mv $GITHUB_OUTPUT.tmp $GITHUB_OUTPUT
>>>>>>> Stashed changes
- name: job summary
run: |
splunk_version_list=$(echo '${{ steps.matrix.outputs.supportedSplunk }}' | jq -r '.[].version')
Expand Down Expand Up @@ -365,7 +378,10 @@ jobs:
requirement_test: ${{ steps.testset.outputs.requirement_test }}
scripted_inputs: ${{ steps.testset.outputs.scripted_inputs }}
ucc_modinput_functional: ${{ steps.testset.outputs.ucc_modinput_functional }}
<<<<<<< Updated upstream
upgrade: ${{ steps.testset.outputs.upgrade }}
=======
>>>>>>> Stashed changes
steps:
- uses: actions/checkout@v4
- id: testset
Expand Down Expand Up @@ -2559,6 +2575,7 @@ jobs:
with:
name: |
summary-ucc_modinput*
<<<<<<< Updated upstream

run-upgrade-tests:
if: ${{ !cancelled() && needs.build.result == 'success' && needs.test-inventory.outputs.upgrade == 'true' }}
Expand Down Expand Up @@ -2822,6 +2839,8 @@ jobs:
with:
name: |
summary-upgrade*
=======
>>>>>>> Stashed changes

run-scripted-input-tests-full-matrix:
if: ${{ !cancelled() && needs.build.result == 'success' && needs.test-inventory.outputs.scripted_inputs == 'true' && needs.setup-workflow.outputs.execute-scripted_inputs-labeled == 'true' }}
Expand Down

0 comments on commit 6e42e3a

Please sign in to comment.