2026-07-24 22:28:43 +08:00
# Uploaded by upload_pipeline.py --upload (not the Buildkite hook).
# ``if`` is injected by step ``key`` from skip-ci at upload time.
steps :
- label : ":buildkit: Build and Push NPU Test Image - A2"
key : image-build-a2
2026-09-10 10:16:14 +08:00
agents : &npu-image-build-agents
2026-07-24 22:28:43 +08:00
queue : "ascend-a2b3"
resource_class : "npu-1"
2026-09-10 10:16:14 +08:00
plugins : &npu-image-build-plugins
2026-07-24 22:28:43 +08:00
- kubernetes :
metadata :
annotations :
vault.hashicorp.com/agent-init-first : "true"
vault.hashicorp.com/agent-inject : "true"
vault.hashicorp.com/agent-inject-perms-ca.pem : "0400"
vault.hashicorp.com/agent-inject-perms-cert.pem : "0400"
vault.hashicorp.com/agent-inject-perms-config.json : "0400"
vault.hashicorp.com/agent-inject-perms-key.pem : "0400"
vault.hashicorp.com/agent-inject-secret-ca.pem : internal/data/ascend/buildkitd
vault.hashicorp.com/agent-inject-secret-cert.pem : internal/data/ascend/buildkitd
vault.hashicorp.com/agent-inject-secret-config.json : internal/data/ascend/buildkitd
vault.hashicorp.com/agent-inject-secret-key.pem : internal/data/ascend/buildkitd
vault.hashicorp.com/agent-inject-template-ca.pem : "{{- with secret \"internal/data/ascend/buildkitd\" -}}\n{{ .Data.data.RootCA }}\n{{- end }}"
vault.hashicorp.com/agent-inject-template-cert.pem : "{{- with secret \"internal/data/ascend/buildkitd\" -}}\n{{ .Data.data.ClientCaCert }}\n{{- end }}"
vault.hashicorp.com/agent-inject-template-config.json : "{{- with secret \"internal/data/ascend/buildkitd\" -}}\n{{ .Data.data.dockerConfig }}\n{{- end }}"
vault.hashicorp.com/agent-inject-template-key.pem : "{{- with secret \"internal/data/ascend/buildkitd\" -}}\n{{ .Data.data.ClientCaKey }}\n{{- end }}"
vault.hashicorp.com/agent-pre-populate-only : "true"
vault.hashicorp.com/agent-run-as-group : "1000"
vault.hashicorp.com/agent-run-as-user : "1000"
vault.hashicorp.com/agent-service-account-token-volume-name : token-vol
vault.hashicorp.com/role : ascend-gha-runners
vault.hashicorp.com/secret-volume-path : /home/user/.docker/
vault.hashicorp.com/tls-skip-verify : "true"
podSpecPatch :
volumes :
- name : token-vol
projected :
defaultMode : 420
sources :
- serviceAccountToken :
audience : api
expirationSeconds : 600
path : token
env :
VLLM_IMAGE_TAG : "${BUILDKITE_COMMIT}"
IMAGE_NAME : "vllm-omni-ci-npu"
IMAGE_REGISTRY : "swr.cn-southwest-2.myhuaweicloud.com/modelfoundry"
BUILDKITD_ADDR : "tcp://buildkitd-service.buildkitd:1234"
2026-09-10 10:16:14 +08:00
command : bash .buildkite/npu/scripts/build-npu-image.sh Dockerfile.npu.ci "$${VLLM_IMAGE_TAG}"
2026-07-24 22:28:43 +08:00
- label : ":buildkit: Build and Push NPU Test Image - A3"
key : image-build-a3
2026-09-10 10:16:14 +08:00
agents : *npu-image-build-agents
plugins : *npu-image-build-plugins
2026-07-24 22:28:43 +08:00
env :
VLLM_IMAGE_TAG : "${BUILDKITE_COMMIT}-a3"
IMAGE_NAME : "vllm-omni-ci-npu"
IMAGE_REGISTRY : "swr.cn-southwest-2.myhuaweicloud.com/modelfoundry"
BUILDKITD_ADDR : "tcp://buildkitd-service.buildkitd:1234"
2026-09-10 10:16:14 +08:00
command : bash .buildkite/npu/scripts/build-npu-image.sh Dockerfile.npu.ci "$${VLLM_IMAGE_TAG}" -a3
2026-07-24 22:28:43 +08:00
2026-09-10 10:16:14 +08:00
- label : ":buildkit: Build and Push NPU Test Image - A5"
key : image-build-a5
agents : *npu-image-build-agents
plugins : *npu-image-build-plugins
env :
VLLM_IMAGE_TAG : "${BUILDKITE_COMMIT}-a5"
IMAGE_NAME : "vllm-omni-ci-npu"
IMAGE_REGISTRY : "swr.cn-southwest-2.myhuaweicloud.com/modelfoundry"
BUILDKITD_ADDR : "tcp://buildkitd-service.buildkitd:1234"
command : bash .buildkite/npu/scripts/build-npu-image.sh Dockerfile.npu.ci "$${VLLM_IMAGE_TAG}" -a5
2026-07-24 22:28:43 +08:00
2026-09-10 10:16:14 +08:00
- label : ":buildkit: Build and Push NPU Test Image - 310P"
key : image-build-310p
agents : *npu-image-build-agents
plugins : *npu-image-build-plugins
env :
VLLM_IMAGE_TAG : "${BUILDKITE_COMMIT}-310p"
IMAGE_NAME : "vllm-omni-ci-npu"
IMAGE_REGISTRY : "swr.cn-southwest-2.myhuaweicloud.com/modelfoundry"
BUILDKITD_ADDR : "tcp://buildkitd-service.buildkitd:1234"
command : bash .buildkite/npu/scripts/build-npu-image.sh Dockerfile.npu.ci "$${VLLM_IMAGE_TAG}" -310p
2026-07-24 22:28:43 +08:00
- label : "Upload Ready Pipeline"
depends_on :
- image-build-a2
- image-build-a3
2026-09-10 10:16:14 +08:00
- image-build-a5
- image-build-310p
2026-07-24 22:28:43 +08:00
key : upload-ready-pipeline
agents :
queue : "cpu_queue_premerge"
command : |
python3 .buildkite/common/scripts/upload_pipeline.py --upload .buildkite/npu/test-npu-ready.yml
2026-09-10 16:40:01 +08:00
# L4 Test — main+NIGHTLY=1 (scheduled), or PR nightly-test label
2026-07-24 22:28:43 +08:00
- label : "Upload Nightly Pipeline"
depends_on :
- image-build-a2
- image-build-a3
2026-09-10 10:16:14 +08:00
- image-build-a5
- image-build-310p
2026-07-24 22:28:43 +08:00
key : upload-nightly-pipeline
commands :
2026-09-10 16:40:01 +08:00
- |
EXTRA=""
if [ "${NIGHTLY:-}" = "1" ] && [ "${BUILDKITE_BRANCH}" = "main" ]; then
EXTRA="--all"
fi
python3 .buildkite/common/scripts/upload_pipeline.py --upload $$EXTRA .buildkite/npu/test-npu-nightly.yml
2026-07-24 22:28:43 +08:00
agents :
queue : "cpu_queue_premerge"