From: John Mulligan Date: Mon, 16 Mar 2026 20:43:18 +0000 (-0400) Subject: ceph-pull-requests-arm64: update file to use new bwc functions X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=189f9cb0b143b5dbf083fd75dcaca4663932e6aa;p=ceph-build.git ceph-pull-requests-arm64: update file to use new bwc functions Replace the existing "open coded" implementation with calls to the recently created bwc.sh functions. This avoids duplication and improves reuse. Signed-off-by: John Mulligan --- diff --git a/ceph-pull-requests-arm64/build/build b/ceph-pull-requests-arm64/build/build index 75b78f4c..e5867509 100644 --- a/ceph-pull-requests-arm64/build/build +++ b/ceph-pull-requests-arm64/build/build @@ -19,38 +19,9 @@ WITH_RBD_RWL=true JENKINS_HOME=${JENKINS_HOME} REWRITE_COVERAGE_ROOTDIR=${PWD}/src/pybind/mgr/dashboard/frontend EOF -# TODO: enable (read-only?) sccache support -npm_cache_info() { - echo '===== npm cache info =======' - du -sh "${NPMCACHE}" || echo "${NPMCACHE} not present" - echo '============================' -} -bwc() { - # specify timeout in hours for $1 - local timeout=$(($1*60*60)) - shift - timeout "${timeout}" ./src/script/build-with-container.py \ - -d "${DISTRO_BASE:-jammy}" \ - --env-file="${PWD}/.env" \ - --current-branch="${GIT_BRANCH:-main}" \ - -t+arm64 \ - --npm-cache-path="${NPMCACHE}" \ - "${@}" -} -podman login -u ${DOCKER_HUB_USERNAME} -p ${DOCKER_HUB_PASSWORD} docker.io - -npm_cache_info -bwc 1 -e configure -# try to pre-load the npm cache so that it doesn't fail -# during the normal build step -for i in {0..5}; do - bwc 1 -e custom -- \ - cmake --build build -t mgr-dashboard-frontend-deps && break - echo "Warning: Attempt $((i+1)) to cache npm packages failed." - sleep $((10 + 30 * i)) -done -npm_cache_info +bwc_login +bwc_populate_npm_cache bwc 4 -e tests npm_cache_info sleep 5 diff --git a/ceph-pull-requests-arm64/config/definitions/ceph-pull-requests-arm64.yml b/ceph-pull-requests-arm64/config/definitions/ceph-pull-requests-arm64.yml index 29576048..35ef49f8 100644 --- a/ceph-pull-requests-arm64/config/definitions/ceph-pull-requests-arm64.yml +++ b/ceph-pull-requests-arm64/config/definitions/ceph-pull-requests-arm64.yml @@ -5,6 +5,7 @@ - shell: !include-raw-verbatim: - ../../../scripts/build_utils.sh + - ../../../scripts/bwc.sh - ../../../scripts/setup_container_runtime.sh - ../../build/build concurrent: true