Repository navigation
ci: install a fixed Helm version in helm-e2e and helm-verify #496
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright 2026 The Agent Substrate Authors | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| name: helm-e2e | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main, release-1.0] | |
| permissions: | |
| contents: read | |
| jobs: | |
| e2e-test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 120 | |
| env: | |
| VERSION: helm-e2e | |
| E2E_ATENET_DATAPLANE: agentgateway | |
| E2E_CREDENTIAL_PROVIDER: "1" | |
| # Retain external-volume coverage after the preview gate is introduced. | |
| ATE_PREVIEW: ALL | |
| ARTIFACTS: ${{ github.workspace }}/_artifacts | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 | |
| - name: Setup Go | |
| uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 | |
| with: | |
| go-version-file: go.mod | |
| cache: false | |
| # Reuse the cache that pr-workflow's e2e job saves on main. It builds the | |
| # same images with ko. | |
| - name: Restore Go build cache | |
| uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: | | |
| ~/.cache/go-build | |
| ~/go/pkg/mod | |
| key: e2e-go-${{ runner.os }}-${{ github.sha }} | |
| restore-keys: e2e-go-${{ runner.os }}- | |
| - name: Setup Helm | |
| uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1 | |
| with: | |
| version: v4.3.2 | |
| - name: Cache micro-VM assets | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: ~/.cache/kubectl-ate/microvm-assets | |
| key: kubectl-ate-microvm-assets-${{ hashFiles('manifests/ate-install/sandboxconfig-microvm.yaml.tmpl') }} | |
| - name: Enable KVM | |
| run: | | |
| echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' \ | |
| | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
| sudo udevadm control --reload-rules | |
| sudo udevadm trigger --name-match=kvm | |
| - name: Create cluster | |
| run: hack/create-kind-cluster.sh | |
| - name: Label nodes with the installed version | |
| run: kubectl label nodes --all ate.dev/substrate-version=${VERSION} | |
| - name: Create install namespace | |
| run: kubectl create namespace ate-system | |
| - name: Install observability fixtures | |
| run: | | |
| kubectl apply -f manifests/ate-install/kind/otel-collector.yaml | |
| kubectl apply -f manifests/ate-install/kind/prometheus.yaml | |
| - name: Build chart images | |
| run: | | |
| # Pushed under the image's real path (kagent-dev/substrate/<component>): | |
| # the chart composes {registry}/{repository}/{component}, so the local | |
| # registry serves each image where the default repository expects it -- | |
| # the same path-preserving rule a production mirror follows. | |
| for component in ateapi ate-idp-server atecontroller atelet podcertcontroller atenet objectstore-plugin credential-provider/kubernetes-secrets; do | |
| KO_DOCKER_REPO="localhost:5001/kagent-dev/substrate/${component##*/}" \ | |
| ./hack/run-tool.sh ko build --bare --tags helm-e2e \ | |
| --platform linux/amd64 "./cmd/${component}" | |
| done | |
| - name: Install Agent Substrate with kubectl ate | |
| run: .github/scripts/helm-e2e/install.sh | |
| - name: Enable NFS | |
| run: | | |
| sudo modprobe nfs || true | |
| sudo modprobe nfsd || true | |
| - name: Install CSI NFS driver | |
| run: go run ./cmd/ate-setup --kind setup csi nfs | |
| - name: Deploy microVM counter demo | |
| run: go run ./cmd/ate-setup --kind deploy demo counter-microvm | |
| - name: Deploy gVisor counter demo | |
| run: go run ./cmd/ate-setup --kind deploy demo counter | |
| - name: Deploy egress demos | |
| run: | | |
| go run ./cmd/ate-setup --kind deploy demo egress | |
| go run ./cmd/ate-setup --kind deploy demo egress-microvm | |
| - name: Trust local E2E TLS origins | |
| run: hack/setup-e2e-egress-tls-kind.sh | |
| # The egress credential suite reapplies the provider policy from the | |
| # manifests when it ends, which drops the grants the credentials suite | |
| # checks. Run it after both runtimes' main lanes. | |
| - name: Focus the node on gVisor | |
| run: hack/e2e-focus-sandbox-class.sh gvisor | |
| - name: Run E2E tests (gVisor) | |
| env: | |
| E2E_PARALLELISM: 8 | |
| E2E_JUNIT_FILE: ${{ github.workspace }}/_artifacts/helm-gvisor.xml | |
| run: hack/run-e2e-kind.sh -v -skip '^TestActorEgressCredentialInjection$' -args --no-color --preview="${ATE_PREVIEW}" | |
| - name: Focus the node on micro-VM | |
| run: hack/e2e-focus-sandbox-class.sh microvm | |
| - name: Run E2E tests (micro-VM) | |
| env: | |
| E2E_SANDBOX_CLASS: microvm | |
| E2E_PARALLELISM: 8 | |
| E2E_JUNIT_FILE: ${{ github.workspace }}/_artifacts/helm-microvm.xml | |
| run: hack/run-e2e-kind.sh -v -skip '^TestActorEgressCredentialInjection$' -args --no-color --preview="${ATE_PREVIEW}" | |
| - name: Run E2E tests (egress credential injection, micro-VM) | |
| env: | |
| E2E_SANDBOX_CLASS: microvm | |
| E2E_JUNIT_FILE: ${{ github.workspace }}/_artifacts/helm-egress-credentials-microvm.xml | |
| run: hack/run-e2e-kind.sh ./internal/e2e/suites/egresscredinject -v -args --no-color --preview="${ATE_PREVIEW}" | |
| - name: Focus the node on gVisor | |
| run: hack/e2e-focus-sandbox-class.sh gvisor | |
| - name: Run E2E tests (egress credential injection, gVisor) | |
| env: | |
| E2E_JUNIT_FILE: ${{ github.workspace }}/_artifacts/helm-egress-credentials.xml | |
| run: hack/run-e2e-kind.sh ./internal/e2e/suites/egresscredinject -v -args --no-color --preview="${ATE_PREVIEW}" | |
| - name: Require every lane to have run tests | |
| if: always() | |
| run: | | |
| go -C tools/junittool run . verify -manifest "${ARTIFACTS}/expected-junit.txt" | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: test-results-helm-e2e | |
| path: ${{ env.ARTIFACTS }} | |
| if-no-files-found: error | |
| - name: Dump diagnostics on failure | |
| if: failure() | |
| run: | | |
| kubectl --context kind-kind get workerpool,pods -A -o wide || true | |
| for p in $(kubectl --context kind-kind get pods -n ate-system -o name 2>/dev/null); do | |
| echo "=== logs: ate-system/${p} ===" | |
| kubectl --context kind-kind logs -n ate-system "$p" --all-containers --tail=300 || true | |
| done |