Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
e681c3d
adding business logic to fetch revisions
deusebio Apr 11, 2026
dedf985
test ci new refactoring
deusebio Apr 16, 2026
12b9514
small fix
deusebio Apr 16, 2026
1bfc731
wip
deusebio Apr 16, 2026
4e635af
debug
deusebio Apr 16, 2026
77189fa
install pyyaml
deusebio Apr 16, 2026
21e661f
check
deusebio Apr 16, 2026
d306887
Revert "debug"
deusebio Apr 16, 2026
30b5053
finalized
deusebio Apr 16, 2026
c6acc06
fix
deusebio Apr 16, 2026
6dfba82
promotion
deusebio Apr 16, 2026
939c966
fix typo
deusebio Apr 16, 2026
ca75686
promotion
deusebio Apr 16, 2026
9033d7c
promotion
deusebio Apr 16, 2026
f3be69f
fix
deusebio Apr 16, 2026
9b77636
remove secrets
deusebio Apr 17, 2026
ca2ed1a
adding auth token
deusebio Apr 17, 2026
f1343b8
refactoring
deusebio Apr 17, 2026
4c95ac4
test
deusebio Apr 17, 2026
9021902
test
deusebio Apr 17, 2026
aee3536
wip
deusebio Apr 17, 2026
414e8bb
different gates
deusebio Apr 17, 2026
fe3cfde
finalized
deusebio Apr 17, 2026
ed387cd
add gating logic
deusebio Apr 19, 2026
7ab3b63
fix boolean
deusebio Apr 19, 2026
e5c161d
chore: address PR review feedback on workflow actions and promotion s…
Copilot Apr 21, 2026
af1e1bf
ci: bump workflow actions in promotion PR files (#218)
Copilot Apr 21, 2026
1e9ed91
fix linting
deusebio Apr 21, 2026
a488fb4
Update .github/actions/run-test/action.yaml
deusebio Apr 24, 2026
fd5d6e7
Apply suggestions from code review
deusebio Apr 24, 2026
d5f777e
final polishing
deusebio Apr 24, 2026
111583d
fix linting
deusebio Apr 24, 2026
98f7964
adding argument
deusebio Apr 24, 2026
d946189
reduce the matrix
deusebio Apr 27, 2026
8e7701f
test full workflow
deusebio Apr 27, 2026
19f739b
exclude the basic testing
deusebio Apr 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 45 additions & 3 deletions .github/actions/run-test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@ inputs:
required: false
default: ""
type: string
tfvars-file:
description: "Optional artifact name containing a tfvars file to pass to pytest"
required: false
default: ""
type: string
architecture:
description: "Target architecture for the test run"
required: false
default: "amd64"
type: string

runs:
using: "composite"
Expand Down Expand Up @@ -166,7 +176,7 @@ runs:

- id: setup-python
name: Setup Python
uses: actions/setup-python@v5.0.0
uses: actions/setup-python@v5.3.0
with:
python-version: "3.10"
architecture: x64
Expand Down Expand Up @@ -222,16 +232,49 @@ runs:
sudo snap install terraform --classic
fi

- id: download-tfvars
name: Download tfvars artifact
if: ${{ inputs.tfvars-file != '' }}
uses: actions/download-artifact@v8
with:
name: ${{ inputs.tfvars-file }}
path: tfvars-artifacts

- id: tests-integration
name: Run Integration Tests
shell: bash
env:
AZURE_STORAGE_ACCOUNT: ${{ inputs.azure-storage-account }}
AZURE_STORAGE_KEY: ${{ inputs.azure-storage-key }}
run: |
TFVARS_ARG=""
if [[ -n "${{ inputs.tfvars-file }}" ]]; then

version=${{ inputs.spark-version }}
major_minor="${version%.*}" # -> 3.5
arch="${{ inputs.architecture }}"

TFVARS_PATH="$(find tfvars-artifacts -type f -name "${major_minor}@${arch}.yaml" | head -n1)"
if [[ -z "$TFVARS_PATH" ]]; then
echo "ERROR: no tfvars file found in artifact '${{ inputs.tfvars-file }}'."
find tfvars-artifacts -type f || true
exit 1
fi

pip install pyyaml
python3 .github/scripts/charms_promotions.py get-revisions \
--format yaml --file $TFVARS_PATH --output tfvars

REVISION_FILE="${major_minor}@${arch}.tfvars.yaml"

cp $REVISION_FILE python/revisions.tfvars.yaml

TFVARS_ARG="--tfvars-file revisions.tfvars.yaml"
fi

juju add-model spark-bundle-test
juju list-models
cd python && tox run -e ${{ inputs.tox-env }} -- -m '${{ steps.select-tests.outputs.mark_expression }}' --cos-model ${{ inputs.cos-model }} --spark-version ${{ inputs.spark-version }} --storage-backend ${{ inputs.storage-backend }} --model spark-bundle-test ${{ inputs.pytest-args }}
cd python && tox run -e ${{ inputs.tox-env }} -- -m '${{ steps.select-tests.outputs.mark_expression }}' --cos-model ${{ inputs.cos-model }} --spark-version ${{ inputs.spark-version }} --storage-backend ${{ inputs.storage-backend }} --model spark-bundle-test ${{ inputs.pytest-args }} $TFVARS_ARG
echo "TEST_EXIT_CODE=$?" >> $GITHUB_ENV

- id: collect-logs
Expand Down Expand Up @@ -297,4 +340,3 @@ runs:
name: integration-results-${{ inputs.tox-env }}-${{ inputs.k8s-distribution }}-${{ inputs.k8s-version }}-${{ inputs.spark-version }}-${{ inputs.storage-backend }}-${{ inputs.cos-model }}-${{ inputs.juju-agent-version }}
path: test-result.json


Loading
Loading