Skip to content

Commit

Permalink
Merge branch 'main' into bump-ld-20
Browse files Browse the repository at this point in the history
  • Loading branch information
weizman authored Jan 30, 2025
2 parents 5d6051f + 180641b commit 65fa0bd
Show file tree
Hide file tree
Showing 705 changed files with 12,320 additions and 31,322 deletions.
124 changes: 3 additions & 121 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -700,21 +648,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:
Expand All @@ -741,20 +674,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
Expand Down Expand Up @@ -1089,25 +1008,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
Expand All @@ -1129,9 +1041,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
Expand Down Expand Up @@ -1159,22 +1068,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:
Expand Down Expand Up @@ -1204,17 +1097,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:
Expand Down
11 changes: 0 additions & 11 deletions .circleci/scripts/check-working-tree.sh

This file was deleted.

66 changes: 0 additions & 66 deletions .circleci/scripts/check_mmi_trigger.sh

This file was deleted.

25 changes: 0 additions & 25 deletions .circleci/scripts/trigger-beta-build.sh

This file was deleted.

22 changes: 0 additions & 22 deletions .circleci/scripts/validate-source-maps-beta.sh

This file was deleted.

2 changes: 1 addition & 1 deletion .depcheckrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ignores:
- '@metamask/phishing-warning' # statically hosted as part of some e2e tests
- '@metamask/test-dapp'
- '@metamask/design-tokens' # Only imported in index.css
- '@tsconfig/node20' # required dynamically by TS, used in tsconfig.json
- '@tsconfig/node22' # required dynamically by TS, used in tsconfig.json
- '@sentry/cli' # invoked as `sentry-cli`
- 'chromedriver'
- 'depcheck' # ooo meta
Expand Down
Loading

0 comments on commit 65fa0bd

Please sign in to comment.