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: re-use firefox checkout for firefox-stable (#6410)
Andrey Lushnikov77c102019339
diff --git a/browser_patches/export.sh b/browser_patches/export.shindex 5cf948a1bf..3b34dc3324 100755--- a/browser_patches/export.sh+++ b/browser_patches/export.sh@@ -53,9 +53,11 @@ if [[ ("$1" == "firefox") || ("$1" == "firefox/") || ("$1" == "ff") ]]; thenCHECKOUT_PATH="${FF_CHECKOUT_PATH}"FRIENDLY_CHECKOUT_PATH="<FF_CHECKOUT_PATH>"fi-elif [[ ("$1" == "firefox-stable") ]]; then- FRIENDLY_CHECKOUT_PATH="//browser_patches/firefox-stable/checkout";- CHECKOUT_PATH="$PWD/firefox-stable/checkout"+elif [[ ("$1" == "firefox-stable") || ("$1" == "ff-stable") ]]; then+ # NOTE: firefox-stable re-uses firefox checkout.+ FRIENDLY_CHECKOUT_PATH="//browser_patches/firefox/checkout";+ CHECKOUT_PATH="$PWD/firefox/checkout"+EXTRA_FOLDER_PW_PATH="$PWD/firefox-stable/juggler"EXTRA_FOLDER_CHECKOUT_RELPATH="juggler"EXPORT_PATH="$PWD/firefox-stable"diff --git a/browser_patches/firefox-stable/archive.sh b/browser_patches/firefox-stable/archive.shindex 776891f358..c3b66c8719 100755--- a/browser_patches/firefox-stable/archive.sh+++ b/browser_patches/firefox-stable/archive.sh@@ -36,7 +36,7 @@ if [[ ! -z "${FF_CHECKOUT_PATH}" ]]; thencd "${FF_CHECKOUT_PATH}"echo "WARNING: checkout path from FF_CHECKOUT_PATH env: ${FF_CHECKOUT_PATH}"else- cd "checkout"+ cd "../firefox/checkout"fiOBJ_FOLDER="obj-build-playwright"diff --git a/browser_patches/firefox-stable/build.sh b/browser_patches/firefox-stable/build.shindex 6e42210f90..9a3966eacc 100755--- a/browser_patches/firefox-stable/build.sh+++ b/browser_patches/firefox-stable/build.sh@@ -18,7 +18,7 @@ if [[ ! -z "${FF_CHECKOUT_PATH}" ]]; thencd "${FF_CHECKOUT_PATH}"echo "WARNING: checkout path from FF_CHECKOUT_PATH env: ${FF_CHECKOUT_PATH}"else- cd "checkout"+ cd "../firefox/checkout"firm -rf .mozconfigdiff --git a/browser_patches/firefox-stable/clean.sh b/browser_patches/firefox-stable/clean.shindex 9b3a97c380..bd76941453 100755--- a/browser_patches/firefox-stable/clean.sh+++ b/browser_patches/firefox-stable/clean.sh@@ -8,7 +8,7 @@ if [[ ! -z "${FF_CHECKOUT_PATH}" ]]; thenecho "WARNING: checkout path from FF_CHECKOUT_PATH env: ${FF_CHECKOUT_PATH}"elsecd "$(dirname $0)"- cd "checkout"+ cd "../firefox/checkout"fiOBJ_FOLDER="obj-build-playwright"diff --git a/browser_patches/prepare_checkout.sh b/browser_patches/prepare_checkout.shindex b977600309..20e1eb502d 100755--- a/browser_patches/prepare_checkout.sh+++ b/browser_patches/prepare_checkout.sh@@ -93,9 +93,11 @@ elif [[ ("$1" == "firefox") || ("$1" == "firefox/") || ("$1" == "ff") ]]; thenCHECKOUT_PATH="${FF_CHECKOUT_PATH}"FRIENDLY_CHECKOUT_PATH="<FF_CHECKOUT_PATH>"fi-elif [[ ("$1" == "firefox-stable") ]]; then- FRIENDLY_CHECKOUT_PATH="//browser_patches/firefox-stable/checkout";- CHECKOUT_PATH="$PWD/firefox-stable/checkout"+elif [[ ("$1" == "firefox-stable") || ("$1" == "ff-stable") ]]; then+ # NOTE: firefox-stable re-uses firefox checkout.+ FRIENDLY_CHECKOUT_PATH="//browser_patches/firefox/checkout";+ CHECKOUT_PATH="$PWD/firefox/checkout"+PATCHES_PATH="$PWD/firefox-stable/patches"FIREFOX_EXTRA_FOLDER_PATH="$PWD/firefox-stable/juggler"BUILD_NUMBER=$(head -1 "$PWD/firefox-stable/BUILD_NUMBER")@@ -236,7 +238,7 @@ elif [[ ! -z "${FIREFOX_EXTRA_FOLDER_PATH}" ]]; thengit add $EMBEDDER_DIRfi-git commit -a --author="playwright-devops <[email protected]>" -m "chore: bootstrap build #$BUILD_NUMBER"+git commit -a --author="playwright-devops <[email protected]>" -m "chore($1): bootstrap build #$BUILD_NUMBER"echoecho