]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-pull-requests-arm64: update file to use new bwc functions
authorJohn Mulligan <phlogistonjohn@asynchrono.us>
Mon, 16 Mar 2026 20:43:18 +0000 (16:43 -0400)
committerJohn Mulligan <phlogistonjohn@asynchrono.us>
Mon, 16 Mar 2026 20:44:09 +0000 (16:44 -0400)
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 <phlogistonjohn@asynchrono.us>
ceph-pull-requests-arm64/build/build
ceph-pull-requests-arm64/config/definitions/ceph-pull-requests-arm64.yml

index 75b78f4ca08137740cc7fdd1effc664192aa9e0e..e586750922d91d5e35f6bde3e008e8ef46c6b40c 100644 (file)
@@ -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
index 295760489898d20075d2bbc5d93bf7244421b68d..35ef49f8a949dc4f4f8e2e7e8c7519a6041ef935 100644 (file)
@@ -5,6 +5,7 @@
     - shell:
         !include-raw-verbatim:
           - ../../../scripts/build_utils.sh
+          - ../../../scripts/bwc.sh
           - ../../../scripts/setup_container_runtime.sh
           - ../../build/build
     concurrent: true