Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
devops: drop infra for building 32-bit windows browsers (#9834)
Andrey Lushnikov47d9b23949eb
diff --git a/browser_patches/checkout_build_archive_upload.sh b/browser_patches/checkout_build_archive_upload.shindex 223d9a288e..92bb89484b 100755--- a/browser_patches/checkout_build_archive_upload.sh+++ b/browser_patches/checkout_build_archive_upload.sh@@ -4,7 +4,7 @@ set +xset -o pipefailif [[ ($1 == '--help') || ($1 == '-h') ]]; then- echo "usage: $(basename "$0") [firefox-linux|firefox-win32|firefox-win64|webkit-gtk|webkit-wpe|webkit-gtk-wpe|webkit-win64|webkit-mac-10.15] [-f|--force]"+ echo "usage: $(basename "$0") [firefox-linux|firefox-win64|webkit-gtk|webkit-wpe|webkit-gtk-wpe|webkit-win64|webkit-mac-10.15] [-f|--force]"echoecho "Prepares checkout under browser folder, applies patches, builds, archives, and uploads if build is missing."echo "Script will bail out early if the build for the browser version is already present."@@ -66,12 +66,6 @@ elif [[ "$BUILD_FLAVOR" == "ffmpeg-linux" ]]; thenEXPECTED_HOST_OS="Ubuntu"EXPECTED_HOST_OS_VERSION="20.04"BUILD_BLOB_NAME="ffmpeg-linux.zip"-elif [[ "$BUILD_FLAVOR" == "ffmpeg-cross-compile-win32" ]]; then- BROWSER_NAME="ffmpeg"- EXTRA_BUILD_ARGS="--cross-compile-win32"- EXPECTED_HOST_OS="Ubuntu"- EXPECTED_HOST_OS_VERSION="20.04"- BUILD_BLOB_NAME="ffmpeg-win32.zip"elif [[ "$BUILD_FLAVOR" == "ffmpeg-cross-compile-win64" ]]; thenBROWSER_NAME="ffmpeg"EXTRA_BUILD_ARGS="--cross-compile-win64"@@ -82,12 +76,6 @@ elif [[ "$BUILD_FLAVOR" == "ffmpeg-cross-compile-win64" ]]; then# ===========================# CHROMIUM COMPILATION# ===========================-elif [[ "$BUILD_FLAVOR" == "chromium-win32" ]]; then- BROWSER_NAME="chromium"- EXTRA_BUILD_ARGS="--compile-win32"- EXTRA_ARCHIVE_ARGS="--compile-win32"- EXPECTED_HOST_OS="MINGW"- BUILD_BLOB_NAME="chromium-win32.zip"elif [[ "$BUILD_FLAVOR" == "chromium-win64" ]]; thenBROWSER_NAME="chromium"EXTRA_BUILD_ARGS="--compile-win64"@@ -119,14 +107,6 @@ elif [[ "$BUILD_FLAVOR" == "chromium-linux" ]]; then# ===========================# CHROMIUM-WITH-SYMBOLS COMPILATION# ===========================-elif [[ "$BUILD_FLAVOR" == "chromium-with-symbols-win32" ]]; then- BROWSER_NAME="chromium"- BROWSER_DISPLAY_NAME="chromium-with-symbols"- EXTRA_BUILD_ARGS="--compile-win32 --symbols"- EXTRA_ARCHIVE_ARGS="--compile-win32"- EXPECTED_HOST_OS="MINGW"- BUILD_BLOB_NAME="chromium-with-symbols-win32.zip"- BUILDS_LIST="EXPECTED_BUILDS_WITH_SYMBOLS"elif [[ "$BUILD_FLAVOR" == "chromium-with-symbols-win64" ]]; thenBROWSER_NAME="chromium"BROWSER_DISPLAY_NAME="chromium-with-symbols"@@ -181,13 +161,6 @@ elif [[ "$BUILD_FLAVOR" == "chromium-mac-mirror-to-cdn" ]]; thenEXPECTED_HOST_OS="Ubuntu"EXPECTED_HOST_OS_VERSION="18.04"BUILD_BLOB_NAME="chromium-mac.zip"-elif [[ "$BUILD_FLAVOR" == "chromium-win32-mirror-to-cdn" ]]; then- BROWSER_NAME="chromium"- EXTRA_BUILD_ARGS="--mirror-win32"- EXTRA_ARCHIVE_ARGS="--mirror-win32"- EXPECTED_HOST_OS="Ubuntu"- EXPECTED_HOST_OS_VERSION="18.04"- BUILD_BLOB_NAME="chromium-win32.zip"elif [[ "$BUILD_FLAVOR" == "chromium-win64-mirror-to-cdn" ]]; thenBROWSER_NAME="chromium"EXTRA_BUILD_ARGS="--mirror-win64"@@ -226,14 +199,9 @@ elif [[ "$BUILD_FLAVOR" == "firefox-mac-11-arm64" ]]; thenEXPECTED_HOST_OS_VERSION="11.6"EXPECTED_ARCH="arm64"BUILD_BLOB_NAME="firefox-mac-11-arm64.zip"-elif [[ "$BUILD_FLAVOR" == "firefox-win32" ]]; then- BROWSER_NAME="firefox"- EXTRA_BUILD_ARGS="--full"- EXPECTED_HOST_OS="MINGW"- BUILD_BLOB_NAME="firefox-win32.zip"elif [[ "$BUILD_FLAVOR" == "firefox-win64" ]]; thenBROWSER_NAME="firefox"- EXTRA_BUILD_ARGS="--win64 --full"+ EXTRA_BUILD_ARGS="--full"EXPECTED_HOST_OS="MINGW"BUILD_BLOB_NAME="firefox-win64.zip"@@ -267,14 +235,9 @@ elif [[ "$BUILD_FLAVOR" == "firefox-beta-mac-11-arm64" ]]; thenEXPECTED_HOST_OS_VERSION="11.6"EXPECTED_ARCH="arm64"BUILD_BLOB_NAME="firefox-beta-mac-11-arm64.zip"-elif [[ "$BUILD_FLAVOR" == "firefox-beta-win32" ]]; then- BROWSER_NAME="firefox-beta"- EXTRA_BUILD_ARGS="--full"- EXPECTED_HOST_OS="MINGW"- BUILD_BLOB_NAME="firefox-beta-win32.zip"elif [[ "$BUILD_FLAVOR" == "firefox-beta-win64" ]]; thenBROWSER_NAME="firefox-beta"- EXTRA_BUILD_ARGS="--win64 --full"+ EXTRA_BUILD_ARGS="--full"EXPECTED_HOST_OS="MINGW"BUILD_BLOB_NAME="firefox-beta-win64.zip"diff --git a/browser_patches/chromium/EXPECTED_BUILDS b/browser_patches/chromium/EXPECTED_BUILDSindex 1c7a475624..2468c0551b 100644--- a/browser_patches/chromium/EXPECTED_BUILDS+++ b/browser_patches/chromium/EXPECTED_BUILDS@@ -1,5 +1,4 @@chromium-mac.zipchromium-mac-arm64.zipchromium-linux.zip-chromium-win32.zipchromium-win64.zipdiff --git a/browser_patches/chromium/EXPECTED_BUILDS_WITH_SYMBOLS b/browser_patches/chromium/EXPECTED_BUILDS_WITH_SYMBOLSindex d2076efe80..f26a24a67c 100644--- a/browser_patches/chromium/EXPECTED_BUILDS_WITH_SYMBOLS+++ b/browser_patches/chromium/EXPECTED_BUILDS_WITH_SYMBOLS@@ -1,5 +1,4 @@chromium-with-symbols-mac.zipchromium-with-symbols-mac-arm64.zipchromium-with-symbols-linux.zip-chromium-with-symbols-win32.zipchromium-with-symbols-win64.zipdiff --git a/browser_patches/chromium/archive.sh b/browser_patches/chromium/archive.shindex 6728a6a0cc..69b28a7841 100755--- a/browser_patches/chromium/archive.sh+++ b/browser_patches/chromium/archive.sh@@ -60,10 +60,6 @@ function archive_compiled_chromium() {# Run python script and convert output to array.IFS=$'\n' CHROMIUM_FILES_TO_ARCHIVE=($(python "${SCRIPT_PATH}/compute_files_to_archive.py" 64bit "${CR_CHECKOUT_PATH}/src/chrome/tools/build/linux/FILES.cfg"))unset IFS- elif [[ $1 == "--compile-win32" ]]; then- CHROMIUM_FOLDER_NAME="chrome-win"- IFS=$'\n\r' CHROMIUM_FILES_TO_ARCHIVE=($(python "${SCRIPT_PATH}/compute_files_to_archive.py" 32bit "${CR_CHECKOUT_PATH}/src/chrome/tools/build/win/FILES.cfg"))- unset IFSelif [[ $1 == "--compile-win64" ]]; thenCHROMIUM_FOLDER_NAME="chrome-win"IFS=$'\n\r' CHROMIUM_FILES_TO_ARCHIVE=($(python "${SCRIPT_PATH}/compute_files_to_archive.py" 64bit "${CR_CHECKOUT_PATH}/src/chrome/tools/build/win/FILES.cfg"))diff --git a/browser_patches/chromium/build.sh b/browser_patches/chromium/build.shindex c9c0937bc2..b16dfe858a 100755--- a/browser_patches/chromium/build.sh+++ b/browser_patches/chromium/build.sh@@ -6,7 +6,7 @@ trap "cd $(pwd -P)" EXITcd "$(dirname "$0")"USAGE=$(cat<<EOF- usage: $(basename "$0") [--mirror|--mirror-linux|--mirror-win32|--mirror-win64|--mirror-mac|--compile-mac-arm64|--compile-linux|--compile-win32|--compile-win64|--compile-mac]+ usage: $(basename "$0") [--mirror|--mirror-linux|--mirror-win64|--mirror-mac|--compile-mac-arm64|--compile-linux|--compile-win64|--compile-mac]Either compiles chromium or mirrors it from Chromium Continuous Builds CDN.EOF@@ -68,8 +68,6 @@ compile_chromium() {if [[ $1 == "--compile-mac-arm64" ]]; thenecho 'target_cpu = "arm64"' >> ./out/Default/args.gn- elif [[ $1 == "--compile-win32" ]]; then- echo 'target_cpu = "x86"' >> ./out/Default/args.gnfiif [[ ! -z "$USE_GOMA" ]]; then@@ -130,9 +128,7 @@ mirror_chromium() {fiCRREV=$(head -1 "${SCRIPT_FOLDER}/BUILD_NUMBER")- if [[ "${PLATFORM}" == "--mirror-win32" ]]; then- CHROMIUM_URL="https://storage.googleapis.com/chromium-browser-snapshots/Win/${CRREV}/chrome-win.zip"- elif [[ "${PLATFORM}" == "--mirror-win64" ]]; then+ if [[ "${PLATFORM}" == "--mirror-win64" ]]; thenCHROMIUM_URL="https://storage.googleapis.com/chromium-browser-snapshots/Win_x64/${CRREV}/chrome-win.zip"elif [[ "${PLATFORM}" == "--mirror-mac" ]]; thenCHROMIUM_URL="https://storage.googleapis.com/chromium-browser-snapshots/Mac/${CRREV}/chrome-mac.zip"diff --git a/browser_patches/ffmpeg/EXPECTED_BUILDS b/browser_patches/ffmpeg/EXPECTED_BUILDSindex 309c97f502..263e5a74ce 100644--- a/browser_patches/ffmpeg/EXPECTED_BUILDS+++ b/browser_patches/ffmpeg/EXPECTED_BUILDS@@ -1,5 +1,4 @@ffmpeg-mac.zipffmpeg-linux.zip-ffmpeg-win32.zipffmpeg-win64.zipdiff --git a/browser_patches/ffmpeg/README.md b/browser_patches/ffmpeg/README.mdindex c5c886f9e8..89ed18d6dc 100644--- a/browser_patches/ffmpeg/README.md+++ b/browser_patches/ffmpeg/README.md@@ -52,7 +52,6 @@ Prerequisites:Building:```-~/playwright$ ./browser_patches/ffmpeg/build.sh --cross-compile-win32~/playwright$ ./browser_patches/ffmpeg/build.sh --cross-compile-win64```diff --git a/browser_patches/ffmpeg/build.sh b/browser_patches/ffmpeg/build.shindex a29edec7ec..c1bcafadff 100755--- a/browser_patches/ffmpeg/build.sh+++ b/browser_patches/ffmpeg/build.sh@@ -21,7 +21,7 @@ trap "cd $(pwd -P)" EXITcd "$(dirname $0)"if [[ ("$1" == "-h") || ("$1" == "--help") ]]; then- echo "usage: $(basename $0) [--mac|--linux|--cross-compile-win32|--cross-compile-win64]"+ echo "usage: $(basename $0) [--mac|--linux|--cross-compile-win64]"echoecho "Build ffmpeg for the given platform"echo@@ -63,10 +63,7 @@ elif [[ "$1" == --cross-compile-win* ]]; thenexit 1fi- if [[ "$1" == "--cross-compile-win32" ]]; then- time docker run --init --rm -v"${PWD}":/host ${dockerflags} ubuntu:18.04 bash /host/crosscompile-from-linux-to-win.sh --win32 /host/output/ffmpeg-win32.exe- cd output && zip ffmpeg.zip ffmpeg-win32.exe "${LICENSE_FILE}"- elif [[ "$1" == "--cross-compile-win64" ]]; then+ if [[ "$1" == "--cross-compile-win64" ]]; thentime docker run --init --rm -v"${PWD}":/host ${dockerflags} ubuntu:18.04 bash /host/crosscompile-from-linux-to-win.sh --win64 /host/output/ffmpeg-win64.execd output && zip ffmpeg.zip ffmpeg-win64.exe "${LICENSE_FILE}"elsediff --git a/browser_patches/firefox-beta/EXPECTED_BUILDS b/browser_patches/firefox-beta/EXPECTED_BUILDSindex 107c325617..857daf7b71 100644--- a/browser_patches/firefox-beta/EXPECTED_BUILDS+++ b/browser_patches/firefox-beta/EXPECTED_BUILDS@@ -2,5 +2,4 @@ firefox-beta-mac-11.zipfirefox-beta-mac-11-arm64.zipfirefox-beta-ubuntu-18.04.zipfirefox-beta-ubuntu-20.04.zip-firefox-beta-win32.zipfirefox-beta-win64.zipdiff --git a/browser_patches/firefox-beta/build.sh b/browser_patches/firefox-beta/build.shindex d69db02c42..3550f057f3 100755--- a/browser_patches/firefox-beta/build.sh+++ b/browser_patches/firefox-beta/build.sh@@ -37,16 +37,10 @@ elif [[ "$(uname)" == MINGW* ]]; thenecho "ac_add_options --disable-update-agent" >> .mozconfigecho "ac_add_options --disable-default-browser-agent" >> .mozconfig- DLL_FILE=""- if [[ $1 == "--win64" ]]; then- echo "-- building win64 build on MINGW"- echo "ac_add_options --target=x86_64-pc-mingw32" >> .mozconfig- echo "ac_add_options --host=x86_64-pc-mingw32" >> .mozconfig- DLL_FILE=$("C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find '**\Redist\MSVC\*\x64\**\vcruntime140.dll')- else- echo "-- building win32 build on MINGW"- DLL_FILE=$("C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find '**\Redist\MSVC\*\x86\**\vcruntime140.dll')- fi+ echo "-- building win64 build on MINGW"+ echo "ac_add_options --target=x86_64-pc-mingw32" >> .mozconfig+ echo "ac_add_options --host=x86_64-pc-mingw32" >> .mozconfig+ DLL_FILE=$("C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find '**\Redist\MSVC\*\x64\**\vcruntime140.dll')WIN32_REDIST_DIR=$(dirname "$DLL_FILE")if ! [[ -d $WIN32_REDIST_DIR ]]; thenecho "ERROR: cannot find MS VS C++ redistributable $WIN32_REDIST_DIR"diff --git a/browser_patches/firefox/EXPECTED_BUILDS b/browser_patches/firefox/EXPECTED_BUILDSindex 6f6ff5a099..576b60dd9d 100644--- a/browser_patches/firefox/EXPECTED_BUILDS+++ b/browser_patches/firefox/EXPECTED_BUILDS@@ -2,5 +2,4 @@ firefox-mac-11.zipfirefox-mac-11-arm64.zipfirefox-ubuntu-18.04.zipfirefox-ubuntu-20.04.zip-firefox-win32.zipfirefox-win64.zipdiff --git a/browser_patches/firefox/build.sh b/browser_patches/firefox/build.shindex f3f1086bed..06e1fb2608 100755--- a/browser_patches/firefox/build.sh+++ b/browser_patches/firefox/build.sh@@ -41,16 +41,10 @@ elif [[ "$(uname)" == MINGW* ]]; thenecho "ac_add_options --disable-update-agent" >> .mozconfigecho "ac_add_options --disable-default-browser-agent" >> .mozconfig- DLL_FILE=""- if [[ $1 == "--win64" ]]; then- echo "-- building win64 build on MINGW"- echo "ac_add_options --target=x86_64-pc-mingw32" >> .mozconfig- echo "ac_add_options --host=x86_64-pc-mingw32" >> .mozconfig- DLL_FILE=$("C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find '**\Redist\MSVC\*\x64\**\vcruntime140.dll')- else- echo "-- building win32 build on MINGW"- DLL_FILE=$("C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find '**\Redist\MSVC\*\x86\**\vcruntime140.dll')- fi+ echo "-- building win64 build on MINGW"+ echo "ac_add_options --target=x86_64-pc-mingw32" >> .mozconfig+ echo "ac_add_options --host=x86_64-pc-mingw32" >> .mozconfig+ DLL_FILE=$("C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find '**\Redist\MSVC\*\x64\**\vcruntime140.dll')WIN32_REDIST_DIR=$(dirname "$DLL_FILE")if ! [[ -d $WIN32_REDIST_DIR ]]; thenecho "ERROR: cannot find MS VS C++ redistributable $WIN32_REDIST_DIR"diff --git a/browser_patches/repack-juggler.mjs b/browser_patches/repack-juggler.mjsindex 01d6fd32e8..34fea2bce7 100755--- a/browser_patches/repack-juggler.mjs+++ b/browser_patches/repack-juggler.mjs@@ -51,7 +51,6 @@ const EXECUTABLE_PATHS = {'mac10.15': ['firefox', 'Nightly.app', 'Contents', 'MacOS', 'firefox'],'mac11': ['firefox', 'Nightly.app', 'Contents', 'MacOS', 'firefox'],'mac11-arm64': ['firefox', 'Nightly.app', 'Contents', 'MacOS', 'firefox'],- 'win32': ['firefox', 'firefox.exe'],'win64': ['firefox', 'firefox.exe'],};@@ -63,7 +62,6 @@ const DOWNLOAD_URLS = {'mac10.15': 'https://playwright.azureedge.net/builds/firefox/%s/firefox-mac-11.zip','mac11': 'https://playwright.azureedge.net/builds/firefox/%s/firefox-mac-11.zip','mac11-arm64': 'https://playwright.azureedge.net/builds/firefox/%s/firefox-mac-11.0-arm64.zip',- 'win32': 'https://playwright.azureedge.net/builds/firefox/%s/firefox-win32.zip','win64': 'https://playwright.azureedge.net/builds/firefox/%s/firefox-win64.zip',},'firefox-beta': {@@ -73,7 +71,6 @@ const DOWNLOAD_URLS = {'mac10.15': 'https://playwright.azureedge.net/builds/firefox-beta/%s/firefox-beta-mac-11.zip','mac11': 'https://playwright.azureedge.net/builds/firefox-beta/%s/firefox-beta-mac-11.zip','mac11-arm64': 'https://playwright.azureedge.net/builds/firefox-beta/%s/firefox-beta-mac-11.0-arm64.zip',- 'win32': 'https://playwright.azureedge.net/builds/firefox-beta/%s/firefox-beta-win32.zip','win64': 'https://playwright.azureedge.net/builds/firefox-beta/%s/firefox-beta-win64.zip',},};@@ -299,7 +296,7 @@ function getHostPlatform() {return 'ubuntu20.04';}if (platform === 'win32')- return os.arch() === 'x64' ? 'win64' : 'win32';+ return 'win64';return platform;}