-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MetaMask:main' into patch-3
- Loading branch information
Showing
1,924 changed files
with
54,103 additions
and
89,622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,13 @@ version: 2.1 | |
executors: | ||
node-browsers-small: | ||
docker: | ||
- image: cimg/node:20.18-browsers | ||
- image: cimg/node:22.13-browsers | ||
resource_class: small | ||
environment: | ||
NODE_OPTIONS: --max_old_space_size=2048 | ||
node-browsers-medium: | ||
docker: | ||
- image: cimg/node:20.18-browsers | ||
- image: cimg/node:22.13-browsers | ||
resource_class: medium | ||
environment: | ||
NODE_OPTIONS: --max_old_space_size=3072 | ||
|
@@ -21,7 +21,7 @@ executors: | |
NODE_OPTIONS: --max_old_space_size=6144 | ||
node-browsers-medium-plus: | ||
docker: | ||
- image: cimg/node:20.18-browsers | ||
- image: cimg/node:22.13-browsers | ||
resource_class: medium+ | ||
environment: | ||
NODE_OPTIONS: --max_old_space_size=4096 | ||
|
@@ -99,9 +99,6 @@ workflows: | |
<<: *rc_branch_only | ||
requires: | ||
- prep-deps | ||
- trigger-beta-build: | ||
requires: | ||
- prep-deps | ||
- prep-deps | ||
- get-changed-files-with-git-diff: | ||
filters: | ||
|
@@ -137,9 +134,6 @@ workflows: | |
- prep-build-test-flask-mv2: | ||
requires: | ||
- prep-deps | ||
- prep-build-storybook: | ||
requires: | ||
- prep-deps | ||
- prep-build-ts-migration-dashboard: | ||
requires: | ||
- prep-deps | ||
|
@@ -188,19 +182,12 @@ workflows: | |
- /^Version-v(\d+)[.](\d+)[.](\d+)/ | ||
requires: | ||
- prep-build | ||
- test-storybook: | ||
requires: | ||
- prep-deps | ||
- prep-build-storybook | ||
- validate-source-maps: | ||
requires: | ||
- prep-build | ||
- validate-source-maps-mv2: | ||
requires: | ||
- prep-build-mv2 | ||
- validate-source-maps-beta: | ||
requires: | ||
- trigger-beta-build | ||
- validate-source-maps-flask: | ||
requires: | ||
- prep-build-flask | ||
|
@@ -218,7 +205,6 @@ workflows: | |
- all-tests-pass: | ||
requires: | ||
- validate-source-maps | ||
- validate-source-maps-beta | ||
- validate-source-maps-flask | ||
- test-mozilla-lint-mv2 | ||
- test-mozilla-lint-flask-mv2 | ||
|
@@ -229,7 +215,6 @@ workflows: | |
- test-e2e-firefox-flask | ||
- test-e2e-chrome-vault-decryption | ||
- test-e2e-chrome-webpack | ||
- test-storybook | ||
- benchmark: | ||
requires: | ||
- prep-build-test | ||
|
@@ -250,8 +235,6 @@ workflows: | |
- prep-build-test-mv2 | ||
- prep-build-test-flask | ||
- prep-build-test-flask-mv2 | ||
- trigger-beta-build | ||
- prep-build-storybook | ||
- prep-build-ts-migration-dashboard | ||
- benchmark | ||
- user-actions-benchmark | ||
|
@@ -268,12 +251,6 @@ workflows: | |
- prep-build-flask | ||
- prep-build-flask-mv2 | ||
- all-tests-pass | ||
- job-publish-storybook: | ||
filters: | ||
branches: | ||
only: main | ||
requires: | ||
- prep-build-storybook | ||
- job-publish-ts-migration-dashboard: | ||
filters: | ||
branches: | ||
|
@@ -316,35 +293,6 @@ workflows: | |
- validate-locales-only | ||
|
||
jobs: | ||
trigger-beta-build: | ||
executor: node-browsers-small | ||
steps: | ||
- run: *shallow-git-clone-and-enable-vnc | ||
- run: sudo corepack enable | ||
- attach_workspace: | ||
at: . | ||
- when: | ||
condition: | ||
not: | ||
matches: | ||
pattern: /^master$/ | ||
value: << pipeline.git.branch >> | ||
steps: | ||
- run: | ||
name: Build beta prod | ||
command: .circleci/scripts/trigger-beta-build.sh | ||
- run: | ||
name: Move beta build to 'dist-beta' to avoid conflict with production build | ||
command: mv ./dist ./dist-beta | ||
- run: | ||
name: Move beta zips to 'builds-beta' to avoid conflict with production build | ||
command: mv ./builds ./builds-beta | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- dist-beta | ||
- builds-beta | ||
|
||
create_release_pull_request: | ||
executor: node-browsers-medium | ||
steps: | ||
|
@@ -373,12 +321,15 @@ jobs: | |
- run: | ||
name: Save Yarn version | ||
command: yarn --version > /tmp/YARN_VERSION | ||
- run: | ||
name: Save Foundry version | ||
command: node -e "process.stdout.write(require('./package.json').foundryup.version)" > /tmp/FOUNDRY_VERSION | ||
- restore_cache: | ||
keys: | ||
# First try to get the specific cache for the checksum of the yarn.lock file. | ||
# This cache key lookup will fail if the lock file is modified and a cache | ||
# has not yet been persisted for the new checksum. | ||
- dependency-cache-{{ checksum "/tmp/YARN_VERSION" }}-{{ checksum "yarn.lock" }} | ||
- dependency-cache-{{ checksum "/tmp/YARN_VERSION" }}-{{ checksum "yarn.lock" }}-{{ checksum "/tmp/FOUNDRY_VERSION" }} | ||
# To prevent having to do a full install of every node_module when | ||
# dependencies change, restore from the last known cache of any | ||
# branch/checksum with the same Yarn version, the install step will remove | ||
|
@@ -390,12 +341,14 @@ jobs: | |
name: Install dependencies | ||
command: yarn --immutable | ||
- save_cache: | ||
key: dependency-cache-{{ checksum "/tmp/YARN_VERSION" }}-{{ checksum "yarn.lock" }} | ||
key: dependency-cache-{{ checksum "/tmp/YARN_VERSION" }}-{{ checksum "yarn.lock" }}-{{ checksum "/tmp/FOUNDRY_VERSION" }} | ||
paths: | ||
- .yarn/cache | ||
- .metamask/cache # should match yarn's relative location | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- .metamask/cache # ensures anvil is installed | ||
- node_modules | ||
- build-artifacts | ||
|
||
|
@@ -416,6 +369,9 @@ jobs: | |
root: . | ||
paths: | ||
- changed-files | ||
- store_artifacts: | ||
path: changed-files | ||
destination: changed-files | ||
|
||
validate-locales-only: | ||
executor: node-browsers-small | ||
|
@@ -700,21 +656,6 @@ jobs: | |
paths: | ||
- dist-test-webpack | ||
|
||
prep-build-storybook: | ||
executor: node-linux-medium | ||
steps: | ||
- run: *shallow-git-clone-and-enable-vnc | ||
- run: corepack enable | ||
- attach_workspace: | ||
at: . | ||
- run: | ||
name: Build Storybook | ||
command: yarn storybook:build | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- storybook-build | ||
|
||
prep-build-ts-migration-dashboard: | ||
executor: node-browsers-small | ||
steps: | ||
|
@@ -741,20 +682,6 @@ jobs: | |
name: Rerun workflows from failed | ||
command: yarn ci-rerun-from-failed | ||
|
||
test-storybook: | ||
executor: node-browsers-medium-plus | ||
steps: | ||
- run: *shallow-git-clone-and-enable-vnc | ||
- run: sudo corepack enable | ||
- attach_workspace: | ||
at: . | ||
- run: | ||
name: Install Playwright browsers | ||
command: yarn exec playwright install chromium | ||
- run: | ||
name: Test Storybook | ||
command: yarn test-storybook:ci | ||
|
||
test-e2e-chrome-webpack: | ||
executor: node-browsers-medium-plus | ||
parallelism: 20 | ||
|
@@ -1089,25 +1016,18 @@ jobs: | |
- store_artifacts: | ||
path: dist/sourcemaps | ||
destination: builds/sourcemaps | ||
- store_artifacts: | ||
path: dist-beta/sourcemaps | ||
destination: builds-beta/sourcemaps | ||
- store_artifacts: | ||
path: dist-flask/sourcemaps | ||
destination: builds-flask/sourcemaps | ||
- store_artifacts: | ||
path: builds | ||
destination: builds | ||
- store_artifacts: | ||
path: builds-beta | ||
destination: builds-beta | ||
- store_artifacts: | ||
path: builds-flask | ||
destination: builds-flask | ||
- store_artifacts: | ||
path: builds-flask-mv2 | ||
destination: builds-flask-mv2 | ||
|
||
- store_artifacts: | ||
path: builds-mv2 | ||
destination: builds-mv2 | ||
|
@@ -1129,9 +1049,6 @@ jobs: | |
- store_artifacts: | ||
path: build-artifacts | ||
destination: build-artifacts | ||
- store_artifacts: | ||
path: storybook-build | ||
destination: storybook | ||
- store_artifacts: | ||
path: development/ts-migration-dashboard/build/final | ||
destination: ts-migration-dashboard | ||
|
@@ -1159,22 +1076,6 @@ jobs: | |
name: Create GitHub release | ||
command: .circleci/scripts/release-create-gh-release.sh | ||
|
||
job-publish-storybook: | ||
executor: node-browsers-small | ||
steps: | ||
- add_ssh_keys: | ||
fingerprints: | ||
- '3d:49:29:f4:b2:e8:ea:af:d1:32:eb:2a:fc:15:85:d8' | ||
- run: *shallow-git-clone-and-enable-vnc | ||
- run: sudo corepack enable | ||
- attach_workspace: | ||
at: . | ||
- run: | ||
name: storybook:deploy | ||
command: | | ||
git remote add storybook [email protected]:MetaMask/metamask-storybook.git | ||
yarn storybook:deploy | ||
job-publish-ts-migration-dashboard: | ||
executor: node-browsers-small | ||
steps: | ||
|
@@ -1204,17 +1105,6 @@ jobs: | |
name: Validate source maps | ||
command: yarn validate-source-maps | ||
|
||
validate-source-maps-beta: | ||
executor: node-browsers-small | ||
steps: | ||
- run: *shallow-git-clone-and-enable-vnc | ||
- run: sudo corepack enable | ||
- attach_workspace: | ||
at: . | ||
- run: | ||
name: Validate source maps | ||
command: .circleci/scripts/validate-source-maps-beta.sh | ||
|
||
validate-source-maps-flask: | ||
executor: node-browsers-small | ||
steps: | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.