chore(deps): Bump github.com/moby/buildkit from 0.16.0 to 0.17.0 #964
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: kubernetes-test | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
- 'website/**' | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
- 'website/**' | |
permissions: read-all | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 240 | |
steps: | |
- uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1 | |
with: | |
tool-cache: true | |
android: true | |
dotnet: true | |
haskell: true | |
large-packages: true | |
docker-images: true | |
swap-storage: true | |
- name: Harden Runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: block | |
allowed-endpoints: > | |
auth.docker.io:443 | |
huggingface.co:443 | |
*.huggingface.co:443 | |
*.hf.co:443 | |
cdn.dl.k8s.io:443 | |
dl.k8s.io:443 | |
download.docker.com:443 | |
gcr.io:443 | |
github.com:443 | |
*.githubusercontent.com:443 | |
production.cloudflare.docker.com:443 | |
proxy.golang.org:443 | |
registry-1.docker.io:443 | |
storage.googleapis.com:443 | |
*.ubuntu.com:80 | |
developer.download.nvidia.com:443 | |
get.helm.sh:443 | |
*.blob.core.windows.net:443 | |
*.azureedge.net:443 | |
ghcr.io:443 | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
# need containerd image store for testing local images | |
- uses: crazy-max/ghaction-setup-docker@26145a578dce008fee793528d031cd72c57d51af # v3.4.0 | |
with: | |
daemon-config: | | |
{ | |
"debug": true, | |
"features": { | |
"containerd-snapshotter": true | |
} | |
} | |
- uses: crazy-max/ghaction-github-runtime@b3a9207c0e1ef41f4cf215303c976869d0c2c1c4 # v3.0.0 | |
- name: build aikit | |
run: | | |
docker buildx build . -t aikit:test \ | |
--load --provenance=false --progress plain \ | |
--cache-from=type=gha,scope=aikit-amd64 \ | |
--cache-to=type=gha,scope=aikit-amd64,mode=max | |
- name: build test model | |
run: | | |
docker buildx build . -t testmodel:test \ | |
-f test/aikitfile-llama.yaml \ | |
--load --provenance=false --progress plain \ | |
--cache-from=type=gha,scope=testmodel-amd64 \ | |
--cache-to=type=gha,scope=testmodel-amd64,mode=max | |
- name: list images | |
run: docker images | |
- name: install e2e dependencies | |
run: make test-e2e-dependencies | |
- name: create kind cluster | |
run: kind create cluster --wait 5m | |
- name: load test model image into kind cluster | |
run: kind load docker-image testmodel:test | |
- name: deploy test model | |
run: | | |
kubectl create deployment test-model-deployment --image=testmodel:test --replicas 1 | |
kubectl rollout status deployment test-model-deployment | |
kubectl expose deployment test-model-deployment --port=8080 --target-port=8080 --name=test-model-service | |
kubectl port-forward service/test-model-service 8080:8080 & | |
- name: run test | |
run: | | |
result=$(curl --fail --retry 10 --retry-all-errors http://127.0.0.1:8080/v1/chat/completions -H "Content-Type: application/json" -d '{ | |
"model": "llama-3.2-1b-instruct", | |
"messages": [{"role": "user", "content": "explain kubernetes in a sentence"}] | |
}') | |
echo $result | |
choices=$(echo "$result" | jq '.choices') | |
if [ -z "$choices" ]; then | |
exit 1 | |
fi | |
- name: save logs | |
if: always() | |
run: | | |
echo "KIND_LOGS_PATH=$(kind export logs)" >> $GITHUB_ENV | |
- name: publish logs | |
if: always() | |
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
with: | |
name: kind-logs | |
path: $KIND_LOGS_PATH |