Skip to content

Commit

Permalink
feat: upgrade tests (#35)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dkaras-splunk authored Jan 9, 2025
1 parent 6107f32 commit 459eac8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,16 @@ inputs:
description: 'Browser type for UI tests'
required: false
default: ''
ta-upgrade-version:
required: false
description: 'Initial version of the TA for upgrade tests'
default: ''
outputs:
workflow-name: # id of output
description: 'Name of workflow triggered'
runs:
using: 'docker'
image: 'docker://ghcr.io/splunk/wfe-test-runner-action/wfe-test-runner-action:v5.0.2'
image: 'Dockerfile'
args:
- ${{ inputs.workflow-tmpl-name }}
- ${{ inputs.workflow-template-ns }}
Expand All @@ -99,3 +103,4 @@ runs:
- ${{ inputs.os-name }}
- ${{ inputs.os-version }}
- ${{ inputs.test-browser }}
- ${{ inputs.ta-upgrade-version }}
1 change: 1 addition & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ WORKFLOW_NAME=`argo submit -v -o json --from wftmpl/${1} -n ${2} -l workflows.ar
-p os-name=${15} \
-p os-version=${16} \
-p test-browser=${17} \
-p ta-upgrade-version=${18} \
-l="${9},test-type=${6},splunk-version=${5}" | jq -r .metadata.name`

echo "After argo submit $?"
Expand Down

0 comments on commit 459eac8

Please sign in to comment.