Skip to content

Commit 84643b4

Browse files
authored
Merge pull request #29766 from MetaMask/Version-v12.11.0
Version v12.11.0 RC
2 parents fc07003 + e3be0c0 commit 84643b4

File tree

806 files changed

+40319
-52548
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

806 files changed

+40319
-52548
lines changed

.circleci/config.yml

Lines changed: 16 additions & 210 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ executors:
2525
resource_class: medium+
2626
environment:
2727
NODE_OPTIONS: --max_old_space_size=4096
28-
shellcheck:
29-
docker:
30-
- image: koalaman/shellcheck-alpine@sha256:dfaf08fab58c158549d3be64fb101c626abc5f16f341b569092577ae207db199
31-
resource_class: small
3228
playwright:
3329
docker:
3430
- image: mcr.microsoft.com/playwright:v1.44.1-focal
@@ -114,27 +110,6 @@ workflows:
114110
- master
115111
requires:
116112
- prep-deps
117-
- test-deps-audit:
118-
requires:
119-
- prep-deps
120-
- test-deps-depcheck:
121-
requires:
122-
- prep-deps
123-
- test-yarn-dedupe:
124-
requires:
125-
- prep-deps
126-
- validate-lavamoat-allow-scripts:
127-
requires:
128-
- prep-deps
129-
- validate-lavamoat-policy-build:
130-
requires:
131-
- prep-deps
132-
- validate-lavamoat-policy-webapp:
133-
matrix:
134-
parameters:
135-
build-type: [main, beta, flask, mmi]
136-
requires:
137-
- prep-deps
138113
- prep-build:
139114
requires:
140115
- prep-deps
@@ -160,7 +135,6 @@ workflows:
160135
requires:
161136
- prep-deps
162137
- prep-build-test-flask-mv2:
163-
<<: *main_master_rc_only
164138
requires:
165139
- prep-deps
166140
- prep-build-storybook:
@@ -169,16 +143,6 @@ workflows:
169143
- prep-build-ts-migration-dashboard:
170144
requires:
171145
- prep-deps
172-
- test-lint:
173-
requires:
174-
- prep-deps
175-
- test-lint-shellcheck
176-
- test-lint-lockfile:
177-
requires:
178-
- prep-deps
179-
- test-lint-changelog:
180-
requires:
181-
- prep-deps
182146
- test-e2e-chrome-webpack:
183147
<<: *main_master_rc_only
184148
requires:
@@ -253,14 +217,6 @@ workflows:
253217
- prep-build-flask-mv2
254218
- all-tests-pass:
255219
requires:
256-
- test-deps-depcheck
257-
- validate-lavamoat-allow-scripts
258-
- validate-lavamoat-policy-build
259-
- validate-lavamoat-policy-webapp
260-
- test-lint
261-
- test-lint-shellcheck
262-
- test-lint-lockfile
263-
- test-lint-changelog
264220
- validate-source-maps
265221
- validate-source-maps-beta
266222
- validate-source-maps-flask
@@ -280,22 +236,26 @@ workflows:
280236
- user-actions-benchmark:
281237
requires:
282238
- prep-build-test
283-
- stats-module-load-init:
239+
- bundle-size:
284240
requires:
285241
- prep-build-test
286242
- job-publish-prerelease:
287243
requires:
288244
- prep-deps
289245
- prep-build
290246
- prep-build-mv2
291-
- trigger-beta-build
292247
- prep-build-flask
293248
- prep-build-flask-mv2
249+
- prep-build-test
250+
- prep-build-test-mv2
251+
- prep-build-test-flask
252+
- prep-build-test-flask-mv2
253+
- trigger-beta-build
294254
- prep-build-storybook
295255
- prep-build-ts-migration-dashboard
296256
- benchmark
297257
- user-actions-benchmark
298-
- stats-module-load-init
258+
- bundle-size
299259
- all-tests-pass
300260
- job-publish-release:
301261
filters:
@@ -466,51 +426,6 @@ jobs:
466426
at: .
467427
- run: yarn tsx .circleci/scripts/validate-locales-only.ts
468428

469-
validate-lavamoat-allow-scripts:
470-
executor: node-browsers-small
471-
steps:
472-
- run: *shallow-git-clone-and-enable-vnc
473-
- run: sudo corepack enable
474-
- attach_workspace:
475-
at: .
476-
- run:
477-
name: Validate allow-scripts config
478-
command: yarn allow-scripts auto
479-
- run:
480-
name: Check working tree
481-
command: .circleci/scripts/check-working-tree.sh
482-
483-
validate-lavamoat-policy-build:
484-
executor: node-browsers-medium
485-
steps:
486-
- run: *shallow-git-clone-and-enable-vnc
487-
- run: sudo corepack enable
488-
- attach_workspace:
489-
at: .
490-
- run:
491-
name: Validate LavaMoat build policy
492-
command: yarn lavamoat:build:auto
493-
- run:
494-
name: Check working tree
495-
command: .circleci/scripts/check-working-tree.sh
496-
497-
validate-lavamoat-policy-webapp:
498-
executor: node-browsers-medium-plus
499-
parameters:
500-
build-type:
501-
type: string
502-
steps:
503-
- run: *shallow-git-clone-and-enable-vnc
504-
- run: sudo corepack enable
505-
- attach_workspace:
506-
at: .
507-
- run:
508-
name: Validate LavaMoat << parameters.build-type >> policy
509-
command: yarn lavamoat:webapp:auto:ci '--build-types=<< parameters.build-type >>'
510-
- run:
511-
name: Check working tree
512-
command: .circleci/scripts/check-working-tree.sh
513-
514429
prep-build:
515430
executor: node-linux-medium
516431
steps:
@@ -706,10 +621,10 @@ jobs:
706621
name: Build extension for testing
707622
command: yarn build:test:flask:mv2
708623
- run:
709-
name: Move test build to 'dist-test-flask' to avoid conflict with production build
624+
name: Move test build to 'dist-test-flask-mv2' to avoid conflict with production build
710625
command: mv ./dist ./dist-test-flask-mv2
711626
- run:
712-
name: Move test zips to 'builds-test-flask' to avoid conflict with production build
627+
name: Move test zips to 'builds-test-flask-mv2' to avoid conflict with production build
713628
command: mv ./builds ./builds-test-flask-mv2
714629
- persist_to_workspace:
715630
root: .
@@ -826,31 +741,6 @@ jobs:
826741
name: Rerun workflows from failed
827742
command: yarn ci-rerun-from-failed
828743

829-
test-yarn-dedupe:
830-
executor: node-browsers-small
831-
steps:
832-
- run: *shallow-git-clone-and-enable-vnc
833-
- run: sudo corepack enable
834-
- attach_workspace:
835-
at: .
836-
- run:
837-
name: Detect yarn lock deduplications
838-
command: yarn dedupe --check
839-
840-
test-lint:
841-
executor: node-browsers-medium
842-
steps:
843-
- run: *shallow-git-clone-and-enable-vnc
844-
- run: sudo corepack enable
845-
- attach_workspace:
846-
at: .
847-
- run:
848-
name: Lint
849-
command: yarn lint
850-
- run:
851-
name: Verify locales
852-
command: yarn verify-locales --quiet
853-
854744
test-storybook:
855745
executor: node-browsers-medium-plus
856746
steps:
@@ -865,78 +755,6 @@ jobs:
865755
name: Test Storybook
866756
command: yarn test-storybook:ci
867757

868-
test-lint-shellcheck:
869-
executor: shellcheck
870-
steps:
871-
- checkout
872-
- run: apk add --no-cache bash jq yarn
873-
- run:
874-
name: ShellCheck Lint
875-
command: ./development/shellcheck.sh
876-
877-
test-lint-lockfile:
878-
executor: node-browsers-medium-plus
879-
steps:
880-
- run: *shallow-git-clone-and-enable-vnc
881-
- run: sudo corepack enable
882-
- attach_workspace:
883-
at: .
884-
- run:
885-
name: lockfile-lint
886-
command: yarn lint:lockfile
887-
- run:
888-
name: check yarn resolutions
889-
command: yarn --check-resolutions
890-
891-
test-lint-changelog:
892-
executor: node-browsers-small
893-
steps:
894-
- run: *shallow-git-clone-and-enable-vnc
895-
- run: sudo corepack enable
896-
- attach_workspace:
897-
at: .
898-
- when:
899-
condition:
900-
not:
901-
matches:
902-
pattern: /^Version-v(\d+)[.](\d+)[.](\d+)$/
903-
value: << pipeline.git.branch >>
904-
steps:
905-
- run:
906-
name: Validate changelog
907-
command: yarn lint:changelog
908-
- when:
909-
condition:
910-
matches:
911-
pattern: /^Version-v(\d+)[.](\d+)[.](\d+)$/
912-
value: << pipeline.git.branch >>
913-
steps:
914-
- run:
915-
name: Validate release candidate changelog
916-
command: .circleci/scripts/validate-changelog-in-rc.sh
917-
918-
test-deps-audit:
919-
executor: node-browsers-small
920-
steps:
921-
- run: *shallow-git-clone-and-enable-vnc
922-
- run: sudo corepack enable
923-
- attach_workspace:
924-
at: .
925-
- run:
926-
name: yarn audit
927-
command: yarn audit
928-
929-
test-deps-depcheck:
930-
executor: node-browsers-small
931-
steps:
932-
- run: *shallow-git-clone-and-enable-vnc
933-
- run: sudo corepack enable
934-
- attach_workspace:
935-
at: .
936-
- run:
937-
name: depcheck
938-
command: yarn depcheck
939-
940758
test-e2e-chrome-webpack:
941759
executor: node-browsers-medium-plus
942760
parallelism: 20
@@ -1228,7 +1046,7 @@ jobs:
12281046
paths:
12291047
- test-artifacts
12301048

1231-
stats-module-load-init:
1049+
bundle-size:
12321050
executor: node-browsers-small
12331051
steps:
12341052
- run: *shallow-git-clone-and-enable-vnc
@@ -1242,16 +1060,8 @@ jobs:
12421060
name: Move test zips to builds
12431061
command: mv ./builds-test ./builds
12441062
- run:
1245-
name: Run page load benchmark
1246-
command: |
1247-
mkdir -p test-artifacts/chrome/
1248-
cp -R development/charts/flamegraph test-artifacts/chrome/initialisation
1249-
cp -R development/charts/flamegraph/chart test-artifacts/chrome/initialisation/background
1250-
cp -R development/charts/flamegraph/chart test-artifacts/chrome/initialisation/ui
1251-
cp -R development/charts/table test-artifacts/chrome/load_time
1252-
- run:
1253-
name: Run page load benchmark
1254-
command: yarn mv3:stats:chrome --out test-artifacts/chrome
1063+
name: Measure bundle size
1064+
command: yarn bundle-size --out test-artifacts/chrome
12551065
- run:
12561066
name: Install jq
12571067
command: sudo apt install jq -y
@@ -1303,8 +1113,12 @@ jobs:
13031113
destination: builds-mv2
13041114
- store_artifacts:
13051115
path: builds-test
1116+
- store_artifacts:
1117+
path: builds-test-mv2
13061118
- store_artifacts:
13071119
path: builds-test-flask
1120+
- store_artifacts:
1121+
path: builds-test-flask-mv2
13081122
- store_artifacts:
13091123
path: test-artifacts
13101124
destination: test-artifacts
@@ -1321,14 +1135,6 @@ jobs:
13211135
- store_artifacts:
13221136
path: development/ts-migration-dashboard/build/final
13231137
destination: ts-migration-dashboard
1324-
- run:
1325-
name: Set branch parent commit env var
1326-
command: |
1327-
echo "export PARENT_COMMIT=$(git merge-base origin/HEAD HEAD)" >> $BASH_ENV
1328-
source $BASH_ENV
1329-
- run:
1330-
name: build:announce
1331-
command: ./development/metamaskbot-build-announce.js
13321138

13331139
job-publish-release:
13341140
executor: node-browsers-small

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# audit these changes on their own, and leave their analysis in a comment.
1414
# These codeowners will review this analysis, and review the policy changes in
1515
# further detail if warranted.
16-
lavamoat/ @MetaMask/extension-devs @MetaMask/supply-chain
16+
lavamoat/ @MetaMask/extension-devs @MetaMask/policy-reviewers @MetaMask/supply-chain
1717

1818
# The offscreen.ts script file that is included in the offscreen document html
1919
# file is responsible, at present, for loading the snaps execution environment

0 commit comments

Comments
 (0)