diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml index dec9f48..443493d 100644 --- a/.github/workflows/test-pr.yml +++ b/.github/workflows/test-pr.yml @@ -35,6 +35,8 @@ jobs: chart_validation: needs: [publish_images] runs-on: ubuntu-latest + strategy: + fail-fast: false env: CLUSTER_NAME: chart-testing RELEASE_NAME: ci-test @@ -44,28 +46,49 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} + - name: Debug 1 + run: (df -h && docker ps -a && docker image ls && kubectl get nodes && kubectl get pods --all-namespaces) || true + - name: Run Gradio app tests run: | ./test-images.sh $(git rev-parse --short ${{ github.event.pull_request.head.sha }}) working-directory: web-apps + - name: Debug 2 + run: (df -h && docker ps -a && docker image ls && kubectl get nodes && kubectl get pods --all-namespaces) || true + - name: Install Helm uses: azure/setup-helm@v4 + - name: Debug 3 + run: (df -h && docker ps -a && docker image ls && kubectl get nodes && kubectl get pods --all-namespaces) || true + - name: Run base chart templating with default values run: helm template ci-test charts/azimuth-llm + - name: Debug 4 + run: (df -h && docker ps -a && docker image ls && kubectl get nodes && kubectl get pods --all-namespaces) || true + - name: Set up chart testing uses: helm/chart-testing-action@v2 + - name: Debug 5 + run: (df -h && docker ps -a && docker image ls && kubectl get nodes && kubectl get pods --all-namespaces) || true + - name: Run chart linting run: ct lint --config ct.yaml + - name: Debug 6 + run: (df -h && docker ps -a && docker image ls && kubectl get nodes && kubectl get pods --all-namespaces) || true + - name: Create Kind Cluster uses: helm/kind-action@v1 with: cluster_name: ${{ env.CLUSTER_NAME }} + - name: Debug 7 + run: (df -h && docker ps -a && docker image ls && kubectl get nodes && kubectl get pods --all-namespaces) || true + # NOTE(scott): Since the local Chart.yaml uses "appVersion: latest" and this # only gets overwritten to the correct commit SHA during Helm chart build, # we need to pull these published images and load them into the kind cluster @@ -74,6 +97,9 @@ jobs: run: ./kind-images.sh $(git rev-parse --short ${{ github.event.pull_request.head.sha }}) ${{ env.CLUSTER_NAME }} working-directory: web-apps + - name: Debug 8 + run: (df -h && docker ps -a && docker image ls && kubectl get nodes && kubectl get pods --all-namespaces) || true + # https://github.com/helm/charts/blob/master/test/README.md#providing-custom-test-values # Each chart/ci/*-values.yaml file will be treated as a separate test case with it's # own helm install/test process. diff --git a/ct.yaml b/ct.yaml index 3fa795d..6715e33 100644 --- a/ct.yaml +++ b/ct.yaml @@ -1,9 +1,5 @@ # Complains about invalid maintainer URLs validate-maintainers: false -# Skip version bump detection and lint all charts -# since we're using the azimuth-cloud Helm chart publish -# workflow which doesn't use Chart.yaml's version key -all: true # Split output to make it look nice in GitHub Actions tab github-groups: true # Allow for long running install and test processes diff --git a/web-apps/flux-image-gen/requirements.txt b/web-apps/flux-image-gen/requirements.txt index 069c65c..06df9ee 100644 --- a/web-apps/flux-image-gen/requirements.txt +++ b/web-apps/flux-image-gen/requirements.txt @@ -2,3 +2,4 @@ flux[gradio] @ git+https://github.com/black-forest-labs/flux@478338d fastapi[standard] httpx # ../utils +# test \ No newline at end of file