Skip to content

Commit d0540b2

Browse files
committed
ci(kubernetes): test agent-sandbox api versions
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
1 parent e934f0b commit d0540b2

3 files changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/branch-e2e.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,22 @@ jobs:
115115
kubernetes-e2e:
116116
needs: [pr_metadata, build-gateway, build-supervisor]
117117
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true'
118+
strategy:
119+
fail-fast: false
120+
matrix:
121+
include:
122+
- agent_sandbox_api: v1beta1
123+
agent_sandbox_version: v0.5.0
124+
- agent_sandbox_api: v1alpha1
125+
agent_sandbox_version: v0.4.6
118126
permissions:
119127
contents: read
120128
packages: read
121129
uses: ./.github/workflows/e2e-kubernetes-test.yml
122130
with:
123131
image-tag: ${{ github.sha }}
132+
job-name: Kubernetes E2E (Rust smoke, Agent Sandbox ${{ matrix.agent_sandbox_api }})
133+
agent-sandbox-version: ${{ matrix.agent_sandbox_version }}
124134

125135
kubernetes-ha-e2e:
126136
needs: [pr_metadata, build-gateway, build-supervisor]

.github/workflows/e2e-kubernetes-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ on:
3232
required: false
3333
type: string
3434
default: ""
35+
agent-sandbox-version:
36+
description: "Agent Sandbox release to install before OpenShell"
37+
required: false
38+
type: string
39+
default: "v0.5.0"
3540
mise-version:
3641
description: "mise version to install on the bare Kubernetes e2e runner"
3742
required: false
@@ -114,6 +119,7 @@ jobs:
114119
115120
- name: Run Kubernetes E2E (Rust smoke)
116121
env:
122+
AGENT_SANDBOX_VERSION: ${{ inputs.agent-sandbox-version }}
117123
OPENSHELL_E2E_KUBE_CONTEXT: kind-${{ env.KIND_CLUSTER_NAME }}
118124
OPENSHELL_E2E_KUBE_EXTRA_VALUES: ${{ inputs.extra-helm-values }}
119125
OPENSHELL_E2E_KUBE_EXTERNAL_POSTGRES_SECRET: ${{ inputs.external-postgres-secret }}

tasks/test.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,18 @@ run = "e2e/rust/e2e-podman.sh"
9494
description = "Run Rust CLI e2e tests against an OpenShell gateway deployed on Kubernetes via Helm (set OPENSHELL_E2E_KUBE_CONTEXT to reuse a cluster; otherwise creates a local k3d cluster when k3d is installed; set OPENSHELL_E2E_KUBE_TEST=<name> to scope to one test)"
9595
run = "e2e/rust/e2e-kubernetes.sh"
9696

97+
["e2e:kubernetes:v1alpha1"]
98+
description = "Run Kubernetes e2e against Agent Sandbox v1alpha1"
99+
env = { AGENT_SANDBOX_VERSION = "v0.4.6" }
100+
run = "e2e/rust/e2e-kubernetes.sh"
101+
102+
["e2e:kubernetes:agent-sandbox-versions"]
103+
description = "Run Kubernetes e2e against Agent Sandbox v1beta1 and v1alpha1"
104+
run = [
105+
"e2e/rust/e2e-kubernetes.sh",
106+
"AGENT_SANDBOX_VERSION=v0.4.6 e2e/rust/e2e-kubernetes.sh",
107+
]
108+
97109
["e2e:kubernetes:db"]
98110
description = "Run Kubernetes e2e with all database backend scenarios (SQLite and external PostgreSQL with existingSecret)"
99111
env = { OPENSHELL_E2E_KUBE_DB_SCENARIOS = "1" }

0 commit comments

Comments
 (0)