Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: drop build infrastructure for WebKit @ MacOS 10.14 (#8438)

Andrey Lushnikov831cff1a8234
diff --git a/browser_patches/checkout_build_archive_upload.sh b/browser_patches/checkout_build_archive_upload.sh
index d62931b627..58fbf57dcb 100755
--- a/browser_patches/checkout_build_archive_upload.sh
+++ b/browser_patches/checkout_build_archive_upload.sh
@@ -308,14 +308,9 @@ elif [[ "$BUILD_FLAVOR" == "webkit-mac-11.0-arm64" ]]; then
BUILD_BLOB_NAME="webkit-mac-11.0-arm64.zip"
-# ===================================
-# DEPRECATED WEBKIT COMPILATION
-# ===================================
-elif [[ "$BUILD_FLAVOR" == "deprecated-webkit-mac-10.14" ]]; then
- BROWSER_NAME="deprecated-webkit-mac-10.14"
- EXPECTED_HOST_OS="Darwin"
- EXPECTED_HOST_OS_VERSION="10.14"
- BUILD_BLOB_NAME="deprecated-webkit-mac-10.14.zip"
+# ===========================
+# Unknown input
+# ===========================
else
echo ERROR: unknown build flavor - "$BUILD_FLAVOR"
exit 1
diff --git a/browser_patches/deprecated-webkit-mac-10.14/.gitignore b/browser_patches/deprecated-webkit-mac-10.14/.gitignore
deleted file mode 100644
index 5e660dc18e..0000000000
--- a/browser_patches/deprecated-webkit-mac-10.14/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/checkout
diff --git a/browser_patches/deprecated-webkit-mac-10.14/BUILD_NUMBER b/browser_patches/deprecated-webkit-mac-10.14/BUILD_NUMBER
deleted file mode 100644
index d40a389c87..0000000000
--- a/browser_patches/deprecated-webkit-mac-10.14/BUILD_NUMBER
+++ /dev/null
@@ -1,2 +0,0 @@
-1446
-Changed: [email protected] Mon Jun 7 14:01:01 PDT 2021
diff --git a/browser_patches/deprecated-webkit-mac-10.14/EXPECTED_BUILDS b/browser_patches/deprecated-webkit-mac-10.14/EXPECTED_BUILDS
deleted file mode 100644
index e1d6b231bf..0000000000
--- a/browser_patches/deprecated-webkit-mac-10.14/EXPECTED_BUILDS
+++ /dev/null
@@ -1,2 +0,0 @@
-deprecated-webkit-mac-10.14.zip
-
diff --git a/browser_patches/deprecated-webkit-mac-10.14/archive.sh b/browser_patches/deprecated-webkit-mac-10.14/archive.sh
deleted file mode 100755
index bb8c19a761..0000000000
--- a/browser_patches/deprecated-webkit-mac-10.14/archive.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/bash
-set -e
-set +x
-
-if [[ ("$1" == "-h") || ("$1" == "--help") ]]; then
- echo "usage: $(basename $0) [output-absolute-path]"
- echo
- echo "Generate distributable .zip archive from ./checkout folder that was previously built."
- echo
- exit 0
-fi
-
-ZIP_PATH=$1
-if [[ $ZIP_PATH != /* ]]; then
- echo "ERROR: path $ZIP_PATH is not absolute"
- exit 1
-fi
-if [[ $ZIP_PATH != *.zip ]]; then
- echo "ERROR: path $ZIP_PATH must have .zip extension"
- exit 1
-fi
-if [[ -f $ZIP_PATH ]]; then
- echo "ERROR: path $ZIP_PATH exists; can't do anything."
- exit 1
-fi
-if ! [[ -d $(dirname $ZIP_PATH) ]]; then
- echo "ERROR: folder for path $($ZIP_PATH) does not exist."
- exit 1
-fi
-
-createZipForMac() {
- # create a TMP directory to copy all necessary files
- local tmpdir=$(mktemp -d)
-
- # copy all relevant files
- ditto {$SCRIPTS_DIR,$tmpdir}/pw_run.sh
- # copy protocol
-
- # zip resulting directory and cleanup TMP.
- ditto -c -k $tmpdir $ZIP_PATH
- rm -rf $tmpdir
-}
-
-trap "cd $(pwd -P)" EXIT
-cd "$(dirname "$0")"
-SCRIPTS_DIR="$(pwd -P)"
-
-createZipForMac
diff --git a/browser_patches/deprecated-webkit-mac-10.14/build.sh b/browser_patches/deprecated-webkit-mac-10.14/build.sh
deleted file mode 100755
index 2dfafaf053..0000000000
--- a/browser_patches/deprecated-webkit-mac-10.14/build.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-# NOTE: this file is intentionally empty since deprecated-webkit-mac-10.14 is now a stub.
diff --git a/browser_patches/deprecated-webkit-mac-10.14/clean.sh b/browser_patches/deprecated-webkit-mac-10.14/clean.sh
deleted file mode 100755
index 2dfafaf053..0000000000
--- a/browser_patches/deprecated-webkit-mac-10.14/clean.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-# NOTE: this file is intentionally empty since deprecated-webkit-mac-10.14 is now a stub.
diff --git a/browser_patches/deprecated-webkit-mac-10.14/pw_run.sh b/browser_patches/deprecated-webkit-mac-10.14/pw_run.sh
deleted file mode 100755
index ac2c2fb5b5..0000000000
--- a/browser_patches/deprecated-webkit-mac-10.14/pw_run.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-cat << EndOfMessage
-****************************************************************
-****************************************************************
-
-ERROR: MacOS version is too old!
-
-This version of Playwright does not support running
-WebKit on MacOS 10.14. Please either:
-- update your operating system to version 10.15 or higher
-- use Playwright v1.11 or older
-
-****************************************************************
-****************************************************************
-EndOfMessage
-exit 1;
diff --git a/browser_patches/prepare_checkout.sh b/browser_patches/prepare_checkout.sh
index e0f9cefe4d..9685a05c28 100755
--- a/browser_patches/prepare_checkout.sh
+++ b/browser_patches/prepare_checkout.sh
@@ -107,9 +107,6 @@ elif [[ ("$1" == "firefox-beta") || ("$1" == "ff-beta") ]]; then
CHECKOUT_PATH="${FF_CHECKOUT_PATH}"
FRIENDLY_CHECKOUT_PATH="<FF_CHECKOUT_PATH>"
fi
-elif [[ ("$1" == "deprecated-webkit-mac-10.14") ]]; then
- echo "FYI: deprecated-webkit-mac-10.14 has no checkout anymore"
- exit 0
elif [[ ("$1" == "webkit") || ("$1" == "webkit/") || ("$1" == "wk") ]]; then
FRIENDLY_CHECKOUT_PATH="//browser_patches/webkit/checkout";
CHECKOUT_PATH="$PWD/webkit/checkout"