Skip to content

Commit e27817e

Browse files
committed
ci(.github): add upgrade/shim re-install check to smoke-test
Signed-off-by: Vaughn Dice <[email protected]>
1 parent 18f9e00 commit e27817e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/marketplace-smoke-test.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
- name: create kind cluster
2525
uses: helm/kind-action@v1
2626

27+
## Install SpinKube and verify Spin App runs
28+
2729
- name: helm install spinkube
2830
run: |
2931
helm install spinkube \
@@ -56,6 +58,25 @@ jobs:
5658
- name: Verify curl
5759
run: curl localhost:8083/hello
5860

61+
## Upgrade release and verify shim is re-installed
62+
63+
- name: delete any lingering kwasm jobs
64+
run: kubectl -n spinkube delete job -l kwasm.sh/job=true
65+
66+
- name: helm upgrade spinkube and watch for annotate and install job completions
67+
run: |
68+
helm upgrade spinkube \
69+
--wait \
70+
--namespace spinkube \
71+
--debug \
72+
marketplace/charts/spinkube-azure-marketplace & \
73+
timeout 30s bash -c 'until [[ "$(kubectl -n spinkube get job -l job-name=spinkube-kwasm-annotate-nodes -o json | jq '.items[].spec.completions')" == "1" ]]; do sleep 2; done'
74+
timeout 30s bash -c 'until [[ "$(kubectl -n spinkube get job -l kwasm.sh/job=true -o json | jq '.items[].spec.completions')" == "1" ]]; do sleep 2; done'
75+
76+
## Delete release
77+
78+
# First, verify deletion is blocked when Spin App resources exist
79+
5980
- name: helm delete spinkube
6081
run: |
6182
if helm delete spinkube --timeout 1m --namespace spinkube; then
@@ -80,6 +101,8 @@ jobs:
80101
- name: Delete Spin App
81102
run: kubectl delete spinapp simple-spinapp
82103

104+
# Now verify deletion proceeds and no resources remain
105+
83106
- name: helm delete spinkube
84107
run: helm delete spinkube --timeout 1m --namespace spinkube
85108

0 commit comments

Comments
 (0)