CI: attempt to workaround inconsistent metadata during concurrent upload of same file
All platform independent packages affected by this issue. Results in persistent apt error like: Writing more data than expected (22610650 > 22610408) Hashes of expected file: - SHA256:08abc5cffb9e1967fab487a471bb547f5ae706c48bf8e59d1443b2ad4af9caaf - SHA1:36ded1e207135bdeb8b7301bc03309ebced3cd32 [weak] - Filesize:22610408 [weak]
This commit is contained in:
parent
78c1f4ab37
commit
e2aed73d91
@ -39,7 +39,7 @@ if [ -z "$CIRRUS_CHANGE_IN_REPO" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -n "$CIRRUS_PR" ] && [ -z "${CIRRUS_BASE_SHA}" ]; then
|
||||
if [ -n "$CIRRUS_PR" ] && [ -z "$CIRRUS_BASE_SHA" ]; then
|
||||
echo "[!] CIRRUS_BASE_SHA is not set."
|
||||
exit 1
|
||||
fi
|
||||
@ -118,6 +118,13 @@ if ! $DO_UPLOAD; then
|
||||
|
||||
./build-package.sh -a "$TERMUX_ARCH" -I $PACKAGE_NAMES
|
||||
else
|
||||
# Workaround for concurrent uploads.
|
||||
UPLOAD_DELAY=$((30 + RANDOM % 120))
|
||||
echo "[!] Using workaround for Bintray issue with concurrent uploads."
|
||||
echo "[!] Delaying upload by ${UPLOAD_DELAY} seconds."
|
||||
sleep $UPLOAD_DELAY
|
||||
unset UPLOAD_DELAY
|
||||
|
||||
for attempt in 1 2 3; do
|
||||
echo "[*] Uploading packages to Bintray:"
|
||||
if ./scripts/package_uploader.sh -p "${PWD}/debs" $PACKAGE_NAMES; then
|
||||
|
Loading…
Reference in New Issue
Block a user