|
| 1 | +name: LLMInferenceService E2E Tests |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + paths: |
| 6 | + - "pkg/apis/serving/v1alpha1/llm*" |
| 7 | + - "pkg/apis/serving/v1alpha2/llm*" |
| 8 | + - "pkg/controller/v1alpha1/llmisvc/**" |
| 9 | + - "pkg/controller/v1alpha2/llmisvc/**" |
| 10 | + - "charts/kserve-llmisvc-resources/**" |
| 11 | + - "config/llmisvc/**" |
| 12 | + - "config/rbac/llmisvc/**" |
| 13 | + - "cmd/llmisvc/**" |
| 14 | + - "test/e2e/llmisvc/**" |
| 15 | + - ".github/workflows/e2e-test-llmisvc.yaml" |
| 16 | + - "hack/setup/quick-install/llmisvc-dependency-install.sh" |
| 17 | + |
| 18 | +concurrency: |
| 19 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 20 | + cancel-in-progress: true |
| 21 | + |
| 22 | +env: |
| 23 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 24 | + TAG: ${{ github.sha }} |
| 25 | + DOCKER_IMAGES_PATH: "/mnt/docker-images" |
| 26 | + KO_DOCKER_REPO: "kserve" |
| 27 | + LLMISVC: "true" |
| 28 | + |
| 29 | +jobs: |
| 30 | + |
| 31 | + llmisvc-image-build: |
| 32 | + runs-on: ubuntu-latest |
| 33 | + steps: |
| 34 | + - name: Checkout source |
| 35 | + uses: actions/checkout@v4 |
| 36 | + |
| 37 | + - name: Load KServe environment variables |
| 38 | + run: ./kserve-images.sh --ci |
| 39 | + |
| 40 | + - name: Free-up disk space |
| 41 | + uses: ./.github/actions/free-up-disk-space |
| 42 | + |
| 43 | + - name: Setup Docker Buildx |
| 44 | + uses: docker/setup-buildx-action@v3 |
| 45 | + with: |
| 46 | + cache-binary: true |
| 47 | + |
| 48 | + - name: Build LLMISvc image |
| 49 | + run: | |
| 50 | + sudo mkdir -p ${DOCKER_IMAGES_PATH} |
| 51 | + sudo chown -R $USER ${DOCKER_IMAGES_PATH} |
| 52 | + ./test/scripts/gh-actions/build-images.sh llmisvc |
| 53 | + docker image ls |
| 54 | + sudo ls -lh ${DOCKER_IMAGES_PATH} |
| 55 | + |
| 56 | + - name: Upload LLMISvc controller image |
| 57 | + uses: actions/upload-artifact@v4 |
| 58 | + with: |
| 59 | + name: ${{ env.LLMISVC_CONTROLLER_IMG }}-${{ env.TAG }} |
| 60 | + path: ${{ env.DOCKER_IMAGES_PATH }}/${{ env.LLMISVC_CONTROLLER_IMG }}-${{ env.TAG }} |
| 61 | + compression-level: 0 |
| 62 | + if-no-files-found: error |
| 63 | + |
| 64 | + test-llmisvc: |
| 65 | + runs-on: ubuntu-latest |
| 66 | + needs: [llmisvc-image-build] |
| 67 | + steps: |
| 68 | + - name: Checkout source |
| 69 | + uses: actions/checkout@v4 |
| 70 | + |
| 71 | + - name: Load KServe environment variables |
| 72 | + run: ./kserve-images.sh --ci |
| 73 | + |
| 74 | + - name: Free-up disk space |
| 75 | + uses: ./.github/actions/free-up-disk-space |
| 76 | + |
| 77 | + - name: Setup Go |
| 78 | + uses: actions/setup-go@v5 |
| 79 | + with: |
| 80 | + go-version-file: go.mod |
| 81 | + |
| 82 | + - name: Setup Python |
| 83 | + uses: actions/setup-python@v5 |
| 84 | + with: |
| 85 | + python-version: "3.9" |
| 86 | + |
| 87 | + - name: Setup Minikube |
| 88 | + uses: ./.github/actions/minikube-setup |
| 89 | + |
| 90 | + - name: Download LLMISvc controller image |
| 91 | + uses: actions/download-artifact@v4 |
| 92 | + with: |
| 93 | + name: ${{ env.LLMISVC_CONTROLLER_IMG }}-${{ env.TAG }} |
| 94 | + path: ./tmp |
| 95 | + |
| 96 | + - name: Load LLMISvc controller image into minikube |
| 97 | + run: | |
| 98 | + # Load the tagged image into minikube |
| 99 | + minikube image load ./tmp/${{ env.LLMISVC_CONTROLLER_IMG }}-${{ env.TAG }} |
| 100 | +
|
| 101 | + # Verify image is loaded |
| 102 | + echo "Images in minikube:" |
| 103 | + minikube image ls | grep ${{ env.LLMISVC_CONTROLLER_IMG }} || echo "No llmisvc-controller images found" |
| 104 | +
|
| 105 | + - name: KServe dependency setup |
| 106 | + uses: ./.github/actions/kserve-dep-setup |
| 107 | + with: |
| 108 | + deploy-llmisvc: "true" |
| 109 | + |
| 110 | + - name: Install UV |
| 111 | + run: ./test/scripts/gh-actions/setup-uv.sh |
| 112 | + |
| 113 | + - name: Install KServe |
| 114 | + run: | |
| 115 | + ./test/scripts/gh-actions/setup-kserve.sh |
| 116 | +
|
| 117 | + - name: Verify LLMISvc setup |
| 118 | + run: | |
| 119 | + echo "🔍 Verifying LLMISvc controller setup..." |
| 120 | +
|
| 121 | + echo "📋 LLMISvc Controller:" |
| 122 | + kubectl get pods -n kserve -l app.kubernetes.io/component=controller || true |
| 123 | +
|
| 124 | + echo "📋 LLM Resources:" |
| 125 | + kubectl get llminferenceserviceconfigs -A || true |
| 126 | +
|
| 127 | + echo "📋 Gateway API Resources:" |
| 128 | + kubectl get crd | grep inference || true |
| 129 | +
|
| 130 | + echo "📋 Envoy Gateway:" |
| 131 | + kubectl get pods -n envoy-gateway-system || true |
| 132 | +
|
| 133 | + echo "📋 AI Gateway:" |
| 134 | + kubectl get pods -n envoy-ai-gateway-system || true |
| 135 | +
|
| 136 | + echo "✅ LLMISvc setup verification complete!" |
| 137 | +
|
| 138 | + - name: Run predictor E2E tests |
| 139 | + id: predictor-tests |
| 140 | + timeout-minutes: 40 |
| 141 | + run: | |
| 142 | + # Run only CPU tests for now using pytest markers (cluster_) |
| 143 | + # Available GPU vendors: amd, nvidia, intel |
| 144 | + ./test/scripts/gh-actions/run-e2e-tests.sh "llminferenceservice and cluster_cpu" 1 "envoy-gateway" |
| 145 | + |
| 146 | + - name: Check system status |
| 147 | + if: always() |
| 148 | + run: | |
| 149 | + ./test/scripts/gh-actions/status-check.sh "llmisvc" |
0 commit comments