From 0c6a8a0e4a6b2db1651c3feed4111e114dfdfd67 Mon Sep 17 00:00:00 2001 From: Howard Braham Date: Tue, 4 Apr 2023 17:17:31 -0400 Subject: [PATCH 01/12] Experimenting with a shallow git clone for CircleCI --- .circleci/config.yml | 176 ++++++++++++++++++++++++++++++++----------- 1 file changed, 132 insertions(+), 44 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 68a1c199a49b..55a690a9ebe0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -234,7 +234,9 @@ jobs: trigger-beta-build: executor: node-browsers-medium-plus steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - when: @@ -263,7 +265,9 @@ jobs: create_release_pull_request: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -282,7 +286,9 @@ jobs: prep-deps: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - restore_cache: keys: # First try to get the specific cache for the checksum of the yarn.lock file. @@ -332,7 +338,9 @@ jobs: validate-lavamoat-config: executor: node-browsers-medium-plus steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -347,7 +355,9 @@ jobs: prep-build: executor: node-browsers-medium-plus steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - when: @@ -381,7 +391,9 @@ jobs: prep-build-desktop: executor: node-browsers-medium-plus steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -405,7 +417,9 @@ jobs: prep-build-flask: executor: node-browsers-medium-plus steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - when: @@ -445,7 +459,9 @@ jobs: prep-build-test-flask: executor: node-browsers-medium-plus steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -466,7 +482,9 @@ jobs: prep-build-test-mv3: executor: node-browsers-medium-plus steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -487,7 +505,9 @@ jobs: prep-build-test: executor: node-browsers-medium-plus steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -508,7 +528,9 @@ jobs: prep-build-storybook: executor: node-browsers-medium-plus steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -522,7 +544,9 @@ jobs: prep-build-ts-migration-dashboard: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -536,7 +560,9 @@ jobs: test-yarn-dedupe: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -546,7 +572,9 @@ jobs: test-lint: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -559,7 +587,9 @@ jobs: test-storybook: executor: node-browsers-medium-plus steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -581,7 +611,9 @@ jobs: test-lint-lockfile: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -591,7 +623,9 @@ jobs: test-lint-changelog: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - when: @@ -617,7 +651,9 @@ jobs: test-deps-audit: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -627,7 +663,9 @@ jobs: test-deps-depcheck: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -638,7 +676,9 @@ jobs: executor: node-browsers parallelism: 8 steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -675,7 +715,9 @@ jobs: executor: node-browsers parallelism: 8 steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -703,7 +745,9 @@ jobs: executor: node-browsers parallelism: 4 steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - run: name: Install Firefox command: ./.circleci/scripts/firefox-install.sh @@ -740,7 +784,9 @@ jobs: executor: node-browsers parallelism: 4 steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -777,7 +823,9 @@ jobs: executor: node-browsers-medium-plus parallelism: 8 steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - run: name: Install Firefox command: ./.circleci/scripts/firefox-install.sh @@ -813,7 +861,9 @@ jobs: benchmark: executor: node-browsers-medium-plus steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -839,7 +889,9 @@ jobs: user-actions-benchmark: executor: node-browsers-medium-plus steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -865,7 +917,9 @@ jobs: stats-module-load-init: executor: node-browsers-medium-plus steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -905,7 +959,9 @@ jobs: job-publish-prerelease: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -962,7 +1018,9 @@ jobs: job-publish-release: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -982,7 +1040,9 @@ jobs: - add_ssh_keys: fingerprints: - '3d:49:29:f4:b2:e8:ea:af:d1:32:eb:2a:fc:15:85:d8' - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -997,7 +1057,9 @@ jobs: - add_ssh_keys: fingerprints: - '8b:21:e3:20:7c:c9:db:82:74:2d:86:d6:11:a7:2f:49' - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1011,7 +1073,9 @@ jobs: test-unit-mocha: executor: node-browsers-medium-plus steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1026,7 +1090,9 @@ jobs: test-unit-jest-development: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1043,7 +1109,9 @@ jobs: executor: node-browsers-medium-plus parallelism: 12 steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1059,7 +1127,9 @@ jobs: upload-and-validate-coverage: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - codecov/upload @@ -1074,7 +1144,9 @@ jobs: test-unit-global: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1084,7 +1156,9 @@ jobs: validate-source-maps: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1094,7 +1168,9 @@ jobs: validate-source-maps-beta: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1105,7 +1181,9 @@ jobs: validate-source-maps-desktop: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1121,7 +1199,9 @@ jobs: validate-source-maps-flask: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1137,7 +1217,9 @@ jobs: test-mozilla-lint: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1147,7 +1229,9 @@ jobs: test-mozilla-lint-beta: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1158,7 +1242,9 @@ jobs: test-mozilla-lint-desktop: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1174,7 +1260,9 @@ jobs: test-mozilla-lint-flask: executor: node-browsers steps: - - checkout + - run: + name: Shallow git clone + command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: From ade06f7d7f4691184abc5bee269a81a07d5fa64d Mon Sep 17 00:00:00 2001 From: Howard Braham Date: Thu, 6 Apr 2023 15:02:05 -0400 Subject: [PATCH 02/12] job-publish-prerelease needs the git history --- .circleci/config.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 55a690a9ebe0..46bf6ed5e894 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -959,9 +959,7 @@ jobs: job-publish-prerelease: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + - checkout - attach_workspace: at: . - run: From 4cba4d373d9c69a496b8cb2a379214e46ab76d42 Mon Sep 17 00:00:00 2001 From: Howard Braham Date: Wed, 12 Apr 2023 01:37:59 -0400 Subject: [PATCH 03/12] Trying "${CIRCLE_REPOSITORY_URL}" Co-authored-by: Mark Stacey --- .circleci/config.yml | 86 ++++++++++++++++++++++---------------------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 46bf6ed5e894..8ec22a865d4f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -236,7 +236,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - when: @@ -267,7 +267,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -288,7 +288,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - restore_cache: keys: # First try to get the specific cache for the checksum of the yarn.lock file. @@ -340,7 +340,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -357,7 +357,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - when: @@ -393,7 +393,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -419,7 +419,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - when: @@ -461,7 +461,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -484,7 +484,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -507,7 +507,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -530,7 +530,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -546,7 +546,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -562,7 +562,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -574,7 +574,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -589,7 +589,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -613,7 +613,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -625,7 +625,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - when: @@ -653,7 +653,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -665,7 +665,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -678,7 +678,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -717,7 +717,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -747,7 +747,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - run: name: Install Firefox command: ./.circleci/scripts/firefox-install.sh @@ -786,7 +786,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -825,7 +825,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - run: name: Install Firefox command: ./.circleci/scripts/firefox-install.sh @@ -863,7 +863,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -891,7 +891,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -919,7 +919,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -1018,7 +1018,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1040,7 +1040,7 @@ jobs: - '3d:49:29:f4:b2:e8:ea:af:d1:32:eb:2a:fc:15:85:d8' - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1057,7 +1057,7 @@ jobs: - '8b:21:e3:20:7c:c9:db:82:74:2d:86:d6:11:a7:2f:49' - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1073,7 +1073,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1090,7 +1090,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1109,7 +1109,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1127,7 +1127,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - codecov/upload @@ -1144,7 +1144,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1156,7 +1156,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1168,7 +1168,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1181,7 +1181,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1199,7 +1199,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1217,7 +1217,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1229,7 +1229,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1242,7 +1242,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1260,7 +1260,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 https://github.com/MetaMask/metamask-extension --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: From 782863edcdb45fcd3ee788e759c0a488fd3654ba Mon Sep 17 00:00:00 2001 From: Howard Braham Date: Wed, 12 Apr 2023 01:40:47 -0400 Subject: [PATCH 04/12] Trying "$CIRCLE_REPOSITORY_URL" --- .circleci/config.yml | 86 ++++++++++++++++++++++---------------------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8ec22a865d4f..a4d686c627cd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -236,7 +236,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - when: @@ -267,7 +267,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -288,7 +288,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - restore_cache: keys: # First try to get the specific cache for the checksum of the yarn.lock file. @@ -340,7 +340,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -357,7 +357,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - when: @@ -393,7 +393,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -419,7 +419,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - when: @@ -461,7 +461,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -484,7 +484,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -507,7 +507,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -530,7 +530,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -546,7 +546,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -562,7 +562,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -574,7 +574,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -589,7 +589,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -613,7 +613,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -625,7 +625,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - when: @@ -653,7 +653,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -665,7 +665,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -678,7 +678,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -717,7 +717,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -747,7 +747,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - run: name: Install Firefox command: ./.circleci/scripts/firefox-install.sh @@ -786,7 +786,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -825,7 +825,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - run: name: Install Firefox command: ./.circleci/scripts/firefox-install.sh @@ -863,7 +863,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -891,7 +891,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -919,7 +919,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -1018,7 +1018,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1040,7 +1040,7 @@ jobs: - '3d:49:29:f4:b2:e8:ea:af:d1:32:eb:2a:fc:15:85:d8' - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1057,7 +1057,7 @@ jobs: - '8b:21:e3:20:7c:c9:db:82:74:2d:86:d6:11:a7:2f:49' - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1073,7 +1073,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1090,7 +1090,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1109,7 +1109,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1127,7 +1127,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - codecov/upload @@ -1144,7 +1144,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1156,7 +1156,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1168,7 +1168,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1181,7 +1181,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1199,7 +1199,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1217,7 +1217,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1229,7 +1229,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1242,7 +1242,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: @@ -1260,7 +1260,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "${CIRCLE_REPOSITORY_URL}" --branch "$CIRCLE_BRANCH" . + command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - attach_workspace: at: . - run: From d02371daccfa237031c958f2867fcc793d5b05db Mon Sep 17 00:00:00 2001 From: Howard Braham Date: Wed, 12 Apr 2023 10:10:28 -0700 Subject: [PATCH 05/12] echo "$CIRCLE_REPOSITORY_URL" --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a4d686c627cd..87551e3fb6b2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -288,7 +288,7 @@ jobs: steps: - run: name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + command: echo "$CIRCLE_REPOSITORY_URL" && git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - restore_cache: keys: # First try to get the specific cache for the checksum of the yarn.lock file. From 66611034376127f17d9d19141ae2c09ab2ed8f31 Mon Sep 17 00:00:00 2001 From: Howard Braham Date: Wed, 12 Apr 2023 10:14:15 -0700 Subject: [PATCH 06/12] ssh-keyscan --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 87551e3fb6b2..f56932de5e75 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -288,7 +288,7 @@ jobs: steps: - run: name: Shallow git clone - command: echo "$CIRCLE_REPOSITORY_URL" && git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + command: echo "$CIRCLE_REPOSITORY_URL" && ssh-keyscan github.com >> ~/.ssh/known_hosts && git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . - restore_cache: keys: # First try to get the specific cache for the checksum of the yarn.lock file. From 9d7834ba201f11bffd186a7f33880c27c8fb2702 Mon Sep 17 00:00:00 2001 From: Howard Braham Date: Thu, 13 Apr 2023 13:09:02 -0700 Subject: [PATCH 07/12] trying an orb --- .circleci/config.yml | 173 +++++++++++-------------------------------- 1 file changed, 44 insertions(+), 129 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f56932de5e75..ccc3c94672d4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,6 +17,7 @@ executors: orbs: gh: circleci/github-cli@2.0 codecov: codecov/codecov@3.2.2 + git-shallow-clone: guitarrapc/git-shallow-clone@2.5.0 rc_branch_only: &rc_branch_only filters: @@ -234,9 +235,7 @@ jobs: trigger-beta-build: executor: node-browsers-medium-plus steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - when: @@ -265,9 +264,7 @@ jobs: create_release_pull_request: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -286,9 +283,7 @@ jobs: prep-deps: executor: node-browsers steps: - - run: - name: Shallow git clone - command: echo "$CIRCLE_REPOSITORY_URL" && ssh-keyscan github.com >> ~/.ssh/known_hosts && git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - restore_cache: keys: # First try to get the specific cache for the checksum of the yarn.lock file. @@ -338,9 +333,7 @@ jobs: validate-lavamoat-config: executor: node-browsers-medium-plus steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -355,9 +348,7 @@ jobs: prep-build: executor: node-browsers-medium-plus steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - when: @@ -391,9 +382,7 @@ jobs: prep-build-desktop: executor: node-browsers-medium-plus steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -417,9 +406,7 @@ jobs: prep-build-flask: executor: node-browsers-medium-plus steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - when: @@ -459,9 +446,7 @@ jobs: prep-build-test-flask: executor: node-browsers-medium-plus steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -482,9 +467,7 @@ jobs: prep-build-test-mv3: executor: node-browsers-medium-plus steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -505,9 +488,7 @@ jobs: prep-build-test: executor: node-browsers-medium-plus steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -528,9 +509,7 @@ jobs: prep-build-storybook: executor: node-browsers-medium-plus steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -544,9 +523,7 @@ jobs: prep-build-ts-migration-dashboard: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -560,9 +537,7 @@ jobs: test-yarn-dedupe: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -572,9 +547,7 @@ jobs: test-lint: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -587,9 +560,7 @@ jobs: test-storybook: executor: node-browsers-medium-plus steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -611,9 +582,7 @@ jobs: test-lint-lockfile: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -623,9 +592,7 @@ jobs: test-lint-changelog: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - when: @@ -651,9 +618,7 @@ jobs: test-deps-audit: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -663,9 +628,7 @@ jobs: test-deps-depcheck: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -676,9 +639,7 @@ jobs: executor: node-browsers parallelism: 8 steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -715,9 +676,7 @@ jobs: executor: node-browsers parallelism: 8 steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -745,9 +704,7 @@ jobs: executor: node-browsers parallelism: 4 steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - run: name: Install Firefox command: ./.circleci/scripts/firefox-install.sh @@ -784,9 +741,7 @@ jobs: executor: node-browsers parallelism: 4 steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -823,9 +778,7 @@ jobs: executor: node-browsers-medium-plus parallelism: 8 steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - run: name: Install Firefox command: ./.circleci/scripts/firefox-install.sh @@ -861,9 +814,7 @@ jobs: benchmark: executor: node-browsers-medium-plus steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -889,9 +840,7 @@ jobs: user-actions-benchmark: executor: node-browsers-medium-plus steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -917,9 +866,7 @@ jobs: stats-module-load-init: executor: node-browsers-medium-plus steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -1016,9 +963,7 @@ jobs: job-publish-release: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -1038,9 +983,7 @@ jobs: - add_ssh_keys: fingerprints: - '3d:49:29:f4:b2:e8:ea:af:d1:32:eb:2a:fc:15:85:d8' - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -1055,9 +998,7 @@ jobs: - add_ssh_keys: fingerprints: - '8b:21:e3:20:7c:c9:db:82:74:2d:86:d6:11:a7:2f:49' - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -1071,9 +1012,7 @@ jobs: test-unit-mocha: executor: node-browsers-medium-plus steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -1088,9 +1027,7 @@ jobs: test-unit-jest-development: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -1107,9 +1044,7 @@ jobs: executor: node-browsers-medium-plus parallelism: 12 steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -1125,9 +1060,7 @@ jobs: upload-and-validate-coverage: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - codecov/upload @@ -1142,9 +1075,7 @@ jobs: test-unit-global: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -1154,9 +1085,7 @@ jobs: validate-source-maps: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -1166,9 +1095,7 @@ jobs: validate-source-maps-beta: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -1179,9 +1106,7 @@ jobs: validate-source-maps-desktop: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -1197,9 +1122,7 @@ jobs: validate-source-maps-flask: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -1215,9 +1138,7 @@ jobs: test-mozilla-lint: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -1227,9 +1148,7 @@ jobs: test-mozilla-lint-beta: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -1240,9 +1159,7 @@ jobs: test-mozilla-lint-desktop: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: @@ -1258,9 +1175,7 @@ jobs: test-mozilla-lint-flask: executor: node-browsers steps: - - run: - name: Shallow git clone - command: git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + - git-shallow-clone/checkout - attach_workspace: at: . - run: From efd679eb888c44124f04f4145367687507cb3295 Mon Sep 17 00:00:00 2001 From: Howard Braham Date: Thu, 13 Apr 2023 14:16:15 -0700 Subject: [PATCH 08/12] using an alias --- .circleci/config.yml | 103 +++++++++++++++++++++++++------------------ 1 file changed, 59 insertions(+), 44 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ccc3c94672d4..87ef42cf331c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,7 +17,6 @@ executors: orbs: gh: circleci/github-cli@2.0 codecov: codecov/codecov@3.2.2 - git-shallow-clone: guitarrapc/git-shallow-clone@2.5.0 rc_branch_only: &rc_branch_only filters: @@ -25,6 +24,22 @@ rc_branch_only: &rc_branch_only only: - /^Version-v(\d+)[.](\d+)[.](\d+)/ +aliases: + # Shallow Git Clone + - &shallow-git-clone + name: Shallow Git Clone + command: | + #!/bin/sh + set -e + set -u + set -o pipefail + + # Set up SSH access + mkdir -p ~/.ssh + echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=' >> ~/.ssh/known_hosts + + git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . + workflows: test_and_release: jobs: @@ -235,7 +250,7 @@ jobs: trigger-beta-build: executor: node-browsers-medium-plus steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - when: @@ -264,7 +279,7 @@ jobs: create_release_pull_request: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -283,7 +298,7 @@ jobs: prep-deps: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - restore_cache: keys: # First try to get the specific cache for the checksum of the yarn.lock file. @@ -333,7 +348,7 @@ jobs: validate-lavamoat-config: executor: node-browsers-medium-plus steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -348,7 +363,7 @@ jobs: prep-build: executor: node-browsers-medium-plus steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - when: @@ -382,7 +397,7 @@ jobs: prep-build-desktop: executor: node-browsers-medium-plus steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -406,7 +421,7 @@ jobs: prep-build-flask: executor: node-browsers-medium-plus steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - when: @@ -446,7 +461,7 @@ jobs: prep-build-test-flask: executor: node-browsers-medium-plus steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -467,7 +482,7 @@ jobs: prep-build-test-mv3: executor: node-browsers-medium-plus steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -488,7 +503,7 @@ jobs: prep-build-test: executor: node-browsers-medium-plus steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -509,7 +524,7 @@ jobs: prep-build-storybook: executor: node-browsers-medium-plus steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -523,7 +538,7 @@ jobs: prep-build-ts-migration-dashboard: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -537,7 +552,7 @@ jobs: test-yarn-dedupe: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -547,7 +562,7 @@ jobs: test-lint: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -560,7 +575,7 @@ jobs: test-storybook: executor: node-browsers-medium-plus steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -582,7 +597,7 @@ jobs: test-lint-lockfile: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -592,7 +607,7 @@ jobs: test-lint-changelog: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - when: @@ -618,7 +633,7 @@ jobs: test-deps-audit: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -628,7 +643,7 @@ jobs: test-deps-depcheck: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -639,7 +654,7 @@ jobs: executor: node-browsers parallelism: 8 steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -676,7 +691,7 @@ jobs: executor: node-browsers parallelism: 8 steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -704,7 +719,7 @@ jobs: executor: node-browsers parallelism: 4 steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - run: name: Install Firefox command: ./.circleci/scripts/firefox-install.sh @@ -741,7 +756,7 @@ jobs: executor: node-browsers parallelism: 4 steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -778,7 +793,7 @@ jobs: executor: node-browsers-medium-plus parallelism: 8 steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - run: name: Install Firefox command: ./.circleci/scripts/firefox-install.sh @@ -814,7 +829,7 @@ jobs: benchmark: executor: node-browsers-medium-plus steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -840,7 +855,7 @@ jobs: user-actions-benchmark: executor: node-browsers-medium-plus steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -866,7 +881,7 @@ jobs: stats-module-load-init: executor: node-browsers-medium-plus steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - run: name: Re-Install Chrome command: ./.circleci/scripts/chrome-install.sh @@ -963,7 +978,7 @@ jobs: job-publish-release: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -983,7 +998,7 @@ jobs: - add_ssh_keys: fingerprints: - '3d:49:29:f4:b2:e8:ea:af:d1:32:eb:2a:fc:15:85:d8' - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -998,7 +1013,7 @@ jobs: - add_ssh_keys: fingerprints: - '8b:21:e3:20:7c:c9:db:82:74:2d:86:d6:11:a7:2f:49' - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -1012,7 +1027,7 @@ jobs: test-unit-mocha: executor: node-browsers-medium-plus steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -1027,7 +1042,7 @@ jobs: test-unit-jest-development: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -1044,7 +1059,7 @@ jobs: executor: node-browsers-medium-plus parallelism: 12 steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -1060,7 +1075,7 @@ jobs: upload-and-validate-coverage: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - codecov/upload @@ -1075,7 +1090,7 @@ jobs: test-unit-global: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -1085,7 +1100,7 @@ jobs: validate-source-maps: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -1095,7 +1110,7 @@ jobs: validate-source-maps-beta: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -1106,7 +1121,7 @@ jobs: validate-source-maps-desktop: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -1122,7 +1137,7 @@ jobs: validate-source-maps-flask: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -1138,7 +1153,7 @@ jobs: test-mozilla-lint: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -1148,7 +1163,7 @@ jobs: test-mozilla-lint-beta: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -1159,7 +1174,7 @@ jobs: test-mozilla-lint-desktop: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: @@ -1175,7 +1190,7 @@ jobs: test-mozilla-lint-flask: executor: node-browsers steps: - - git-shallow-clone/checkout + - run: *shallow-git-clone - attach_workspace: at: . - run: From a08405e7b14307a9b2e8f37334d4a7a187d44fbb Mon Sep 17 00:00:00 2001 From: Howard Braham Date: Fri, 21 Apr 2023 14:49:36 -0700 Subject: [PATCH 09/12] Split out $GITHUB_SSH_KEY as a constant with a comment --- .circleci/config.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 87ef42cf331c..096ae9e7aa3d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -35,8 +35,10 @@ aliases: set -o pipefail # Set up SSH access + # This SSH key is the current github.com SSH key as of April 2023, but it will need to be changed whenever github changes their key (probably every few years) + GITHUB_SSH_KEY="AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=" mkdir -p ~/.ssh - echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=' >> ~/.ssh/known_hosts + echo github.com ssh-rsa $GITHUB_SSH_KEY >> ~/.ssh/known_hosts git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" . From 4267a9222feaa0ac11210468924378aa036ca172 Mon Sep 17 00:00:00 2001 From: HowardBraham Date: Fri, 21 Apr 2023 19:36:26 -0700 Subject: [PATCH 10/12] Update .circleci/config.yml change from RSA to ED25519 validation Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com> --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 096ae9e7aa3d..c43bfa23aa76 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -36,7 +36,7 @@ aliases: # Set up SSH access # This SSH key is the current github.com SSH key as of April 2023, but it will need to be changed whenever github changes their key (probably every few years) - GITHUB_SSH_KEY="AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=" + GITHUB_SSH_KEY="AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl" mkdir -p ~/.ssh echo github.com ssh-rsa $GITHUB_SSH_KEY >> ~/.ssh/known_hosts From 596ca0c0708235d4d5b4010f4837ab225d631f07 Mon Sep 17 00:00:00 2001 From: HowardBraham Date: Fri, 21 Apr 2023 19:38:23 -0700 Subject: [PATCH 11/12] Fix warning about the `set -o pipefail` option being Bash-specific Co-authored-by: Mark Stacey --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c43bfa23aa76..11cf2cd0fb7e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,7 +29,7 @@ aliases: - &shallow-git-clone name: Shallow Git Clone command: | - #!/bin/sh + #!/bin/bash set -e set -u set -o pipefail From 88107fdb61416c5665775c9f4bef54910e6b6cc5 Mon Sep 17 00:00:00 2001 From: legobt <6wbvkn0j@anonaddy.me> Date: Sat, 22 Apr 2023 03:28:10 +0000 Subject: [PATCH 12/12] fixup ssh known-hosts key --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 11cf2cd0fb7e..d50ac87476f8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -38,7 +38,7 @@ aliases: # This SSH key is the current github.com SSH key as of April 2023, but it will need to be changed whenever github changes their key (probably every few years) GITHUB_SSH_KEY="AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl" mkdir -p ~/.ssh - echo github.com ssh-rsa $GITHUB_SSH_KEY >> ~/.ssh/known_hosts + echo github.com ssh-ed25519 $GITHUB_SSH_KEY >> ~/.ssh/known_hosts git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" .