Skip to content

Comments

ci(*): update helm-chart-smoketest.yml, add wasmtime-v1 coverage#605

Open
vdice wants to merge 2 commits intospinframework:mainfrom
vdice:ci/update-smoketest-add-wasmtime-coverage
Open

ci(*): update helm-chart-smoketest.yml, add wasmtime-v1 coverage#605
vdice wants to merge 2 commits intospinframework:mainfrom
vdice:ci/update-smoketest-add-wasmtime-coverage

Conversation

@vdice
Copy link
Collaborator

@vdice vdice commented Feb 20, 2026

Describe your changes

  • Updates the helm chart smoke test to support more than the spin shim
  • Add coverage for the wasmtime-v1 shim/app

Notes:

  • This effort has (re-)churned up issue(s) with the k3d distro (before, we would skip a few checks that glossed over the behavior); for now, in this PR, I've just included a generous timeout, but a follow-up is needed to determine why it can sometimes take many failed shim install pods before the shim is ready. (For instance, the other distros usually finish in ~1.5-3 minutes, whereas the k3d variant can be in that range but can also, mysteriously, take much longer)
  • I realize this shell-based approach is probably nearing the limits of maintainability/readability. Happy to brainstorm follow-up(s) on how to improve or migrate to a different test harness. (Could be as simple as moving inline bash into scripts to improve the workflow 'flow' itself)

Issue ticket number and link

Depends on #604 (Can rebase after that lands)

Closes #602

Signed-off-by: Vaughn Dice <vdice@akamai.com>
@vdice vdice force-pushed the ci/update-smoketest-add-wasmtime-coverage branch from 09f7f14 to b01c353 Compare February 21, 2026 00:16
Signed-off-by: Vaughn Dice <vdice@akamai.com>
@vdice vdice force-pushed the ci/update-smoketest-add-wasmtime-coverage branch from b01c353 to 70ced6e Compare February 21, 2026 00:17
run: |
timeout 60s bash -c 'until [[ "$(kubectl -n rcm get $(kubectl get pods -n rcm --no-headers -o name | grep install | head -n1) -o jsonpath="{.status.phase}" 2>/dev/null)" == "Succeeded" ]]; do sleep 2; done'
for shim_file in $(ls config/samples/sample_shim*); do
label="$(cat $shim_file | yq '.spec.nodeSelector' | tr -d '"' | tr -d '[:space:]' | sed s/:/=/g)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realize this shell-based approach is probably nearing the limits of maintainability/readability.

I think script is fine but can we move these to a scripts/ directory and call the scripts instead of inlining here?

kubectl label node --all $label

shim_name="$(cat $shim_file | yq '.metadata.name')"
# TODO: k3d can take a long round of failed install pods (exit code 6 when curling the artifact?)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For K3d, SystemdCgroups: true should be removed (or set to false) in the sample shim. Can we add a conditional sed for that? More context: #393 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tests: add coverage for wasmtime

2 participants