release: speed up pushes by 9x (#38640)

This commit is contained in:
Adeeb Shihadeh
2026-08-15 15:33:43 -07:00
committed by GitHub
parent 5e3d17c72c
commit 48b7f171a7
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -94,6 +94,7 @@ REFS=()
for branch in ${RELEASE_BRANCH//,/ }; do
REFS+=("$BUILD_BRANCH:$branch")
done
git push -f origin "${REFS[@]}"
# uploading the larger pack is faster than spending CPU to optimize it
git -c pack.window=0 -c pack.depth=0 -c pack.compression=0 push -f origin "${REFS[@]}"
echo "[-] done T=$SECONDS"
+2 -1
View File
@@ -83,7 +83,8 @@ fi
if [ ! -z "$BRANCH" ]; then
echo "[-] Pushing to $BRANCH T=$SECONDS"
git push -f origin tmp:$BRANCH
# uploading the larger pack is faster than spending CPU to optimize it
git -c pack.window=0 -c pack.depth=0 -c pack.compression=0 push -f origin tmp:$BRANCH
fi
echo "[-] done T=$SECONDS, ready at $TARGET_DIR"