Skip to content

chore: add workflow to push helm charts to mcr #214

chore: add workflow to push helm charts to mcr

chore: add workflow to push helm charts to mcr #214

Workflow file for this run

name: E2E tests
on:
push:
branches:
- main
pull_request: {}
workflow_dispatch:
inputs:
branch:
description: 'Branch name to run E2E tests against'
required: true
default: 'main'
provider:
description: 'E2E provider — selects component install mix. "upstream" = Helm-installed components; "azure" = AKS managed KEDA add-on, others stay upstream.'
required: false
default: 'upstream'
type: choice
options:
- upstream
- azure
istio_version:
description: 'Istio version (e.g. 1.29.0). Leave empty to use default from versions.env'
required: false
default: ''
gateway_api_version:
description: 'Gateway API CRD version (e.g. v1.2.0). Leave empty to use default from versions.env'
required: false
default: ''
bbr_version:
description: 'BBR release version (e.g. v1.3.1). Leave empty to use default from versions.env'
required: false
default: ''
keda_version:
description: 'KEDA Helm chart version (e.g. v2.19.0). Leave empty to use default from versions.env'
required: false
default: ''
keda_kaito_scaler_version:
description: 'KEDA Kaito Scaler Helm chart version (e.g. v0.3.3). Leave empty to use default from versions.env'
required: false
default: ''
llm_gateway_auth_version:
description: 'LLM Gateway Auth Helm chart version (e.g. v0.1.0). Leave empty to use default from versions.env'
required: false
default: ''
env:
RESOURCE_GROUP: "kaito-gw-e2e-rg-${{ github.run_id }}"
CLUSTER_NAME: "kaito-gw-e2e-aks-${{ github.run_id }}"
ACR_NAME: "kaitogwe2eaks${{ github.run_id }}acr"
GPU_MOCKER_IMAGE: "gpu-node-mocker:latest-${{ github.run_id }}"
LOCATION: australiaeast
NODE_COUNT: '3'
NODE_VM_SIZE: Standard_D8s_v5
permissions:
contents: read
jobs:
e2e-tests:
runs-on: [ "self-hosted", "hostname:kaito-e2e-github-runner" ]
environment: e2e-test
permissions:
contents: read
steps:
- name: Checkout Repository
uses: actions/checkout@v6
with:
ref: ${{ github.event.inputs.branch || github.ref }}
- name: E2E base setup
uses: ./.github/actions/e2e-base-setup
with:
resource-group: ${{ env.RESOURCE_GROUP }}
cluster-name: ${{ env.CLUSTER_NAME }}
acr-name: ${{ env.ACR_NAME }}
gpu-mocker-image: ${{ env.GPU_MOCKER_IMAGE }}
location: ${{ env.LOCATION }}
node-count: ${{ env.NODE_COUNT }}
node-vm-size: ${{ env.NODE_VM_SIZE }}
provider: ${{ github.event.inputs.provider }}
istio-version: ${{ github.event.inputs.istio_version }}
gateway-api-version: ${{ github.event.inputs.gateway_api_version }}
bbr-version: ${{ github.event.inputs.bbr_version }}
keda-version: ${{ github.event.inputs.keda_version }}
keda-kaito-scaler-version: ${{ github.event.inputs.keda_kaito_scaler_version }}
llm-gateway-auth-version: ${{ github.event.inputs.llm_gateway_auth_version }}
- name: Run E2E tests
# Skip Nightly-labeled specs (slow/destructive scaling cases, etc.).
# TheNightly suite runs in e2e-nightly.yaml.
# NetworkPolicy specs are temporarily disabled.
run: make test-e2e
env:
E2E_LABEL: "!Nightly && !NetworkPolicy"
- name: Dump cluster state
if: failure()
run: make e2e-dump
- name: Teardown cluster
if: always()
run: make e2e-teardown
env:
RESOURCE_GROUP: ${{ env.RESOURCE_GROUP }}