From e342330feb6be33e7234149a344faa50d1903da7 Mon Sep 17 00:00:00 2001 From: Ninad Sheth Date: Wed, 20 Nov 2024 17:35:55 +0530 Subject: [PATCH] v1.30.3-alpha.1 --- lerna.json | 2 +- packages/cli-app/package.json | 6 ++--- packages/cli-build/package.json | 4 +-- packages/cli-command/package.json | 8 +++--- packages/cli-config/package.json | 4 +-- packages/cli-exec/package.json | 6 ++--- packages/cli-snapshot/package.json | 4 +-- packages/cli-upload/package.json | 4 +-- packages/cli/package.json | 20 +++++++-------- packages/client/package.json | 6 ++--- packages/config/package.json | 4 +-- packages/core/package.json | 12 ++++----- packages/core/src/findRevision.sh | 37 +++++++++++++++++++++++++++ packages/dom/package.json | 2 +- packages/env/package.json | 4 +-- packages/logger/package.json | 2 +- packages/sdk-utils/package.json | 2 +- packages/webdriver-utils/package.json | 6 ++--- 18 files changed, 85 insertions(+), 48 deletions(-) create mode 100755 packages/core/src/findRevision.sh diff --git a/lerna.json b/lerna.json index 9776591e4..e044617c8 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "1.30.3-alpha.0", + "version": "1.30.3-alpha.1", "packages": [ "packages/*" ], diff --git a/packages/cli-app/package.json b/packages/cli-app/package.json index 570b3392a..c12f2c12c 100644 --- a/packages/cli-app/package.json +++ b/packages/cli-app/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-app", - "version": "1.30.3-alpha.0", + "version": "1.30.3-alpha.1", "license": "MIT", "repository": { "type": "git", @@ -33,7 +33,7 @@ ] }, "dependencies": { - "@percy/cli-command": "1.30.3-alpha.0", - "@percy/cli-exec": "1.30.3-alpha.0" + "@percy/cli-command": "1.30.3-alpha.1", + "@percy/cli-exec": "1.30.3-alpha.1" } } diff --git a/packages/cli-build/package.json b/packages/cli-build/package.json index 8d4da27eb..860e47ab6 100644 --- a/packages/cli-build/package.json +++ b/packages/cli-build/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-build", - "version": "1.30.3-alpha.0", + "version": "1.30.3-alpha.1", "license": "MIT", "repository": { "type": "git", @@ -33,6 +33,6 @@ ] }, "dependencies": { - "@percy/cli-command": "1.30.3-alpha.0" + "@percy/cli-command": "1.30.3-alpha.1" } } diff --git a/packages/cli-command/package.json b/packages/cli-command/package.json index 48b2a83b3..ec8e5d7d7 100644 --- a/packages/cli-command/package.json +++ b/packages/cli-command/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-command", - "version": "1.30.3-alpha.0", + "version": "1.30.3-alpha.1", "license": "MIT", "repository": { "type": "git", @@ -36,8 +36,8 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/config": "1.30.3-alpha.0", - "@percy/core": "1.30.3-alpha.0", - "@percy/logger": "1.30.3-alpha.0" + "@percy/config": "1.30.3-alpha.1", + "@percy/core": "1.30.3-alpha.1", + "@percy/logger": "1.30.3-alpha.1" } } diff --git a/packages/cli-config/package.json b/packages/cli-config/package.json index 5566bba1b..99f79487a 100644 --- a/packages/cli-config/package.json +++ b/packages/cli-config/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-config", - "version": "1.30.3-alpha.0", + "version": "1.30.3-alpha.1", "license": "MIT", "repository": { "type": "git", @@ -33,6 +33,6 @@ ] }, "dependencies": { - "@percy/cli-command": "1.30.3-alpha.0" + "@percy/cli-command": "1.30.3-alpha.1" } } diff --git a/packages/cli-exec/package.json b/packages/cli-exec/package.json index 9df21a8b1..0539edf65 100644 --- a/packages/cli-exec/package.json +++ b/packages/cli-exec/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-exec", - "version": "1.30.3-alpha.0", + "version": "1.30.3-alpha.1", "license": "MIT", "repository": { "type": "git", @@ -33,8 +33,8 @@ ] }, "dependencies": { - "@percy/cli-command": "1.30.3-alpha.0", - "@percy/logger": "1.30.3-alpha.0", + "@percy/cli-command": "1.30.3-alpha.1", + "@percy/logger": "1.30.3-alpha.1", "cross-spawn": "^7.0.3", "which": "^2.0.2" } diff --git a/packages/cli-snapshot/package.json b/packages/cli-snapshot/package.json index 01b231094..9d3278e89 100644 --- a/packages/cli-snapshot/package.json +++ b/packages/cli-snapshot/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-snapshot", - "version": "1.30.3-alpha.0", + "version": "1.30.3-alpha.1", "license": "MIT", "repository": { "type": "git", @@ -33,7 +33,7 @@ ] }, "dependencies": { - "@percy/cli-command": "1.30.3-alpha.0", + "@percy/cli-command": "1.30.3-alpha.1", "yaml": "^2.0.0" } } diff --git a/packages/cli-upload/package.json b/packages/cli-upload/package.json index d0f5fc7e9..fa1e28b8b 100644 --- a/packages/cli-upload/package.json +++ b/packages/cli-upload/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-upload", - "version": "1.30.3-alpha.0", + "version": "1.30.3-alpha.1", "license": "MIT", "repository": { "type": "git", @@ -33,7 +33,7 @@ ] }, "dependencies": { - "@percy/cli-command": "1.30.3-alpha.0", + "@percy/cli-command": "1.30.3-alpha.1", "fast-glob": "^3.2.11", "image-size": "^1.0.0" } diff --git a/packages/cli/package.json b/packages/cli/package.json index e67c7e6c7..f712676f7 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli", - "version": "1.30.3-alpha.0", + "version": "1.30.3-alpha.1", "license": "MIT", "repository": { "type": "git", @@ -31,14 +31,14 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/cli-app": "1.30.3-alpha.0", - "@percy/cli-build": "1.30.3-alpha.0", - "@percy/cli-command": "1.30.3-alpha.0", - "@percy/cli-config": "1.30.3-alpha.0", - "@percy/cli-exec": "1.30.3-alpha.0", - "@percy/cli-snapshot": "1.30.3-alpha.0", - "@percy/cli-upload": "1.30.3-alpha.0", - "@percy/client": "1.30.3-alpha.0", - "@percy/logger": "1.30.3-alpha.0" + "@percy/cli-app": "1.30.3-alpha.1", + "@percy/cli-build": "1.30.3-alpha.1", + "@percy/cli-command": "1.30.3-alpha.1", + "@percy/cli-config": "1.30.3-alpha.1", + "@percy/cli-exec": "1.30.3-alpha.1", + "@percy/cli-snapshot": "1.30.3-alpha.1", + "@percy/cli-upload": "1.30.3-alpha.1", + "@percy/client": "1.30.3-alpha.1", + "@percy/logger": "1.30.3-alpha.1" } } diff --git a/packages/client/package.json b/packages/client/package.json index 0cb95f1ee..5de062caf 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "@percy/client", - "version": "1.30.3-alpha.0", + "version": "1.30.3-alpha.1", "license": "MIT", "repository": { "type": "git", @@ -33,8 +33,8 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/env": "1.30.3-alpha.0", - "@percy/logger": "1.30.3-alpha.0", + "@percy/env": "1.30.3-alpha.1", + "@percy/logger": "1.30.3-alpha.1", "pac-proxy-agent": "^7.0.2", "pako": "^2.1.0" } diff --git a/packages/config/package.json b/packages/config/package.json index 9efe83925..2ad3cda56 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -1,6 +1,6 @@ { "name": "@percy/config", - "version": "1.30.3-alpha.0", + "version": "1.30.3-alpha.1", "license": "MIT", "repository": { "type": "git", @@ -38,7 +38,7 @@ "test:types": "tsd" }, "dependencies": { - "@percy/logger": "1.30.3-alpha.0", + "@percy/logger": "1.30.3-alpha.1", "ajv": "^8.6.2", "cosmiconfig": "^8.0.0", "yaml": "^2.0.0" diff --git a/packages/core/package.json b/packages/core/package.json index 46dcc977d..96e53792d 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@percy/core", - "version": "1.30.3-alpha.0", + "version": "1.30.3-alpha.1", "license": "MIT", "repository": { "type": "git", @@ -43,11 +43,11 @@ "test:types": "tsd" }, "dependencies": { - "@percy/client": "1.30.3-alpha.0", - "@percy/config": "1.30.3-alpha.0", - "@percy/dom": "1.30.3-alpha.0", - "@percy/logger": "1.30.3-alpha.0", - "@percy/webdriver-utils": "1.30.3-alpha.0", + "@percy/client": "1.30.3-alpha.1", + "@percy/config": "1.30.3-alpha.1", + "@percy/dom": "1.30.3-alpha.1", + "@percy/logger": "1.30.3-alpha.1", + "@percy/webdriver-utils": "1.30.3-alpha.1", "content-disposition": "^0.5.4", "cross-spawn": "^7.0.3", "extract-zip": "^2.0.1", diff --git a/packages/core/src/findRevision.sh b/packages/core/src/findRevision.sh new file mode 100755 index 000000000..73079467c --- /dev/null +++ b/packages/core/src/findRevision.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +function download_url { + if [[ "$OS" == "Linux" ]]; then + echo "https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F${1}%2Fchrome-linux.zip?alt=media" + elif [[ "$OS" == "Mac" ]] || [[ "$OS" == "Mac_Arm" ]]; then + echo "https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/$OS%2F${1}%2Fchrome-mac.zip?alt=media" + elif [[ "$OS" == "Win" ]] || [[ "$OS" == "Win_x64" ]]; then + echo "https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/$OS%2F${1}%2Fchrome-win.zip?alt=media" + fi +} + +function get_closest_rev { + while true; do + curl -I 2>/dev/null `download_url $REVISION` | head -1 | grep 404 >/dev/null + if (($? == 1)); then + break + fi + REVISION=$(($REVISION-1)) + done + echo $REVISION +} + + +if (($# < 1)); then + printf "usage: \n" + printf " ./get_chromuim [-r] rev - will get chromium by revision\n" + exit 1 +fi + +export REVISION=$1 + +for os in "Linux" "Mac" "Mac_Arm" "Win" "Win_x64"; +do + export OS=$os + echo "$OS" `get_closest_rev` +done diff --git a/packages/dom/package.json b/packages/dom/package.json index 0bd78d6f9..0614f8f8e 100644 --- a/packages/dom/package.json +++ b/packages/dom/package.json @@ -1,6 +1,6 @@ { "name": "@percy/dom", - "version": "1.30.3-alpha.0", + "version": "1.30.3-alpha.1", "license": "MIT", "repository": { "type": "git", diff --git a/packages/env/package.json b/packages/env/package.json index cbd1e044c..7cb0e1a7d 100644 --- a/packages/env/package.json +++ b/packages/env/package.json @@ -1,6 +1,6 @@ { "name": "@percy/env", - "version": "1.30.3-alpha.0", + "version": "1.30.3-alpha.1", "license": "MIT", "repository": { "type": "git", @@ -32,6 +32,6 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/logger": "1.30.3-alpha.0" + "@percy/logger": "1.30.3-alpha.1" } } diff --git a/packages/logger/package.json b/packages/logger/package.json index 5675ac071..4d14cbb62 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -1,6 +1,6 @@ { "name": "@percy/logger", - "version": "1.30.3-alpha.0", + "version": "1.30.3-alpha.1", "license": "MIT", "repository": { "type": "git", diff --git a/packages/sdk-utils/package.json b/packages/sdk-utils/package.json index b7a3686b8..f8098fa2c 100644 --- a/packages/sdk-utils/package.json +++ b/packages/sdk-utils/package.json @@ -1,6 +1,6 @@ { "name": "@percy/sdk-utils", - "version": "1.30.3-alpha.0", + "version": "1.30.3-alpha.1", "license": "MIT", "repository": { "type": "git", diff --git a/packages/webdriver-utils/package.json b/packages/webdriver-utils/package.json index e72203da2..d635adb84 100644 --- a/packages/webdriver-utils/package.json +++ b/packages/webdriver-utils/package.json @@ -1,6 +1,6 @@ { "name": "@percy/webdriver-utils", - "version": "1.30.3-alpha.0", + "version": "1.30.3-alpha.1", "license": "MIT", "repository": { "type": "git", @@ -29,7 +29,7 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/config": "1.30.3-alpha.0", - "@percy/sdk-utils": "1.30.3-alpha.0" + "@percy/config": "1.30.3-alpha.1", + "@percy/sdk-utils": "1.30.3-alpha.1" } }