Skip to content

Commit 5d53da0

Browse files
authored
Merge pull request #103 from stackhpc/test/ci-storage-fix
Fix CI storage capacity issue
2 parents 19ce8a9 + 3330e64 commit 5d53da0

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

.github/workflows/test-pr.yml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ jobs:
2929
needs: [fail_on_remote]
3030
uses: ./.github/workflows/build-push-images.yml
3131
with:
32-
ref: ${{ github.event.pull_request.head.sha }}
32+
ref: ${{ github.sha }}
33+
secrets: inherit
34+
35+
publish_charts:
36+
uses: ./.github/workflows/build-push-charts.yml
37+
with:
38+
ref: ${{ github.sha }}
3339
secrets: inherit
3440

3541
chart_validation:
@@ -42,11 +48,23 @@ jobs:
4248
- name: Checkout the repo
4349
uses: actions/checkout@v4
4450
with:
45-
ref: ${{ github.event.pull_request.head.sha }}
51+
ref: ${{ github.sha }}
52+
53+
- name: Reconfigure docker storage
54+
# GitHub runners have an extra 75G disk at /mnt
55+
# so we use this to avoid hitting capacity issues
56+
# with kind cluster + vLLM container images
57+
run: |
58+
sudo bash -c 'cat > /etc/docker/daemon.json' << EOF
59+
{
60+
"data-root": "/mnt/docker-data"
61+
}
62+
EOF
63+
sudo systemctl restart docker
4664
4765
- name: Run Gradio app tests
4866
run: |
49-
./test-images.sh $(git rev-parse --short ${{ github.event.pull_request.head.sha }})
67+
./test-images.sh $(git rev-parse --short ${{ github.sha }})
5068
working-directory: web-apps
5169

5270
- name: Install Helm
@@ -71,18 +89,11 @@ jobs:
7189
# we need to pull these published images and load them into the kind cluster
7290
# with the tag correct tag.
7391
- name: Load tagged container images into kind cluster
74-
run: ./kind-images.sh $(git rev-parse --short ${{ github.event.pull_request.head.sha }}) ${{ env.CLUSTER_NAME }}
92+
run: ./kind-images.sh $(git rev-parse --short ${{ github.sha }}) ${{ env.CLUSTER_NAME }}
7593
working-directory: web-apps
7694

7795
# https://github.com/helm/charts/blob/master/test/README.md#providing-custom-test-values
7896
# Each chart/ci/*-values.yaml file will be treated as a separate test case with it's
7997
# own helm install/test process.
8098
- name: Run chart install and test
8199
run: ct install --config ct.yaml
82-
83-
publish_charts:
84-
needs: [chart_validation]
85-
uses: ./.github/workflows/build-push-charts.yml
86-
with:
87-
ref: ${{ github.event.pull_request.head.sha }}
88-
secrets: inherit

0 commit comments

Comments
 (0)