@@ -15,7 +15,7 @@ set -euo pipefail
1515
1616DEFAULT_REPO_SLUG=" vllm-project/vllm"
1717DEFAULT_CI_HCL_SOURCE=" docker/ci-rocm.hcl"
18- DEFAULT_CI_BASE_CONTENT_FILES=" requirements/common.txt requirements/rocm.txt requirements/test/rocm.txt docker/Dockerfile.rocm_base docker/ci-rocm.hcl docker/docker-bake-rocm.hcl tools/install_torchcodec_rocm.sh tests/vllm_test_utils .buildkite/scripts/ci-bake-rocm.sh"
18+ DEFAULT_CI_BASE_CONTENT_FILES=" requirements/common.txt requirements/rocm.txt requirements/test/rocm.txt docker/Dockerfile.rocm_base docker/ci-rocm.hcl docker/docker-bake-rocm.hcl tools/install_torchcodec_rocm.sh tests/vllm_test_utils .buildkite/scripts/ci-bake-rocm.sh .buildkite/scripts/rocm/build-ci-base.sh "
1919DEFAULT_CI_BASE_DOCKERFILE=" docker/Dockerfile.rocm"
2020DEFAULT_CI_BASE_DOCKERFILE_STAGES=" base build_rixl build_rocshmem build_deepep mori_base ci_base"
2121DEFAULT_CI_BASE_METADATA_VERSION=" 1"
@@ -393,6 +393,16 @@ should_upload_wheel_artifacts() {
393393 || " ${TARGET} " == * " artifact" * ]]
394394}
395395
396+ set_buildkite_metadata () {
397+ local key=" $1 "
398+ local value=" $2 "
399+
400+ [[ -n " ${value} " ]] || return 0
401+ if command -v buildkite-agent > /dev/null 2>&1 ; then
402+ buildkite-agent meta-data set " ${key} " " ${value} " || true
403+ fi
404+ }
405+
396406get_remote_image_label () {
397407 local image_ref=" $1 "
398408 local label_key=" $2 "
@@ -733,6 +743,8 @@ configure_ci_base_image_refs() {
733743
734744 if is_ci_base_target; then
735745 IMAGE_TAG=" ${primary_tag} "
746+ CI_BASE_IMAGE=" ${primary_tag} "
747+ export CI_BASE_IMAGE
736748 export IMAGE_TAG
737749
738750 echo " ci_base primary image tag: ${CI_BASE_IMAGE_TAG} "
@@ -750,6 +762,10 @@ configure_ci_base_image_refs() {
750762 echo " ci_base stable alias will not be pushed for this build"
751763 echo " Set NIGHTLY=1 on ${CI_BASE_STABLE_BRANCH:- main} to refresh ${stable_tag} "
752764 fi
765+ set_buildkite_metadata " rocm-ci-base-image" " ${CI_BASE_IMAGE_TAG} "
766+ set_buildkite_metadata " rocm-ci-base-image-content" " ${content_tag} "
767+ set_buildkite_metadata " rocm-ci-base-image-commit" " ${CI_BASE_IMAGE_TAG_COMMIT:- } "
768+ set_buildkite_metadata " rocm-ci-base-image-stable" " ${CI_BASE_IMAGE_TAG_STABLE:- } "
753769 return 0
754770 fi
755771
@@ -1779,7 +1795,10 @@ seed_dependency_caches_if_needed() {
17791795
17801796 echo " --- :docker: Seeding ${target} "
17811797 echo " Expected cache ref: ${cache_ref} "
1782- docker buildx bake " ${BAKE_FILES[@]} " --progress plain " ${target} "
1798+ docker buildx bake \
1799+ " ${BAKE_FILES[@]} " \
1800+ --progress " ${BUILDKIT_PROGRESS:- plain} " \
1801+ " ${target} "
17831802 verify_dependency_cache_ref " ${cache_ref} "
17841803 done
17851804}
@@ -1807,7 +1826,10 @@ run_bake() {
18071826 local build_rc=0
18081827
18091828 echo " --- :docker: Building ${TARGET} "
1810- docker buildx bake " ${BAKE_FILES[@]} " --progress plain " ${BAKE_TARGETS[@]} " || build_rc=$?
1829+ docker buildx bake \
1830+ " ${BAKE_FILES[@]} " \
1831+ --progress " ${BUILDKIT_PROGRESS:- plain} " \
1832+ " ${BAKE_TARGETS[@]} " || build_rc=$?
18111833
18121834 if [[ ${build_rc} -eq 0 ]]; then
18131835 echo " --- :white_check_mark: Build complete"
0 commit comments