From 1281943f14b881b0b0be009bd7b7f5a14a744b2e Mon Sep 17 00:00:00 2001 From: "revathy.s" Date: Thu, 5 Dec 2024 17:29:32 +0530 Subject: [PATCH 01/12] updated snapshot concurrency --- packages/core/src/config.js | 4 ++++ packages/core/src/percy.js | 11 +++++++---- scripts/executable.sh | 30 +++++++++++++++--------------- 3 files changed, 26 insertions(+), 19 deletions(-) diff --git a/packages/core/src/config.js b/packages/core/src/config.js index 2162c690d..e0eae19e5 100644 --- a/packages/core/src/config.js +++ b/packages/core/src/config.js @@ -259,6 +259,10 @@ export const configSchema = { type: 'integer', minimum: 1 }, + snapshotConcurrency: { + type: 'integer', + minimum: 1 + }, retry: { type: 'boolean', default: false diff --git a/packages/core/src/percy.js b/packages/core/src/percy.js index 89de52890..4161e1775 100644 --- a/packages/core/src/percy.js +++ b/packages/core/src/percy.js @@ -154,11 +154,14 @@ export class Percy { // replace arrays instead of merging return Array.isArray(next) && [path, next]; }); - - // adjust queue concurrency - let { concurrency } = this.config.discovery; + + const concurrency = this.config.discovery.concurrency; + const snapshotConcurrency = concurrency; + if (this.config.discovery.snapshotConcurrency) { + snapshotConcurrency = this.config.discovery.snapshotConcurrency; + } this.#discovery.set({ concurrency }); - this.#snapshots.set({ concurrency }); + this.#snapshots.set({ snapshotConcurrency }); return this.config; } diff --git a/scripts/executable.sh b/scripts/executable.sh index 655a564bb..a3a5e8424 100755 --- a/scripts/executable.sh +++ b/scripts/executable.sh @@ -53,23 +53,23 @@ mv run-macos percy-osx && chmod +x percy-osx mv run-win.exe percy.exe && chmod +x percy.exe # Sign & Notrize mac app -echo "$APPLE_DEV_CERT" | base64 -d > AppleDevIDApp.p12 +# echo "$APPLE_DEV_CERT" | base64 -d > AppleDevIDApp.p12 -security create-keychain -p percy percy.keychain -security import AppleDevIDApp.p12 -t agg -k percy.keychain -P $APPLE_CERT_KEY -A -security list-keychains -s ~/Library/Keychains/percy.keychain -security default-keychain -s ~/Library/Keychains/percy.keychain -security unlock-keychain -p "percy" ~/Library/Keychains/percy.keychain -security set-keychain-settings -t 3600 -l ~/Library/Keychains/percy.keychain -security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k percy ~/Library/Keychains/percy.keychain-db +# security create-keychain -p percy percy.keychain +# security import AppleDevIDApp.p12 -t agg -k percy.keychain -P $APPLE_CERT_KEY -A +# security list-keychains -s ~/Library/Keychains/percy.keychain +# security default-keychain -s ~/Library/Keychains/percy.keychain +# security unlock-keychain -p "percy" ~/Library/Keychains/percy.keychain +# security set-keychain-settings -t 3600 -l ~/Library/Keychains/percy.keychain +# security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k percy ~/Library/Keychains/percy.keychain-db -codesign --force --verbose=4 -s "Developer ID Application: BrowserStack Inc ($APPLE_TEAM_ID)" --options runtime --entitlements scripts/files/entitlement.plist --keychain ~/Library/Keychains/percy.keychain percy-osx +# codesign --force --verbose=4 -s "Developer ID Application: BrowserStack Inc ($APPLE_TEAM_ID)" --options runtime --entitlements scripts/files/entitlement.plist --keychain ~/Library/Keychains/percy.keychain percy-osx -# Create zip file for uploading as assets -zip percy-linux.zip percy -mv percy-osx percy -zip percy-osx.zip percy +# # Create zip file for uploading as assets +# zip percy-linux.zip percy +# mv percy-osx percy +# zip percy-osx.zip percy -xcrun notarytool submit --apple-id "$APPLE_ID_USERNAME" --password $APPLE_ID_KEY --team-id $APPLE_TEAM_ID percy-osx.zip --wait +# xcrun notarytool submit --apple-id "$APPLE_ID_USERNAME" --password $APPLE_ID_KEY --team-id $APPLE_TEAM_ID percy-osx.zip --wait -cleanup +# cleanup From dccfaeb00ecaf555b9b84f9035d432d34171cd51 Mon Sep 17 00:00:00 2001 From: "revathy.s" Date: Thu, 5 Dec 2024 19:48:37 +0530 Subject: [PATCH 02/12] Removing the build script --- scripts/executable.sh | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/scripts/executable.sh b/scripts/executable.sh index a3a5e8424..655a564bb 100755 --- a/scripts/executable.sh +++ b/scripts/executable.sh @@ -53,23 +53,23 @@ mv run-macos percy-osx && chmod +x percy-osx mv run-win.exe percy.exe && chmod +x percy.exe # Sign & Notrize mac app -# echo "$APPLE_DEV_CERT" | base64 -d > AppleDevIDApp.p12 +echo "$APPLE_DEV_CERT" | base64 -d > AppleDevIDApp.p12 -# security create-keychain -p percy percy.keychain -# security import AppleDevIDApp.p12 -t agg -k percy.keychain -P $APPLE_CERT_KEY -A -# security list-keychains -s ~/Library/Keychains/percy.keychain -# security default-keychain -s ~/Library/Keychains/percy.keychain -# security unlock-keychain -p "percy" ~/Library/Keychains/percy.keychain -# security set-keychain-settings -t 3600 -l ~/Library/Keychains/percy.keychain -# security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k percy ~/Library/Keychains/percy.keychain-db +security create-keychain -p percy percy.keychain +security import AppleDevIDApp.p12 -t agg -k percy.keychain -P $APPLE_CERT_KEY -A +security list-keychains -s ~/Library/Keychains/percy.keychain +security default-keychain -s ~/Library/Keychains/percy.keychain +security unlock-keychain -p "percy" ~/Library/Keychains/percy.keychain +security set-keychain-settings -t 3600 -l ~/Library/Keychains/percy.keychain +security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k percy ~/Library/Keychains/percy.keychain-db -# codesign --force --verbose=4 -s "Developer ID Application: BrowserStack Inc ($APPLE_TEAM_ID)" --options runtime --entitlements scripts/files/entitlement.plist --keychain ~/Library/Keychains/percy.keychain percy-osx +codesign --force --verbose=4 -s "Developer ID Application: BrowserStack Inc ($APPLE_TEAM_ID)" --options runtime --entitlements scripts/files/entitlement.plist --keychain ~/Library/Keychains/percy.keychain percy-osx -# # Create zip file for uploading as assets -# zip percy-linux.zip percy -# mv percy-osx percy -# zip percy-osx.zip percy +# Create zip file for uploading as assets +zip percy-linux.zip percy +mv percy-osx percy +zip percy-osx.zip percy -# xcrun notarytool submit --apple-id "$APPLE_ID_USERNAME" --password $APPLE_ID_KEY --team-id $APPLE_TEAM_ID percy-osx.zip --wait +xcrun notarytool submit --apple-id "$APPLE_ID_USERNAME" --password $APPLE_ID_KEY --team-id $APPLE_TEAM_ID percy-osx.zip --wait -# cleanup +cleanup From 089de61e1dd676bb4c8f1916615d617b930835ca Mon Sep 17 00:00:00 2001 From: "revathy.s" Date: Thu, 5 Dec 2024 20:10:24 +0530 Subject: [PATCH 03/12] lint fix --- packages/core/src/percy.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/core/src/percy.js b/packages/core/src/percy.js index 4161e1775..1dcecfa99 100644 --- a/packages/core/src/percy.js +++ b/packages/core/src/percy.js @@ -154,9 +154,8 @@ export class Percy { // replace arrays instead of merging return Array.isArray(next) && [path, next]; }); - const concurrency = this.config.discovery.concurrency; - const snapshotConcurrency = concurrency; + var snapshotConcurrency = concurrency; if (this.config.discovery.snapshotConcurrency) { snapshotConcurrency = this.config.discovery.snapshotConcurrency; } From 6ae275dbfd8262a843f65513dfaf95446eb393c6 Mon Sep 17 00:00:00 2001 From: amit3200 Date: Thu, 5 Dec 2024 21:50:15 +0530 Subject: [PATCH 04/12] Fixing few cases --- packages/client/src/client.js | 3 ++- packages/core/src/discovery.js | 7 ++++++- packages/core/src/percy.js | 5 +---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/client/src/client.js b/packages/client/src/client.js index 7bee9cce5..6e8beca41 100644 --- a/packages/client/src/client.js +++ b/packages/client/src/client.js @@ -367,6 +367,7 @@ export class PercyClient { validateId('build', buildId); this.log.debug(`Uploading resources for ${buildId}...`, meta); + const uploadConcurrency = parseInt(process.env.PERCY_RESOURCE_UPLOAD_CONCURRENCY) || 2; return pool(function*() { for (let resource of resources) { let resourceMeta = { @@ -377,7 +378,7 @@ export class PercyClient { yield this.uploadResource(buildId, resource, resourceMeta); this.log.debug(`Uploaded resource ${resource.url}`, resourceMeta); } - }, this, 2); + }, this, uploadConcurrency); } // Creates a snapshot for the active build using the provided attributes. diff --git a/packages/core/src/discovery.js b/packages/core/src/discovery.js index 09f052d61..a31cba38e 100644 --- a/packages/core/src/discovery.js +++ b/packages/core/src/discovery.js @@ -441,7 +441,12 @@ export function createDiscoveryQueue(percy) { } return resource; }, - saveResource: r => { snapshot.resources.set(r.url, r); cache.set(r.url, r); } + saveResource: r => { + snapshot.resources.set(r.url, r); + if (!snapshot.discovery.disableCache) { + cache.set(r.url, r); + } + } } }); diff --git a/packages/core/src/percy.js b/packages/core/src/percy.js index 1dcecfa99..61268a558 100644 --- a/packages/core/src/percy.js +++ b/packages/core/src/percy.js @@ -155,10 +155,7 @@ export class Percy { return Array.isArray(next) && [path, next]; }); const concurrency = this.config.discovery.concurrency; - var snapshotConcurrency = concurrency; - if (this.config.discovery.snapshotConcurrency) { - snapshotConcurrency = this.config.discovery.snapshotConcurrency; - } + const snapshotConcurrency = parseInt(process.env.PERCY_SNAPSHOT_UPLOAD_CONCURRENCY) || concurrency; this.#discovery.set({ concurrency }); this.#snapshots.set({ snapshotConcurrency }); From d52dac25b3260df8519a675b4ade04ae1d4ccdf4 Mon Sep 17 00:00:00 2001 From: amit3200 Date: Thu, 5 Dec 2024 21:55:40 +0530 Subject: [PATCH 05/12] :bookmark: v1.31.0-alpha.0 --- packages/cli-app/package.json | 8 ++++---- packages/cli-build/package.json | 6 +++--- packages/cli-command/package.json | 10 +++++----- packages/cli-config/package.json | 6 +++--- packages/cli-exec/package.json | 8 ++++---- packages/cli-snapshot/package.json | 6 +++--- packages/cli-upload/package.json | 6 +++--- packages/cli/package.json | 22 +++++++++++----------- packages/client/package.json | 8 ++++---- packages/config/package.json | 6 +++--- packages/core/package.json | 14 +++++++------- packages/dom/package.json | 4 ++-- packages/env/package.json | 6 +++--- packages/logger/package.json | 4 ++-- packages/sdk-utils/package.json | 4 ++-- packages/webdriver-utils/package.json | 8 ++++---- 16 files changed, 63 insertions(+), 63 deletions(-) diff --git a/packages/cli-app/package.json b/packages/cli-app/package.json index bd3526de1..eeda38b4f 100644 --- a/packages/cli-app/package.json +++ b/packages/cli-app/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-app", - "version": "1.30.5", + "version": "1.31.0-alpha.0", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "latest" + "tag": "alpha" }, "engines": { "node": ">=14" @@ -33,7 +33,7 @@ ] }, "dependencies": { - "@percy/cli-command": "1.30.5", - "@percy/cli-exec": "1.30.5" + "@percy/cli-command": "1.31.0-alpha.0", + "@percy/cli-exec": "1.31.0-alpha.0" } } diff --git a/packages/cli-build/package.json b/packages/cli-build/package.json index c69c35b41..6376224fd 100644 --- a/packages/cli-build/package.json +++ b/packages/cli-build/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-build", - "version": "1.30.5", + "version": "1.31.0-alpha.0", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "latest" + "tag": "alpha" }, "engines": { "node": ">=14" @@ -33,6 +33,6 @@ ] }, "dependencies": { - "@percy/cli-command": "1.30.5" + "@percy/cli-command": "1.31.0-alpha.0" } } diff --git a/packages/cli-command/package.json b/packages/cli-command/package.json index 45330f4bb..abe4b8f2c 100644 --- a/packages/cli-command/package.json +++ b/packages/cli-command/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-command", - "version": "1.30.5", + "version": "1.31.0-alpha.0", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "latest" + "tag": "alpha" }, "files": [ "dist", @@ -36,8 +36,8 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/config": "1.30.5", - "@percy/core": "1.30.5", - "@percy/logger": "1.30.5" + "@percy/config": "1.31.0-alpha.0", + "@percy/core": "1.31.0-alpha.0", + "@percy/logger": "1.31.0-alpha.0" } } diff --git a/packages/cli-config/package.json b/packages/cli-config/package.json index 32d079abc..ec9608562 100644 --- a/packages/cli-config/package.json +++ b/packages/cli-config/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-config", - "version": "1.30.5", + "version": "1.31.0-alpha.0", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "latest" + "tag": "alpha" }, "engines": { "node": ">=14" @@ -33,6 +33,6 @@ ] }, "dependencies": { - "@percy/cli-command": "1.30.5" + "@percy/cli-command": "1.31.0-alpha.0" } } diff --git a/packages/cli-exec/package.json b/packages/cli-exec/package.json index 8b907c6eb..01a6277d8 100644 --- a/packages/cli-exec/package.json +++ b/packages/cli-exec/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-exec", - "version": "1.30.5", + "version": "1.31.0-alpha.0", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "latest" + "tag": "alpha" }, "engines": { "node": ">=14" @@ -33,8 +33,8 @@ ] }, "dependencies": { - "@percy/cli-command": "1.30.5", - "@percy/logger": "1.30.5", + "@percy/cli-command": "1.31.0-alpha.0", + "@percy/logger": "1.31.0-alpha.0", "cross-spawn": "^7.0.3", "which": "^2.0.2" } diff --git a/packages/cli-snapshot/package.json b/packages/cli-snapshot/package.json index 6a23edbc8..e7b6db892 100644 --- a/packages/cli-snapshot/package.json +++ b/packages/cli-snapshot/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-snapshot", - "version": "1.30.5", + "version": "1.31.0-alpha.0", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "latest" + "tag": "alpha" }, "engines": { "node": ">=14" @@ -33,7 +33,7 @@ ] }, "dependencies": { - "@percy/cli-command": "1.30.5", + "@percy/cli-command": "1.31.0-alpha.0", "yaml": "^2.0.0" } } diff --git a/packages/cli-upload/package.json b/packages/cli-upload/package.json index 3d8e0c0e5..7cd3d5564 100644 --- a/packages/cli-upload/package.json +++ b/packages/cli-upload/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-upload", - "version": "1.30.5", + "version": "1.31.0-alpha.0", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "latest" + "tag": "alpha" }, "engines": { "node": ">=14" @@ -33,7 +33,7 @@ ] }, "dependencies": { - "@percy/cli-command": "1.30.5", + "@percy/cli-command": "1.31.0-alpha.0", "fast-glob": "^3.2.11", "image-size": "^1.0.0" } diff --git a/packages/cli/package.json b/packages/cli/package.json index a600408ac..1aa4ae555 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli", - "version": "1.30.5", + "version": "1.31.0-alpha.0", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "latest" + "tag": "alpha" }, "files": [ "bin", @@ -31,14 +31,14 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/cli-app": "1.30.5", - "@percy/cli-build": "1.30.5", - "@percy/cli-command": "1.30.5", - "@percy/cli-config": "1.30.5", - "@percy/cli-exec": "1.30.5", - "@percy/cli-snapshot": "1.30.5", - "@percy/cli-upload": "1.30.5", - "@percy/client": "1.30.5", - "@percy/logger": "1.30.5" + "@percy/cli-app": "1.31.0-alpha.0", + "@percy/cli-build": "1.31.0-alpha.0", + "@percy/cli-command": "1.31.0-alpha.0", + "@percy/cli-config": "1.31.0-alpha.0", + "@percy/cli-exec": "1.31.0-alpha.0", + "@percy/cli-snapshot": "1.31.0-alpha.0", + "@percy/cli-upload": "1.31.0-alpha.0", + "@percy/client": "1.31.0-alpha.0", + "@percy/logger": "1.31.0-alpha.0" } } diff --git a/packages/client/package.json b/packages/client/package.json index 7fa745107..a626a07d9 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "@percy/client", - "version": "1.30.5", + "version": "1.31.0-alpha.0", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "latest" + "tag": "alpha" }, "engines": { "node": ">=14" @@ -33,8 +33,8 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/env": "1.30.5", - "@percy/logger": "1.30.5", + "@percy/env": "1.31.0-alpha.0", + "@percy/logger": "1.31.0-alpha.0", "pako": "^2.1.0" } } diff --git a/packages/config/package.json b/packages/config/package.json index 00f124025..0be1053ae 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -1,6 +1,6 @@ { "name": "@percy/config", - "version": "1.30.5", + "version": "1.31.0-alpha.0", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "latest" + "tag": "alpha" }, "engines": { "node": ">=14" @@ -38,7 +38,7 @@ "test:types": "tsd" }, "dependencies": { - "@percy/logger": "1.30.5", + "@percy/logger": "1.31.0-alpha.0", "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 1411abbd6..b1cd2ff99 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@percy/core", - "version": "1.30.5", + "version": "1.31.0-alpha.0", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "latest" + "tag": "alpha" }, "engines": { "node": ">=14" @@ -43,11 +43,11 @@ "test:types": "tsd" }, "dependencies": { - "@percy/client": "1.30.5", - "@percy/config": "1.30.5", - "@percy/dom": "1.30.5", - "@percy/logger": "1.30.5", - "@percy/webdriver-utils": "1.30.5", + "@percy/client": "1.31.0-alpha.0", + "@percy/config": "1.31.0-alpha.0", + "@percy/dom": "1.31.0-alpha.0", + "@percy/logger": "1.31.0-alpha.0", + "@percy/webdriver-utils": "1.31.0-alpha.0", "content-disposition": "^0.5.4", "cross-spawn": "^7.0.3", "extract-zip": "^2.0.1", diff --git a/packages/dom/package.json b/packages/dom/package.json index d597bfab5..e4a7bb0fb 100644 --- a/packages/dom/package.json +++ b/packages/dom/package.json @@ -1,6 +1,6 @@ { "name": "@percy/dom", - "version": "1.30.5", + "version": "1.31.0-alpha.0", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "latest" + "tag": "alpha" }, "main": "dist/bundle.js", "browser": "dist/bundle.js", diff --git a/packages/env/package.json b/packages/env/package.json index 590509b9e..987ad0216 100644 --- a/packages/env/package.json +++ b/packages/env/package.json @@ -1,6 +1,6 @@ { "name": "@percy/env", - "version": "1.30.5", + "version": "1.31.0-alpha.0", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "latest" + "tag": "alpha" }, "engines": { "node": ">=14" @@ -32,6 +32,6 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/logger": "1.30.5" + "@percy/logger": "1.31.0-alpha.0" } } diff --git a/packages/logger/package.json b/packages/logger/package.json index 99c84ad1a..cbd2aeb26 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -1,6 +1,6 @@ { "name": "@percy/logger", - "version": "1.30.5", + "version": "1.31.0-alpha.0", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "latest" + "tag": "alpha" }, "engines": { "node": ">=14" diff --git a/packages/sdk-utils/package.json b/packages/sdk-utils/package.json index 7ea153abd..3e5750997 100644 --- a/packages/sdk-utils/package.json +++ b/packages/sdk-utils/package.json @@ -1,6 +1,6 @@ { "name": "@percy/sdk-utils", - "version": "1.30.5", + "version": "1.31.0-alpha.0", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "latest" + "tag": "alpha" }, "engines": { "node": ">=14" diff --git a/packages/webdriver-utils/package.json b/packages/webdriver-utils/package.json index 70713a1ce..0ffcc2a49 100644 --- a/packages/webdriver-utils/package.json +++ b/packages/webdriver-utils/package.json @@ -1,6 +1,6 @@ { "name": "@percy/webdriver-utils", - "version": "1.30.5", + "version": "1.31.0-alpha.0", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "latest" + "tag": "alpha" }, "engines": { "node": ">=14" @@ -29,7 +29,7 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/config": "1.30.5", - "@percy/sdk-utils": "1.30.5" + "@percy/config": "1.31.0-alpha.0", + "@percy/sdk-utils": "1.31.0-alpha.0" } } From 0c55c4698fac1baaad4f5d5c6e59b36f31753eab Mon Sep 17 00:00:00 2001 From: amit3200 Date: Thu, 5 Dec 2024 21:56:24 +0530 Subject: [PATCH 06/12] :bookmark: v1.31.0-alpha.0 lerna.json --- lerna.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lerna.json b/lerna.json index e257b11f4..ccc9f2621 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "1.30.5", + "version": "1.31.0-alpha.0", "packages": [ "packages/*" ], From 5ee4f67688ad67078884484394adfe2c846d1de5 Mon Sep 17 00:00:00 2001 From: Amit Singh Sansoya Date: Fri, 20 Dec 2024 13:00:05 +0530 Subject: [PATCH 07/12] Adding Error Capturing on Finalize Builds (#1818) * Adding Error Capturing on Finalize Builds * :bookmark: v1.31.0-alpha.1 * :bookmark: v1.31.0-alpha.2 * Adding prodBuild param for scanner alt env (#1830) * Adding prodBuild param for scanner alt env * renaming config --------- Co-authored-by: rishigupta1599 <114384996+rishigupta1599@users.noreply.github.com> --- lerna.json | 2 +- packages/cli-app/package.json | 6 ++-- packages/cli-build/package.json | 4 +-- packages/cli-build/src/finalize.js | 7 +++-- 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/client/src/client.js | 3 +- packages/client/test/client.test.js | 45 +++++++++++++++++++++++++++ packages/config/package.json | 4 +-- packages/core/package.json | 12 +++---- packages/core/src/config.js | 4 +++ 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 ++-- 21 files changed, 104 insertions(+), 51 deletions(-) diff --git a/lerna.json b/lerna.json index ccc9f2621..2e5ebd9a5 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "1.31.0-alpha.0", + "version": "1.31.0-alpha.2", "packages": [ "packages/*" ], diff --git a/packages/cli-app/package.json b/packages/cli-app/package.json index eeda38b4f..4ce05f860 100644 --- a/packages/cli-app/package.json +++ b/packages/cli-app/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-app", - "version": "1.31.0-alpha.0", + "version": "1.31.0-alpha.2", "license": "MIT", "repository": { "type": "git", @@ -33,7 +33,7 @@ ] }, "dependencies": { - "@percy/cli-command": "1.31.0-alpha.0", - "@percy/cli-exec": "1.31.0-alpha.0" + "@percy/cli-command": "1.31.0-alpha.2", + "@percy/cli-exec": "1.31.0-alpha.2" } } diff --git a/packages/cli-build/package.json b/packages/cli-build/package.json index 6376224fd..660592bb4 100644 --- a/packages/cli-build/package.json +++ b/packages/cli-build/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-build", - "version": "1.31.0-alpha.0", + "version": "1.31.0-alpha.2", "license": "MIT", "repository": { "type": "git", @@ -33,6 +33,6 @@ ] }, "dependencies": { - "@percy/cli-command": "1.31.0-alpha.0" + "@percy/cli-command": "1.31.0-alpha.2" } } diff --git a/packages/cli-build/src/finalize.js b/packages/cli-build/src/finalize.js index 5c3f579bf..ef311314c 100644 --- a/packages/cli-build/src/finalize.js +++ b/packages/cli-build/src/finalize.js @@ -20,8 +20,11 @@ export const finalize = command('finalize', { // rely on the parallel nonce to cause the API to return the current running build for the nonce let { data: build } = await percy.client.createBuild({ cliStartTime: percy.cliStartTime }); - await percy.client.finalizeBuild(build.id, { all: true }); - + try { + await percy.client.finalizeBuild(build.id, { all: true }); + } catch (error) { + exit(1, 'Percy build failed during finalize', error.message); + } let { 'build-number': number, 'web-url': url } = build.attributes; log.info(`Finalized build #${number}: ${url}`); }); diff --git a/packages/cli-command/package.json b/packages/cli-command/package.json index abe4b8f2c..3f394b293 100644 --- a/packages/cli-command/package.json +++ b/packages/cli-command/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-command", - "version": "1.31.0-alpha.0", + "version": "1.31.0-alpha.2", "license": "MIT", "repository": { "type": "git", @@ -36,8 +36,8 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/config": "1.31.0-alpha.0", - "@percy/core": "1.31.0-alpha.0", - "@percy/logger": "1.31.0-alpha.0" + "@percy/config": "1.31.0-alpha.2", + "@percy/core": "1.31.0-alpha.2", + "@percy/logger": "1.31.0-alpha.2" } } diff --git a/packages/cli-config/package.json b/packages/cli-config/package.json index ec9608562..a42b7ecc2 100644 --- a/packages/cli-config/package.json +++ b/packages/cli-config/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-config", - "version": "1.31.0-alpha.0", + "version": "1.31.0-alpha.2", "license": "MIT", "repository": { "type": "git", @@ -33,6 +33,6 @@ ] }, "dependencies": { - "@percy/cli-command": "1.31.0-alpha.0" + "@percy/cli-command": "1.31.0-alpha.2" } } diff --git a/packages/cli-exec/package.json b/packages/cli-exec/package.json index 01a6277d8..6c097d02c 100644 --- a/packages/cli-exec/package.json +++ b/packages/cli-exec/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-exec", - "version": "1.31.0-alpha.0", + "version": "1.31.0-alpha.2", "license": "MIT", "repository": { "type": "git", @@ -33,8 +33,8 @@ ] }, "dependencies": { - "@percy/cli-command": "1.31.0-alpha.0", - "@percy/logger": "1.31.0-alpha.0", + "@percy/cli-command": "1.31.0-alpha.2", + "@percy/logger": "1.31.0-alpha.2", "cross-spawn": "^7.0.3", "which": "^2.0.2" } diff --git a/packages/cli-snapshot/package.json b/packages/cli-snapshot/package.json index e7b6db892..12e698d20 100644 --- a/packages/cli-snapshot/package.json +++ b/packages/cli-snapshot/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-snapshot", - "version": "1.31.0-alpha.0", + "version": "1.31.0-alpha.2", "license": "MIT", "repository": { "type": "git", @@ -33,7 +33,7 @@ ] }, "dependencies": { - "@percy/cli-command": "1.31.0-alpha.0", + "@percy/cli-command": "1.31.0-alpha.2", "yaml": "^2.0.0" } } diff --git a/packages/cli-upload/package.json b/packages/cli-upload/package.json index 7cd3d5564..d28810778 100644 --- a/packages/cli-upload/package.json +++ b/packages/cli-upload/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-upload", - "version": "1.31.0-alpha.0", + "version": "1.31.0-alpha.2", "license": "MIT", "repository": { "type": "git", @@ -33,7 +33,7 @@ ] }, "dependencies": { - "@percy/cli-command": "1.31.0-alpha.0", + "@percy/cli-command": "1.31.0-alpha.2", "fast-glob": "^3.2.11", "image-size": "^1.0.0" } diff --git a/packages/cli/package.json b/packages/cli/package.json index 1aa4ae555..99f37e76c 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli", - "version": "1.31.0-alpha.0", + "version": "1.31.0-alpha.2", "license": "MIT", "repository": { "type": "git", @@ -31,14 +31,14 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/cli-app": "1.31.0-alpha.0", - "@percy/cli-build": "1.31.0-alpha.0", - "@percy/cli-command": "1.31.0-alpha.0", - "@percy/cli-config": "1.31.0-alpha.0", - "@percy/cli-exec": "1.31.0-alpha.0", - "@percy/cli-snapshot": "1.31.0-alpha.0", - "@percy/cli-upload": "1.31.0-alpha.0", - "@percy/client": "1.31.0-alpha.0", - "@percy/logger": "1.31.0-alpha.0" + "@percy/cli-app": "1.31.0-alpha.2", + "@percy/cli-build": "1.31.0-alpha.2", + "@percy/cli-command": "1.31.0-alpha.2", + "@percy/cli-config": "1.31.0-alpha.2", + "@percy/cli-exec": "1.31.0-alpha.2", + "@percy/cli-snapshot": "1.31.0-alpha.2", + "@percy/cli-upload": "1.31.0-alpha.2", + "@percy/client": "1.31.0-alpha.2", + "@percy/logger": "1.31.0-alpha.2" } } diff --git a/packages/client/package.json b/packages/client/package.json index a626a07d9..28542a5aa 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "@percy/client", - "version": "1.31.0-alpha.0", + "version": "1.31.0-alpha.2", "license": "MIT", "repository": { "type": "git", @@ -33,8 +33,8 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/env": "1.31.0-alpha.0", - "@percy/logger": "1.31.0-alpha.0", + "@percy/env": "1.31.0-alpha.2", + "@percy/logger": "1.31.0-alpha.2", "pako": "^2.1.0" } } diff --git a/packages/client/src/client.js b/packages/client/src/client.js index 6e8beca41..e3a93fc91 100644 --- a/packages/client/src/client.js +++ b/packages/client/src/client.js @@ -172,7 +172,8 @@ export class PercyClient { partial: this.env.partial, tags: tagsArr, 'cli-start-time': cliStartTime, - source: source + source: source, + 'skip-base-build': this.config.percy?.skipBaseBuild }, relationships: { resources: { diff --git a/packages/client/test/client.test.js b/packages/client/test/client.test.js index c7299cfaa..5fd2564d7 100644 --- a/packages/client/test/client.test.js +++ b/packages/client/test/client.test.js @@ -150,6 +150,10 @@ describe('PercyClient', () => { describe('#createBuild()', () => { let cliStartTime = new Date().toISOString(); + beforeEach(() => { + delete process.env.PERCY_AUTO_ENABLED_GROUP_BUILD; + }); + it('creates a new build', async () => { await expectAsync(client.createBuild()).toBeResolvedTo({ data: { @@ -384,6 +388,47 @@ describe('PercyClient', () => { } })); }); + + it('creates a new build with skipBaseBuild config', async () => { + client = new PercyClient({ + token: 'PERCY_TOKEN', + config: { percy: { skipBaseBuild: true } } + }); + await expectAsync(client.createBuild({ projectType: 'web' })).toBeResolvedTo({ + data: { + id: '123', + attributes: { + 'build-number': 1, + 'web-url': 'https://percy.io/test/test/123' + } + } + }); + + expect(api.requests['/builds'][0].body.data) + .toEqual(jasmine.objectContaining({ + attributes: { + branch: client.env.git.branch, + type: 'web', + 'target-branch': client.env.target.branch, + 'target-commit-sha': client.env.target.commit, + 'commit-sha': client.env.git.sha, + 'commit-committed-at': client.env.git.committedAt, + 'commit-author-name': client.env.git.authorName, + 'commit-author-email': client.env.git.authorEmail, + 'commit-committer-name': client.env.git.committerName, + 'commit-committer-email': client.env.git.committerEmail, + 'commit-message': client.env.git.message, + 'pull-request-number': client.env.pullRequest, + 'parallel-nonce': client.env.parallel.nonce, + 'parallel-total-shards': client.env.parallel.total, + 'cli-start-time': null, + source: 'user_created', + partial: client.env.partial, + 'skip-base-build': true, + tags: [] + } + })); + }); }); describe('#getBuild()', () => { diff --git a/packages/config/package.json b/packages/config/package.json index 0be1053ae..6ecbdb646 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -1,6 +1,6 @@ { "name": "@percy/config", - "version": "1.31.0-alpha.0", + "version": "1.31.0-alpha.2", "license": "MIT", "repository": { "type": "git", @@ -38,7 +38,7 @@ "test:types": "tsd" }, "dependencies": { - "@percy/logger": "1.31.0-alpha.0", + "@percy/logger": "1.31.0-alpha.2", "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 b1cd2ff99..8227654b4 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@percy/core", - "version": "1.31.0-alpha.0", + "version": "1.31.0-alpha.2", "license": "MIT", "repository": { "type": "git", @@ -43,11 +43,11 @@ "test:types": "tsd" }, "dependencies": { - "@percy/client": "1.31.0-alpha.0", - "@percy/config": "1.31.0-alpha.0", - "@percy/dom": "1.31.0-alpha.0", - "@percy/logger": "1.31.0-alpha.0", - "@percy/webdriver-utils": "1.31.0-alpha.0", + "@percy/client": "1.31.0-alpha.2", + "@percy/config": "1.31.0-alpha.2", + "@percy/dom": "1.31.0-alpha.2", + "@percy/logger": "1.31.0-alpha.2", + "@percy/webdriver-utils": "1.31.0-alpha.2", "content-disposition": "^0.5.4", "cross-spawn": "^7.0.3", "extract-zip": "^2.0.1", diff --git a/packages/core/src/config.js b/packages/core/src/config.js index e0eae19e5..747bce2a0 100644 --- a/packages/core/src/config.js +++ b/packages/core/src/config.js @@ -16,6 +16,10 @@ export const configSchema = { }, labels: { type: 'string' + }, + skipBaseBuild: { + type: 'boolean', + default: false } } }, diff --git a/packages/dom/package.json b/packages/dom/package.json index e4a7bb0fb..398cc5c60 100644 --- a/packages/dom/package.json +++ b/packages/dom/package.json @@ -1,6 +1,6 @@ { "name": "@percy/dom", - "version": "1.31.0-alpha.0", + "version": "1.31.0-alpha.2", "license": "MIT", "repository": { "type": "git", diff --git a/packages/env/package.json b/packages/env/package.json index 987ad0216..3cef19f71 100644 --- a/packages/env/package.json +++ b/packages/env/package.json @@ -1,6 +1,6 @@ { "name": "@percy/env", - "version": "1.31.0-alpha.0", + "version": "1.31.0-alpha.2", "license": "MIT", "repository": { "type": "git", @@ -32,6 +32,6 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/logger": "1.31.0-alpha.0" + "@percy/logger": "1.31.0-alpha.2" } } diff --git a/packages/logger/package.json b/packages/logger/package.json index cbd2aeb26..a18f1c6d7 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -1,6 +1,6 @@ { "name": "@percy/logger", - "version": "1.31.0-alpha.0", + "version": "1.31.0-alpha.2", "license": "MIT", "repository": { "type": "git", diff --git a/packages/sdk-utils/package.json b/packages/sdk-utils/package.json index 3e5750997..2f082aa08 100644 --- a/packages/sdk-utils/package.json +++ b/packages/sdk-utils/package.json @@ -1,6 +1,6 @@ { "name": "@percy/sdk-utils", - "version": "1.31.0-alpha.0", + "version": "1.31.0-alpha.2", "license": "MIT", "repository": { "type": "git", diff --git a/packages/webdriver-utils/package.json b/packages/webdriver-utils/package.json index 0ffcc2a49..7d4dbfa7b 100644 --- a/packages/webdriver-utils/package.json +++ b/packages/webdriver-utils/package.json @@ -1,6 +1,6 @@ { "name": "@percy/webdriver-utils", - "version": "1.31.0-alpha.0", + "version": "1.31.0-alpha.2", "license": "MIT", "repository": { "type": "git", @@ -29,7 +29,7 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/config": "1.31.0-alpha.0", - "@percy/sdk-utils": "1.31.0-alpha.0" + "@percy/config": "1.31.0-alpha.2", + "@percy/sdk-utils": "1.31.0-alpha.2" } } From a273d1a90eb2acbec9ee58006549403587e3f377 Mon Sep 17 00:00:00 2001 From: amit3200 Date: Thu, 5 Dec 2024 21:56:24 +0530 Subject: [PATCH 08/12] :bookmark: v1.31.0-alpha.0 lerna.json --- .percy.yml | 22 ++++++++++++++++++++++ .percy.yml.copy | 46 ++++++++++++++++++++++++++++++++++++++++++++++ snapshots.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 110 insertions(+) create mode 100644 .percy.yml create mode 100644 .percy.yml.copy create mode 100644 snapshots.yml diff --git a/.percy.yml b/.percy.yml new file mode 100644 index 000000000..6c5f9a223 --- /dev/null +++ b/.percy.yml @@ -0,0 +1,22 @@ +version: 2 +percy: + useSystemProxy: false + skipBaseBuild: false +snapshot: + widths: + - 1280 + minHeight: 1024 + percyCSS: "" + enableJavaScript: false + cliEnableJavaScript: true + disableShadowDOM: false + responsiveSnapshotCapture: false +discovery: + # allowedHostnames: ["*"] + disallowedHostnames: [] + networkIdleTimeout: 100 + captureMockedServiceWorker: false + retry: false + launch-options: + args: + # - "--proxy-server=http://127.0.0.1:8228" \ No newline at end of file diff --git a/.percy.yml.copy b/.percy.yml.copy new file mode 100644 index 000000000..1fef77964 --- /dev/null +++ b/.percy.yml.copy @@ -0,0 +1,46 @@ +version: 2 +snapshot: + widths: + - 1152 + enableJavascript: true + cliEnableJavascript: true + # waitForTimeout: 1000 +# percyCSS: | +# h1 { +# background-color: blue !important +# } + # freeze-animated-image: true + # freeze-animated-image-options: + # freeze-image-by-selectors: ['*'] +# ignore-regions: +# ignore-region-selectors: ['h1'] +discovery: + # networkIdleTimeout: 750 + disableCache: true + cookies: + # odin_unrestricted_access: "0e0be4bc-9298-4422-b790-25f3ffe6740c" + launch-options: + args: + - "--proxy-server=http://127.0.0.1:8228" + # - "--disable-web-security" + # - '--headless' + # - '--no-sandbox' + # - '--disable-dev-shm-usage' + # - '--disable-gpu' + # - '--single-process' + # - '--disable-setuid-sandbox' + # timeout: 45000 + headless: true + allowed-hostnames: + disallowed-hostnames: + - recorder-cambodia-rica-redhead.trycloudflare.com + +# --------------------------- + +# version: 2 +# percy: +# defer-uploads: true +# discovery: +# networkIdleTimeout: 700 +# allowed-hostnames: +# - bugfix-th-renegbl-56815.th.qa.kfc.dev \ No newline at end of file diff --git a/snapshots.yml b/snapshots.yml new file mode 100644 index 000000000..8a30dab79 --- /dev/null +++ b/snapshots.yml @@ -0,0 +1,42 @@ +- name: alcon + url: https://example.com +# - name: https://in.pinterest.com/ +# url: https://in.pinterest.com/ +# - name: https://in.jbl.com/ +# url: https://in.jbl.com/ +# - name: https://github.com/ +# url: https://github.com/ +# - name: https://www.apple.com/ +# url: https://www.apple.com/ +# - name: https://www.ibm.com/in-en +# url: https://www.ibm.com/in-en + +# - name: lorem2 +# url: https://percy.io +# - name: lorem3 +# url: https://browserstack.com + # execute: + # afterResize: | + # document.querySelector('.swan-listbox-popover').click() + +# version: 2 +# snapshot: +# name: Percy_POC +# url: https://cwc-dona.iv.apps.lilly.com/signUp/complete +# widths: +# - 375 +# - 1280 +# enableJavascript: false +# discovery: +# networkIdleTimeout: 750 +# # cookies: +# # odin_unrestricted_access: "0e0be4bc-9298-4422-b790-25f3ffe6740c" +# # launch-options: +# # args: +# # - "--disable-web-security" +# # timeout: 30000 +# # headless: false +# # allowed-hostnames: +# # - "lucky8.stable-fe.nightking.dev" +# # - "images.ctfassets.net" + From 6a775be76e3f012f1775fa11bbda8ddc45e6c1aa Mon Sep 17 00:00:00 2001 From: rishigupta1599 Date: Fri, 20 Dec 2024 13:12:52 +0530 Subject: [PATCH 09/12] Removing unwanted files --- .percy.yml | 22 ---------------------- .percy.yml.copy | 46 ---------------------------------------------- snapshots.yml | 42 ------------------------------------------ 3 files changed, 110 deletions(-) delete mode 100644 .percy.yml delete mode 100644 .percy.yml.copy delete mode 100644 snapshots.yml diff --git a/.percy.yml b/.percy.yml deleted file mode 100644 index 6c5f9a223..000000000 --- a/.percy.yml +++ /dev/null @@ -1,22 +0,0 @@ -version: 2 -percy: - useSystemProxy: false - skipBaseBuild: false -snapshot: - widths: - - 1280 - minHeight: 1024 - percyCSS: "" - enableJavaScript: false - cliEnableJavaScript: true - disableShadowDOM: false - responsiveSnapshotCapture: false -discovery: - # allowedHostnames: ["*"] - disallowedHostnames: [] - networkIdleTimeout: 100 - captureMockedServiceWorker: false - retry: false - launch-options: - args: - # - "--proxy-server=http://127.0.0.1:8228" \ No newline at end of file diff --git a/.percy.yml.copy b/.percy.yml.copy deleted file mode 100644 index 1fef77964..000000000 --- a/.percy.yml.copy +++ /dev/null @@ -1,46 +0,0 @@ -version: 2 -snapshot: - widths: - - 1152 - enableJavascript: true - cliEnableJavascript: true - # waitForTimeout: 1000 -# percyCSS: | -# h1 { -# background-color: blue !important -# } - # freeze-animated-image: true - # freeze-animated-image-options: - # freeze-image-by-selectors: ['*'] -# ignore-regions: -# ignore-region-selectors: ['h1'] -discovery: - # networkIdleTimeout: 750 - disableCache: true - cookies: - # odin_unrestricted_access: "0e0be4bc-9298-4422-b790-25f3ffe6740c" - launch-options: - args: - - "--proxy-server=http://127.0.0.1:8228" - # - "--disable-web-security" - # - '--headless' - # - '--no-sandbox' - # - '--disable-dev-shm-usage' - # - '--disable-gpu' - # - '--single-process' - # - '--disable-setuid-sandbox' - # timeout: 45000 - headless: true - allowed-hostnames: - disallowed-hostnames: - - recorder-cambodia-rica-redhead.trycloudflare.com - -# --------------------------- - -# version: 2 -# percy: -# defer-uploads: true -# discovery: -# networkIdleTimeout: 700 -# allowed-hostnames: -# - bugfix-th-renegbl-56815.th.qa.kfc.dev \ No newline at end of file diff --git a/snapshots.yml b/snapshots.yml deleted file mode 100644 index 8a30dab79..000000000 --- a/snapshots.yml +++ /dev/null @@ -1,42 +0,0 @@ -- name: alcon - url: https://example.com -# - name: https://in.pinterest.com/ -# url: https://in.pinterest.com/ -# - name: https://in.jbl.com/ -# url: https://in.jbl.com/ -# - name: https://github.com/ -# url: https://github.com/ -# - name: https://www.apple.com/ -# url: https://www.apple.com/ -# - name: https://www.ibm.com/in-en -# url: https://www.ibm.com/in-en - -# - name: lorem2 -# url: https://percy.io -# - name: lorem3 -# url: https://browserstack.com - # execute: - # afterResize: | - # document.querySelector('.swan-listbox-popover').click() - -# version: 2 -# snapshot: -# name: Percy_POC -# url: https://cwc-dona.iv.apps.lilly.com/signUp/complete -# widths: -# - 375 -# - 1280 -# enableJavascript: false -# discovery: -# networkIdleTimeout: 750 -# # cookies: -# # odin_unrestricted_access: "0e0be4bc-9298-4422-b790-25f3ffe6740c" -# # launch-options: -# # args: -# # - "--disable-web-security" -# # timeout: 30000 -# # headless: false -# # allowed-hostnames: -# # - "lucky8.stable-fe.nightking.dev" -# # - "images.ctfassets.net" - From 14ae0b4319c1c2ae28729d56cba3b159e80386a8 Mon Sep 17 00:00:00 2001 From: rishigupta1599 Date: Fri, 20 Dec 2024 13:40:46 +0530 Subject: [PATCH 10/12] =?UTF-8?q?=F0=9F=94=96=20v1.31.0-alpha.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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/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 +++--- 17 files changed, 48 insertions(+), 48 deletions(-) diff --git a/lerna.json b/lerna.json index 2e5ebd9a5..a1fc25cc6 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "1.31.0-alpha.2", + "version": "1.31.0-alpha.3", "packages": [ "packages/*" ], diff --git a/packages/cli-app/package.json b/packages/cli-app/package.json index 4ce05f860..4dd027ab4 100644 --- a/packages/cli-app/package.json +++ b/packages/cli-app/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-app", - "version": "1.31.0-alpha.2", + "version": "1.31.0-alpha.3", "license": "MIT", "repository": { "type": "git", @@ -33,7 +33,7 @@ ] }, "dependencies": { - "@percy/cli-command": "1.31.0-alpha.2", - "@percy/cli-exec": "1.31.0-alpha.2" + "@percy/cli-command": "1.31.0-alpha.3", + "@percy/cli-exec": "1.31.0-alpha.3" } } diff --git a/packages/cli-build/package.json b/packages/cli-build/package.json index 660592bb4..4bd1fea9d 100644 --- a/packages/cli-build/package.json +++ b/packages/cli-build/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-build", - "version": "1.31.0-alpha.2", + "version": "1.31.0-alpha.3", "license": "MIT", "repository": { "type": "git", @@ -33,6 +33,6 @@ ] }, "dependencies": { - "@percy/cli-command": "1.31.0-alpha.2" + "@percy/cli-command": "1.31.0-alpha.3" } } diff --git a/packages/cli-command/package.json b/packages/cli-command/package.json index 3f394b293..9042b8907 100644 --- a/packages/cli-command/package.json +++ b/packages/cli-command/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-command", - "version": "1.31.0-alpha.2", + "version": "1.31.0-alpha.3", "license": "MIT", "repository": { "type": "git", @@ -36,8 +36,8 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/config": "1.31.0-alpha.2", - "@percy/core": "1.31.0-alpha.2", - "@percy/logger": "1.31.0-alpha.2" + "@percy/config": "1.31.0-alpha.3", + "@percy/core": "1.31.0-alpha.3", + "@percy/logger": "1.31.0-alpha.3" } } diff --git a/packages/cli-config/package.json b/packages/cli-config/package.json index a42b7ecc2..40ac92bab 100644 --- a/packages/cli-config/package.json +++ b/packages/cli-config/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-config", - "version": "1.31.0-alpha.2", + "version": "1.31.0-alpha.3", "license": "MIT", "repository": { "type": "git", @@ -33,6 +33,6 @@ ] }, "dependencies": { - "@percy/cli-command": "1.31.0-alpha.2" + "@percy/cli-command": "1.31.0-alpha.3" } } diff --git a/packages/cli-exec/package.json b/packages/cli-exec/package.json index 6c097d02c..6f89cc0a0 100644 --- a/packages/cli-exec/package.json +++ b/packages/cli-exec/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-exec", - "version": "1.31.0-alpha.2", + "version": "1.31.0-alpha.3", "license": "MIT", "repository": { "type": "git", @@ -33,8 +33,8 @@ ] }, "dependencies": { - "@percy/cli-command": "1.31.0-alpha.2", - "@percy/logger": "1.31.0-alpha.2", + "@percy/cli-command": "1.31.0-alpha.3", + "@percy/logger": "1.31.0-alpha.3", "cross-spawn": "^7.0.3", "which": "^2.0.2" } diff --git a/packages/cli-snapshot/package.json b/packages/cli-snapshot/package.json index 12e698d20..dc7ee5881 100644 --- a/packages/cli-snapshot/package.json +++ b/packages/cli-snapshot/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-snapshot", - "version": "1.31.0-alpha.2", + "version": "1.31.0-alpha.3", "license": "MIT", "repository": { "type": "git", @@ -33,7 +33,7 @@ ] }, "dependencies": { - "@percy/cli-command": "1.31.0-alpha.2", + "@percy/cli-command": "1.31.0-alpha.3", "yaml": "^2.0.0" } } diff --git a/packages/cli-upload/package.json b/packages/cli-upload/package.json index d28810778..b039b039c 100644 --- a/packages/cli-upload/package.json +++ b/packages/cli-upload/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-upload", - "version": "1.31.0-alpha.2", + "version": "1.31.0-alpha.3", "license": "MIT", "repository": { "type": "git", @@ -33,7 +33,7 @@ ] }, "dependencies": { - "@percy/cli-command": "1.31.0-alpha.2", + "@percy/cli-command": "1.31.0-alpha.3", "fast-glob": "^3.2.11", "image-size": "^1.0.0" } diff --git a/packages/cli/package.json b/packages/cli/package.json index 99f37e76c..ac8af74db 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli", - "version": "1.31.0-alpha.2", + "version": "1.31.0-alpha.3", "license": "MIT", "repository": { "type": "git", @@ -31,14 +31,14 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/cli-app": "1.31.0-alpha.2", - "@percy/cli-build": "1.31.0-alpha.2", - "@percy/cli-command": "1.31.0-alpha.2", - "@percy/cli-config": "1.31.0-alpha.2", - "@percy/cli-exec": "1.31.0-alpha.2", - "@percy/cli-snapshot": "1.31.0-alpha.2", - "@percy/cli-upload": "1.31.0-alpha.2", - "@percy/client": "1.31.0-alpha.2", - "@percy/logger": "1.31.0-alpha.2" + "@percy/cli-app": "1.31.0-alpha.3", + "@percy/cli-build": "1.31.0-alpha.3", + "@percy/cli-command": "1.31.0-alpha.3", + "@percy/cli-config": "1.31.0-alpha.3", + "@percy/cli-exec": "1.31.0-alpha.3", + "@percy/cli-snapshot": "1.31.0-alpha.3", + "@percy/cli-upload": "1.31.0-alpha.3", + "@percy/client": "1.31.0-alpha.3", + "@percy/logger": "1.31.0-alpha.3" } } diff --git a/packages/client/package.json b/packages/client/package.json index 28542a5aa..54f36c18f 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "@percy/client", - "version": "1.31.0-alpha.2", + "version": "1.31.0-alpha.3", "license": "MIT", "repository": { "type": "git", @@ -33,8 +33,8 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/env": "1.31.0-alpha.2", - "@percy/logger": "1.31.0-alpha.2", + "@percy/env": "1.31.0-alpha.3", + "@percy/logger": "1.31.0-alpha.3", "pako": "^2.1.0" } } diff --git a/packages/config/package.json b/packages/config/package.json index 6ecbdb646..f7229ce79 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -1,6 +1,6 @@ { "name": "@percy/config", - "version": "1.31.0-alpha.2", + "version": "1.31.0-alpha.3", "license": "MIT", "repository": { "type": "git", @@ -38,7 +38,7 @@ "test:types": "tsd" }, "dependencies": { - "@percy/logger": "1.31.0-alpha.2", + "@percy/logger": "1.31.0-alpha.3", "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 8227654b4..367f5e3c2 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@percy/core", - "version": "1.31.0-alpha.2", + "version": "1.31.0-alpha.3", "license": "MIT", "repository": { "type": "git", @@ -43,11 +43,11 @@ "test:types": "tsd" }, "dependencies": { - "@percy/client": "1.31.0-alpha.2", - "@percy/config": "1.31.0-alpha.2", - "@percy/dom": "1.31.0-alpha.2", - "@percy/logger": "1.31.0-alpha.2", - "@percy/webdriver-utils": "1.31.0-alpha.2", + "@percy/client": "1.31.0-alpha.3", + "@percy/config": "1.31.0-alpha.3", + "@percy/dom": "1.31.0-alpha.3", + "@percy/logger": "1.31.0-alpha.3", + "@percy/webdriver-utils": "1.31.0-alpha.3", "content-disposition": "^0.5.4", "cross-spawn": "^7.0.3", "extract-zip": "^2.0.1", diff --git a/packages/dom/package.json b/packages/dom/package.json index 398cc5c60..6bfd85751 100644 --- a/packages/dom/package.json +++ b/packages/dom/package.json @@ -1,6 +1,6 @@ { "name": "@percy/dom", - "version": "1.31.0-alpha.2", + "version": "1.31.0-alpha.3", "license": "MIT", "repository": { "type": "git", diff --git a/packages/env/package.json b/packages/env/package.json index 3cef19f71..c9848baa9 100644 --- a/packages/env/package.json +++ b/packages/env/package.json @@ -1,6 +1,6 @@ { "name": "@percy/env", - "version": "1.31.0-alpha.2", + "version": "1.31.0-alpha.3", "license": "MIT", "repository": { "type": "git", @@ -32,6 +32,6 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/logger": "1.31.0-alpha.2" + "@percy/logger": "1.31.0-alpha.3" } } diff --git a/packages/logger/package.json b/packages/logger/package.json index a18f1c6d7..6cf74f9ca 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -1,6 +1,6 @@ { "name": "@percy/logger", - "version": "1.31.0-alpha.2", + "version": "1.31.0-alpha.3", "license": "MIT", "repository": { "type": "git", diff --git a/packages/sdk-utils/package.json b/packages/sdk-utils/package.json index 2f082aa08..b09c459e8 100644 --- a/packages/sdk-utils/package.json +++ b/packages/sdk-utils/package.json @@ -1,6 +1,6 @@ { "name": "@percy/sdk-utils", - "version": "1.31.0-alpha.2", + "version": "1.31.0-alpha.3", "license": "MIT", "repository": { "type": "git", diff --git a/packages/webdriver-utils/package.json b/packages/webdriver-utils/package.json index 7d4dbfa7b..3aae63705 100644 --- a/packages/webdriver-utils/package.json +++ b/packages/webdriver-utils/package.json @@ -1,6 +1,6 @@ { "name": "@percy/webdriver-utils", - "version": "1.31.0-alpha.2", + "version": "1.31.0-alpha.3", "license": "MIT", "repository": { "type": "git", @@ -29,7 +29,7 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/config": "1.31.0-alpha.2", - "@percy/sdk-utils": "1.31.0-alpha.2" + "@percy/config": "1.31.0-alpha.3", + "@percy/sdk-utils": "1.31.0-alpha.3" } } From b93247cd0e5c0c272ab10b970faa5cb8e0d07f7f Mon Sep 17 00:00:00 2001 From: Chinmay Maheshwari Date: Fri, 20 Dec 2024 17:02:16 +0530 Subject: [PATCH 11/12] Add tests + fix concurrency --- packages/cli-build/test/finalize.test.js | 10 ++++++++++ packages/core/src/percy.js | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/cli-build/test/finalize.test.js b/packages/cli-build/test/finalize.test.js index d25fe1e4a..34a257726 100644 --- a/packages/cli-build/test/finalize.test.js +++ b/packages/cli-build/test/finalize.test.js @@ -1,4 +1,5 @@ import { logger, setupTest } from '@percy/cli-command/test/helpers'; +import api from '@percy/client/test/helpers'; import { finalize } from '@percy/cli-build'; describe('percy build:finalize', () => { @@ -50,4 +51,13 @@ describe('percy build:finalize', () => { '[percy] Finalized build #1: https://percy.io/test/test/123' ]); }); + + it('should reject promise if finalize fails', async () => { + process.env.PERCY_TOKEN = '<>'; + api.reply('/builds/123/finalize?all-shards=true', () => [500, new Error('Failed')]); + + await expectAsync(finalize()).toBeRejected(); + + expect(logger.stderr).toEqual(['[percy] Error: Percy build failed during finalize']); + }); }); diff --git a/packages/core/src/percy.js b/packages/core/src/percy.js index 61268a558..33316b811 100644 --- a/packages/core/src/percy.js +++ b/packages/core/src/percy.js @@ -157,7 +157,7 @@ export class Percy { const concurrency = this.config.discovery.concurrency; const snapshotConcurrency = parseInt(process.env.PERCY_SNAPSHOT_UPLOAD_CONCURRENCY) || concurrency; this.#discovery.set({ concurrency }); - this.#snapshots.set({ snapshotConcurrency }); + this.#snapshots.set({ concurrency: snapshotConcurrency }); return this.config; } From 2b3467d06a051f48fb86ed018c89c42421a12453 Mon Sep 17 00:00:00 2001 From: Chinmay Maheshwari Date: Fri, 20 Dec 2024 17:14:02 +0530 Subject: [PATCH 12/12] Undo package json changes --- lerna.json | 2 +- packages/cli-app/package.json | 8 ++++---- packages/cli-build/package.json | 6 +++--- packages/cli-command/package.json | 10 +++++----- packages/cli-config/package.json | 6 +++--- packages/cli-exec/package.json | 8 ++++---- packages/cli-snapshot/package.json | 6 +++--- packages/cli-upload/package.json | 6 +++--- packages/cli/package.json | 22 +++++++++++----------- packages/client/package.json | 8 ++++---- packages/config/package.json | 6 +++--- packages/core/package.json | 14 +++++++------- packages/dom/package.json | 4 ++-- packages/env/package.json | 6 +++--- packages/logger/package.json | 4 ++-- packages/sdk-utils/package.json | 4 ++-- packages/webdriver-utils/package.json | 8 ++++---- 17 files changed, 64 insertions(+), 64 deletions(-) diff --git a/lerna.json b/lerna.json index a1fc25cc6..e257b11f4 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "1.31.0-alpha.3", + "version": "1.30.5", "packages": [ "packages/*" ], diff --git a/packages/cli-app/package.json b/packages/cli-app/package.json index 4dd027ab4..bd3526de1 100644 --- a/packages/cli-app/package.json +++ b/packages/cli-app/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-app", - "version": "1.31.0-alpha.3", + "version": "1.30.5", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "latest" }, "engines": { "node": ">=14" @@ -33,7 +33,7 @@ ] }, "dependencies": { - "@percy/cli-command": "1.31.0-alpha.3", - "@percy/cli-exec": "1.31.0-alpha.3" + "@percy/cli-command": "1.30.5", + "@percy/cli-exec": "1.30.5" } } diff --git a/packages/cli-build/package.json b/packages/cli-build/package.json index 4bd1fea9d..c69c35b41 100644 --- a/packages/cli-build/package.json +++ b/packages/cli-build/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-build", - "version": "1.31.0-alpha.3", + "version": "1.30.5", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "latest" }, "engines": { "node": ">=14" @@ -33,6 +33,6 @@ ] }, "dependencies": { - "@percy/cli-command": "1.31.0-alpha.3" + "@percy/cli-command": "1.30.5" } } diff --git a/packages/cli-command/package.json b/packages/cli-command/package.json index 9042b8907..45330f4bb 100644 --- a/packages/cli-command/package.json +++ b/packages/cli-command/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-command", - "version": "1.31.0-alpha.3", + "version": "1.30.5", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "latest" }, "files": [ "dist", @@ -36,8 +36,8 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/config": "1.31.0-alpha.3", - "@percy/core": "1.31.0-alpha.3", - "@percy/logger": "1.31.0-alpha.3" + "@percy/config": "1.30.5", + "@percy/core": "1.30.5", + "@percy/logger": "1.30.5" } } diff --git a/packages/cli-config/package.json b/packages/cli-config/package.json index 40ac92bab..32d079abc 100644 --- a/packages/cli-config/package.json +++ b/packages/cli-config/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-config", - "version": "1.31.0-alpha.3", + "version": "1.30.5", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "latest" }, "engines": { "node": ">=14" @@ -33,6 +33,6 @@ ] }, "dependencies": { - "@percy/cli-command": "1.31.0-alpha.3" + "@percy/cli-command": "1.30.5" } } diff --git a/packages/cli-exec/package.json b/packages/cli-exec/package.json index 6f89cc0a0..8b907c6eb 100644 --- a/packages/cli-exec/package.json +++ b/packages/cli-exec/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-exec", - "version": "1.31.0-alpha.3", + "version": "1.30.5", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "latest" }, "engines": { "node": ">=14" @@ -33,8 +33,8 @@ ] }, "dependencies": { - "@percy/cli-command": "1.31.0-alpha.3", - "@percy/logger": "1.31.0-alpha.3", + "@percy/cli-command": "1.30.5", + "@percy/logger": "1.30.5", "cross-spawn": "^7.0.3", "which": "^2.0.2" } diff --git a/packages/cli-snapshot/package.json b/packages/cli-snapshot/package.json index dc7ee5881..6a23edbc8 100644 --- a/packages/cli-snapshot/package.json +++ b/packages/cli-snapshot/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-snapshot", - "version": "1.31.0-alpha.3", + "version": "1.30.5", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "latest" }, "engines": { "node": ">=14" @@ -33,7 +33,7 @@ ] }, "dependencies": { - "@percy/cli-command": "1.31.0-alpha.3", + "@percy/cli-command": "1.30.5", "yaml": "^2.0.0" } } diff --git a/packages/cli-upload/package.json b/packages/cli-upload/package.json index b039b039c..3d8e0c0e5 100644 --- a/packages/cli-upload/package.json +++ b/packages/cli-upload/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli-upload", - "version": "1.31.0-alpha.3", + "version": "1.30.5", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "latest" }, "engines": { "node": ">=14" @@ -33,7 +33,7 @@ ] }, "dependencies": { - "@percy/cli-command": "1.31.0-alpha.3", + "@percy/cli-command": "1.30.5", "fast-glob": "^3.2.11", "image-size": "^1.0.0" } diff --git a/packages/cli/package.json b/packages/cli/package.json index ac8af74db..a600408ac 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@percy/cli", - "version": "1.31.0-alpha.3", + "version": "1.30.5", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "latest" }, "files": [ "bin", @@ -31,14 +31,14 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/cli-app": "1.31.0-alpha.3", - "@percy/cli-build": "1.31.0-alpha.3", - "@percy/cli-command": "1.31.0-alpha.3", - "@percy/cli-config": "1.31.0-alpha.3", - "@percy/cli-exec": "1.31.0-alpha.3", - "@percy/cli-snapshot": "1.31.0-alpha.3", - "@percy/cli-upload": "1.31.0-alpha.3", - "@percy/client": "1.31.0-alpha.3", - "@percy/logger": "1.31.0-alpha.3" + "@percy/cli-app": "1.30.5", + "@percy/cli-build": "1.30.5", + "@percy/cli-command": "1.30.5", + "@percy/cli-config": "1.30.5", + "@percy/cli-exec": "1.30.5", + "@percy/cli-snapshot": "1.30.5", + "@percy/cli-upload": "1.30.5", + "@percy/client": "1.30.5", + "@percy/logger": "1.30.5" } } diff --git a/packages/client/package.json b/packages/client/package.json index 54f36c18f..7fa745107 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "@percy/client", - "version": "1.31.0-alpha.3", + "version": "1.30.5", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "latest" }, "engines": { "node": ">=14" @@ -33,8 +33,8 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/env": "1.31.0-alpha.3", - "@percy/logger": "1.31.0-alpha.3", + "@percy/env": "1.30.5", + "@percy/logger": "1.30.5", "pako": "^2.1.0" } } diff --git a/packages/config/package.json b/packages/config/package.json index f7229ce79..00f124025 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -1,6 +1,6 @@ { "name": "@percy/config", - "version": "1.31.0-alpha.3", + "version": "1.30.5", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "latest" }, "engines": { "node": ">=14" @@ -38,7 +38,7 @@ "test:types": "tsd" }, "dependencies": { - "@percy/logger": "1.31.0-alpha.3", + "@percy/logger": "1.30.5", "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 367f5e3c2..1411abbd6 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@percy/core", - "version": "1.31.0-alpha.3", + "version": "1.30.5", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "latest" }, "engines": { "node": ">=14" @@ -43,11 +43,11 @@ "test:types": "tsd" }, "dependencies": { - "@percy/client": "1.31.0-alpha.3", - "@percy/config": "1.31.0-alpha.3", - "@percy/dom": "1.31.0-alpha.3", - "@percy/logger": "1.31.0-alpha.3", - "@percy/webdriver-utils": "1.31.0-alpha.3", + "@percy/client": "1.30.5", + "@percy/config": "1.30.5", + "@percy/dom": "1.30.5", + "@percy/logger": "1.30.5", + "@percy/webdriver-utils": "1.30.5", "content-disposition": "^0.5.4", "cross-spawn": "^7.0.3", "extract-zip": "^2.0.1", diff --git a/packages/dom/package.json b/packages/dom/package.json index 6bfd85751..d597bfab5 100644 --- a/packages/dom/package.json +++ b/packages/dom/package.json @@ -1,6 +1,6 @@ { "name": "@percy/dom", - "version": "1.31.0-alpha.3", + "version": "1.30.5", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "latest" }, "main": "dist/bundle.js", "browser": "dist/bundle.js", diff --git a/packages/env/package.json b/packages/env/package.json index c9848baa9..590509b9e 100644 --- a/packages/env/package.json +++ b/packages/env/package.json @@ -1,6 +1,6 @@ { "name": "@percy/env", - "version": "1.31.0-alpha.3", + "version": "1.30.5", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "latest" }, "engines": { "node": ">=14" @@ -32,6 +32,6 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/logger": "1.31.0-alpha.3" + "@percy/logger": "1.30.5" } } diff --git a/packages/logger/package.json b/packages/logger/package.json index 6cf74f9ca..99c84ad1a 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -1,6 +1,6 @@ { "name": "@percy/logger", - "version": "1.31.0-alpha.3", + "version": "1.30.5", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "latest" }, "engines": { "node": ">=14" diff --git a/packages/sdk-utils/package.json b/packages/sdk-utils/package.json index b09c459e8..7ea153abd 100644 --- a/packages/sdk-utils/package.json +++ b/packages/sdk-utils/package.json @@ -1,6 +1,6 @@ { "name": "@percy/sdk-utils", - "version": "1.31.0-alpha.3", + "version": "1.30.5", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "latest" }, "engines": { "node": ">=14" diff --git a/packages/webdriver-utils/package.json b/packages/webdriver-utils/package.json index 3aae63705..70713a1ce 100644 --- a/packages/webdriver-utils/package.json +++ b/packages/webdriver-utils/package.json @@ -1,6 +1,6 @@ { "name": "@percy/webdriver-utils", - "version": "1.31.0-alpha.3", + "version": "1.30.5", "license": "MIT", "repository": { "type": "git", @@ -9,7 +9,7 @@ }, "publishConfig": { "access": "public", - "tag": "alpha" + "tag": "latest" }, "engines": { "node": ">=14" @@ -29,7 +29,7 @@ "test:coverage": "yarn test --coverage" }, "dependencies": { - "@percy/config": "1.31.0-alpha.3", - "@percy/sdk-utils": "1.31.0-alpha.3" + "@percy/config": "1.30.5", + "@percy/sdk-utils": "1.30.5" } }