Skip to content

Commit b3cb93e

Browse files
feat: add buildkit fuse-overlayfs test for a5 Dockerfiles
Add workflow buildkit-dockerfile-test-group3 and sync Dockerfiles from nv-action/vllm-benchmarks#278 Signed-off-by: JavaPythonAIForBAT <wuhejun@h-partners.com>
1 parent 8b39f17 commit b3cb93e

1 file changed

Lines changed: 64 additions & 0 deletions

File tree

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: buildkit-dockerfile-test-group3
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/buildkit-dockerfile-test-group3.yaml'
7+
- 'Dockerfile.a5'
8+
- 'Dockerfile.a5.openEuler'
9+
workflow_dispatch:
10+
11+
jobs:
12+
build-test:
13+
name: "${{ matrix.dockerfile }} (${{ matrix.runner_info.arch }})"
14+
runs-on: ${{ matrix.runner_info.runner }}
15+
container:
16+
image: swr.cn-southwest-2.myhuaweicloud.com/base_image/ascend-ci/cann:9.0.0-a3-ubuntu22.04-py3.12
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
dockerfile:
22+
- Dockerfile.a5
23+
- Dockerfile.a5.openEuler
24+
runner_info:
25+
- {runner: linux-aarch64-cpu-4-buildkit, arch: arm64}
26+
- {runner: linux-amd64-cpu-4-buildkit, arch: amd64}
27+
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v7
31+
with:
32+
fetch-depth: 0
33+
persist-credentials: false
34+
35+
- name: Determine SOC_VERSION
36+
id: vars
37+
run: |
38+
case "${{ matrix.dockerfile }}" in
39+
Dockerfile.a5|Dockerfile.a5.openEuler)
40+
echo "soc_version=ascend950dt_9582" >> $GITHUB_OUTPUT
41+
;;
42+
esac
43+
44+
- name: Build and push
45+
uses: docker/build-push-action@v7
46+
with:
47+
context: .
48+
file: ${{ matrix.dockerfile }}
49+
push: true
50+
tags: |
51+
swr.cn-southwest-2.myhuaweicloud.com/modelfoundry/test-buildkit:${{ matrix.dockerfile }}-${{ matrix.runner_info.arch }}-${{ github.sha }}
52+
swr.cn-southwest-2.myhuaweicloud.com/modelfoundry/buildkit-cache:${{ matrix.dockerfile }}-${{ matrix.runner_info.arch }}
53+
build-args: |
54+
PIP_INDEX_URL=http://cache-service.nginx-pypi-cache.svc.cluster.local/pypi/simple
55+
PIP_TRUSTED_HOST=cache-service.nginx-pypi-cache.svc.cluster.local
56+
GIT_PROXY=https://gh-proxy.test.osinfra.cn/
57+
PYTORCH_INDEX_URL=http://cache-service.nginx-pypi-cache.svc.cluster.local/whl/cpu
58+
ASCEND_INDEX_URL=http://cache-service.nginx-pypi-cache.svc.cluster.local/ascend/repos/pypi
59+
MOONCAKE_INDEX_URL=http://cache-service.nginx-pypi-cache.svc.cluster.local/pypi/simple
60+
SOC_VERSION=${{ steps.vars.outputs.soc_version }}
61+
COMPILE_CUSTOM_KERNELS=0
62+
cache-from: type=registry,ref=swr.cn-southwest-2.myhuaweicloud.com/modelfoundry/buildkit-cache:${{ matrix.dockerfile }}-${{ matrix.runner_info.arch }}
63+
cache-to: type=inline
64+
provenance: false

0 commit comments

Comments
 (0)