Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions browser_patches/check_cdn.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash
set -e
set +x

if [[ ($1 == '--help') || ($1 == '-h') ]]; then
echo "usage: $(basename $0) [firefox|webkit|chromium|ffmpeg] [--full-history] [--has-all-builds]"
echo
echo "List CDN status for browser"
echo
exit 0
fi

if [[ $# == 0 ]]; then
echo "missing browser: 'firefox', 'webkit', 'chromium' or 'ffmpeg'"
echo "try './$(basename $0) --help' for more information"
exit 1
fi

trap "cd $(pwd -P)" EXIT
cd "$(dirname "$0")"

HOST="https://playwright2.blob.core.windows.net/builds"

BROWSER_NAME="$1"
if [[ (! -f "./${BROWSER_NAME}/BUILD_NUMBER") || (! -f "./${BROWSER_NAME}/EXPECTED_BUILDS") ]]; then
echo ERROR: unknown application - "$1"
exit 1
fi

REVISION=$(head -1 "./${BROWSER_NAME}/BUILD_NUMBER")
BUILD_NAMES="./${BROWSER_NAME}/EXPECTED_BUILDS"

for i in $(cat "${BUILD_NAMES}"); do
URL="${HOST}/${BROWSER_NAME}/${REVISION}/$i"
if ! [[ $(curl -s -L -I $URL | head -1 | cut -f2 -d' ') == 200 ]]; then
echo "${BROWSER_NAME} r${REVISION} is missing build: $i"
exit 1
fi
done;

echo "All expected builds are uploaded."
2 changes: 1 addition & 1 deletion browser_patches/checkout_build_archive_upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ if generate_and_upload_browser_build 2>&1 | ./sanitize_and_compress_log.js $LOG_
send_telegram_message "$BUILD_ALIAS -- ${UPLOAD_SIZE}uploaded"

# Check if we uploaded the last build.
if ./tools/check_cdn.sh $BROWSER_NAME --has-all-builds; then
if ./check_cdn.sh $BROWSER_NAME > /dev/null; then
LAST_COMMIT_MESSAGE=$(git log --format=%s -n 1 HEAD -- ./$BROWSER_NAME/BUILD_NUMBER)
send_telegram_message "<b>$BROWSER_NAME r${BUILD_NUMBER} COMPLETE! ✅</b> $LAST_COMMIT_MESSAGE"
fi
Expand Down
5 changes: 5 additions & 0 deletions browser_patches/chromium/EXPECTED_BUILDS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
chromium-mac.zip
chromium-mac-arm64.zip
chromium-linux.zip
chromium-win32.zip
chromium-win64.zip
2 changes: 2 additions & 0 deletions browser_patches/deprecated-webkit-mac-10.14/EXPECTED_BUILDS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
deprecated-webkit-mac-10.14.zip

5 changes: 5 additions & 0 deletions browser_patches/ffmpeg/EXPECTED_BUILDS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ffmpeg-mac.zip
ffmpeg-linux.zip
ffmpeg-win32.zip
ffmpeg-win64.zip

4 changes: 4 additions & 0 deletions browser_patches/firefox/EXPECTED_BUILDS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
firefox-mac-10.14.zip
firefox-ubuntu-18.04.zip
firefox-win32.zip
firefox-win64.zip
164 changes: 0 additions & 164 deletions browser_patches/tools/check_cdn.sh

This file was deleted.

6 changes: 6 additions & 0 deletions browser_patches/webkit/EXPECTED_BUILDS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
webkit-ubuntu-18.04.zip
webkit-ubuntu-20.04.zip
webkit-mac-10.15.zip
webkit-mac-11.0-arm64.zip
webkit-win64.zip

1 change: 1 addition & 0 deletions browser_patches/winldd/EXPECTED_BUILDS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
winldd-win64.zip