|
| 1 | +# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. |
| 2 | +# SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +name: Branch Helm E2E |
| 5 | + |
| 6 | +on: |
| 7 | + push: |
| 8 | + branches: |
| 9 | + - "pull-request/[0-9]+" |
| 10 | + workflow_dispatch: {} |
| 11 | + |
| 12 | +permissions: {} |
| 13 | + |
| 14 | +jobs: |
| 15 | + pr_metadata: |
| 16 | + name: Resolve PR metadata |
| 17 | + runs-on: ubuntu-latest |
| 18 | + permissions: |
| 19 | + contents: read |
| 20 | + pull-requests: read |
| 21 | + outputs: |
| 22 | + should_run: ${{ steps.gate.outputs.should_run }} |
| 23 | + steps: |
| 24 | + - uses: actions/checkout@v6 |
| 25 | + |
| 26 | + - id: gate |
| 27 | + uses: ./.github/actions/pr-gate |
| 28 | + with: |
| 29 | + required_label: test:e2e-helm |
| 30 | + |
| 31 | + helm-e2e-rust: |
| 32 | + name: Helm E2E (rust) |
| 33 | + needs: [pr_metadata] |
| 34 | + if: needs.pr_metadata.outputs.should_run == 'true' |
| 35 | + runs-on: linux-amd64-cpu8 |
| 36 | + timeout-minutes: 60 |
| 37 | + permissions: |
| 38 | + contents: read |
| 39 | + packages: read |
| 40 | + container: |
| 41 | + image: ghcr.io/nvidia/openshell/ci:latest |
| 42 | + credentials: |
| 43 | + username: ${{ github.actor }} |
| 44 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 45 | + options: --privileged |
| 46 | + volumes: |
| 47 | + - /var/run/docker.sock:/var/run/docker.sock |
| 48 | + env: |
| 49 | + MISE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 50 | + HELM_E2E_CLUSTER_NAME: openshell-helm-e2e-${{ github.run_id }}-rust |
| 51 | + steps: |
| 52 | + - uses: actions/checkout@v6 |
| 53 | + |
| 54 | + - name: Mark workspace safe for git |
| 55 | + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" |
| 56 | + |
| 57 | + - name: Install tools |
| 58 | + run: mise install --locked |
| 59 | + |
| 60 | + - name: Run Helm E2E (Rust) |
| 61 | + run: mise run e2e:helm:rust |
| 62 | + |
| 63 | + helm-e2e-python: |
| 64 | + name: Helm E2E (python) |
| 65 | + needs: [pr_metadata] |
| 66 | + if: needs.pr_metadata.outputs.should_run == 'true' |
| 67 | + runs-on: linux-amd64-cpu8 |
| 68 | + timeout-minutes: 60 |
| 69 | + permissions: |
| 70 | + contents: read |
| 71 | + packages: read |
| 72 | + container: |
| 73 | + image: ghcr.io/nvidia/openshell/ci:latest |
| 74 | + credentials: |
| 75 | + username: ${{ github.actor }} |
| 76 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 77 | + options: --privileged |
| 78 | + volumes: |
| 79 | + - /var/run/docker.sock:/var/run/docker.sock |
| 80 | + env: |
| 81 | + MISE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 82 | + HELM_E2E_CLUSTER_NAME: openshell-helm-e2e-${{ github.run_id }}-python |
| 83 | + steps: |
| 84 | + - uses: actions/checkout@v6 |
| 85 | + |
| 86 | + - name: Mark workspace safe for git |
| 87 | + run: git config --global --add safe.directory "$GITHUB_WORKSPACE" |
| 88 | + |
| 89 | + - name: Install tools |
| 90 | + run: mise install --locked |
| 91 | + |
| 92 | + - name: Install Python dependencies |
| 93 | + run: uv sync --frozen && mise run --no-deps python:proto |
| 94 | + |
| 95 | + - name: Run Helm E2E (Python) |
| 96 | + run: mise run e2e:helm:python |
0 commit comments