Skip to content

Commit 459eac8

Browse files
feat: upgrade tests (#35)
TA-> TA Upgrade implementation [ADDON-73792](https://splunk.atlassian.net/browse/ADDON-73792) This pull request introduces a new feature to our CI/CD pipeline, focusing on automating upgrade testing for Technology Add-ons (TA). The goal is to streamline the release process by incorporating scalable and user-friendly solutions capable of executing upgrade scenarios Key Features: Automated Upgrade Testing: Introduces jobs for upgrade testing within the GitHub CI/CD pipeline. Flexible Version Testing: Allows users to provide multiple TA versions on which upgrade tests should be executed. In this repo, ta_upgrade_version parameter is responsible for passing the info about versions being tested. Also, both GitHub and Splunkbase releases are supported, depending on the format of the version string provided: vX.X.X - for GitHub releases X.X.X - for Splunkbase releases additionally, latest can be passed to use the latest version from GitHub example run - https://github.com/splunk/splunk-add-on-for-amazon-web-services/actions/runs/12045945177 Part of splunk/ta-automation-app-of-apps#27 splunk/ta-automation-k8s-manifests#102 splunk/addonfactory-workflow-addon-release#344
1 parent 6107f32 commit 459eac8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

action.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,16 @@ inputs:
7575
description: 'Browser type for UI tests'
7676
required: false
7777
default: ''
78+
ta-upgrade-version:
79+
required: false
80+
description: 'Initial version of the TA for upgrade tests'
81+
default: ''
7882
outputs:
7983
workflow-name: # id of output
8084
description: 'Name of workflow triggered'
8185
runs:
8286
using: 'docker'
83-
image: 'docker://ghcr.io/splunk/wfe-test-runner-action/wfe-test-runner-action:v5.0.2'
87+
image: 'Dockerfile'
8488
args:
8589
- ${{ inputs.workflow-tmpl-name }}
8690
- ${{ inputs.workflow-template-ns }}
@@ -99,3 +103,4 @@ runs:
99103
- ${{ inputs.os-name }}
100104
- ${{ inputs.os-version }}
101105
- ${{ inputs.test-browser }}
106+
- ${{ inputs.ta-upgrade-version }}

entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ WORKFLOW_NAME=`argo submit -v -o json --from wftmpl/${1} -n ${2} -l workflows.ar
4141
-p os-name=${15} \
4242
-p os-version=${16} \
4343
-p test-browser=${17} \
44+
-p ta-upgrade-version=${18} \
4445
-l="${9},test-type=${6},splunk-version=${5}" | jq -r .metadata.name`
4546

4647
echo "After argo submit $?"

0 commit comments

Comments
 (0)