Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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.
Expand Down
4 changes: 0 additions & 4 deletions ct.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions web-apps/flux-image-gen/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ flux[gradio] @ git+https://github.com/black-forest-labs/flux@478338d
fastapi[standard]
httpx
# ../utils
# test
Loading