Skip to content

Commit 7bc06fc

Browse files
authored
Merge pull request #28507 from MetaMask/Version-v12.6.2
Version v12.6.2 RC
2 parents 5561096 + 2167145 commit 7bc06fc

File tree

500 files changed

+14225
-22145
lines changed

Some content is hidden

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

500 files changed

+14225
-22145
lines changed

.circleci/config.yml

Lines changed: 47 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ aliases:
8787
cat ${HOME}/project/.circleci/scripts/enable-vnc.sh >> ~/.bashrc
8888
fi
8989
90-
# Check if MMI tests should run
91-
- &check-mmi-trigger
92-
name: Check if MMI tests should run
90+
# Check if MMI Optional tests should run
91+
- &check-mmi-optional
92+
name: Check if MMI Optional tests should run
9393
command: |
94-
source mmi_trigger.env
95-
if [ "${run_mmi_tests}" == "true" ]; then
96-
echo "Running MMI tests"
94+
RUN_MMI_OPTIONAL=$(cat ./RUN_MMI_OPTIONAL)
95+
if [[ "${RUN_MMI_OPTIONAL}" == "true" ]]; then
96+
echo "Running MMI Optional tests"
9797
else
98-
echo "Skipping MMI tests"
98+
echo "Skipping MMI Optional tests"
9999
circleci step halt
100100
fi
101101
@@ -114,7 +114,7 @@ workflows:
114114
- trigger-beta-build:
115115
requires:
116116
- prep-deps
117-
- check-mmi-trigger
117+
- check-pr-tag
118118
- prep-deps
119119
- get-changed-files-with-git-diff:
120120
filters:
@@ -179,7 +179,7 @@ workflows:
179179
- prep-build-test-mmi-playwright:
180180
requires:
181181
- prep-deps
182-
- check-mmi-trigger
182+
- check-pr-tag
183183
- prep-build-storybook:
184184
requires:
185185
- prep-deps
@@ -231,7 +231,7 @@ workflows:
231231
requires:
232232
- prep-build-test-mmi
233233
- get-changed-files-with-git-diff
234-
- test-e2e-mmi-playwright:
234+
- test-e2e-mmi-playwright - OPTIONAL:
235235
requires:
236236
- prep-build-test-mmi-playwright
237237
- test-e2e-chrome-rpc-mmi:
@@ -421,6 +421,39 @@ jobs:
421421
name: Create GitHub Pull Request for version
422422
command: .circleci/scripts/release-create-release-pr.sh
423423

424+
check-pr-tag:
425+
docker:
426+
- image: cimg/base:stable
427+
steps:
428+
- run:
429+
name: Check for MMI Team Tag
430+
command: |
431+
#!/bin/bash
432+
433+
GH_LABEL=team-mmi
434+
if [ -z "$CIRCLE_PULL_REQUESTS" ]; then
435+
echo "Skipping tag check; this is not a PR."
436+
echo "false" > ./RUN_MMI_OPTIONAL
437+
exit 0
438+
fi
439+
440+
echo $CIRCLE_PULL_REQUESTS | sed 's/,/\n/g'
441+
442+
# See if any associated PRs have matching label
443+
HAS_MATCHING_PR=$(echo $CIRCLE_PULL_REQUESTS \
444+
| sed -e 's#,#\n#g' -e 's#/github.com/#/api.github.com/repos/#g' -e 's#/pull/#/pulls/#g' \
445+
| xargs -n1 curl -s \
446+
| jq -s "map((.labels|map(select(.name==\"${GH_LABEL}\"))))|flatten|length > 0")
447+
448+
echo "${GH_LABEL} tag presence: ${HAS_MATCHING_PR}"
449+
450+
# assign the RUN_MMI_OPTIONAL variable
451+
echo "${HAS_MATCHING_PR}" > ./RUN_MMI_OPTIONAL
452+
- persist_to_workspace:
453+
root: .
454+
paths:
455+
- RUN_MMI_OPTIONAL
456+
424457
prep-deps:
425458
executor: node-browsers-medium
426459
steps:
@@ -806,7 +839,7 @@ jobs:
806839
- run: corepack enable
807840
- attach_workspace:
808841
at: .
809-
- run: *check-mmi-trigger
842+
- run: *check-mmi-optional
810843
- run:
811844
name: Build MMI extension for Playwright e2e
812845
command: |
@@ -821,6 +854,7 @@ jobs:
821854
- persist_to_workspace:
822855
root: .
823856
paths:
857+
- RUN_MMI_OPTIONAL
824858
- dist-test-mmi-playwright
825859
- builds-test-mmi-playwright
826860
- store_artifacts:
@@ -1272,15 +1306,15 @@ jobs:
12721306
- store_test_results:
12731307
path: test/test-results/e2e
12741308

1275-
test-e2e-mmi-playwright:
1309+
test-e2e-mmi-playwright - OPTIONAL:
12761310
executor: playwright
12771311
parallelism: 2
12781312
steps:
12791313
- run: *shallow-git-clone-and-enable-vnc
12801314
- run: corepack enable
12811315
- attach_workspace:
12821316
at: .
1283-
- run: *check-mmi-trigger
1317+
- run: *check-mmi-optional
12841318
- run:
12851319
name: Move test build to dist
12861320
command: mv ./dist-test-mmi-playwright ./dist
@@ -1709,18 +1743,3 @@ jobs:
17091743
- run:
17101744
name: All Tests Passed
17111745
command: echo 'whew - everything passed!'
1712-
1713-
check-mmi-trigger:
1714-
executor: node-browsers-medium
1715-
steps:
1716-
- checkout
1717-
- run:
1718-
name: Check for MMI Team Label or Reviewer
1719-
command: ./.circleci/scripts/check_mmi_trigger.sh
1720-
- store_artifacts:
1721-
path: mmi_trigger.env
1722-
destination: mmi_trigger.env
1723-
- persist_to_workspace:
1724-
root: .
1725-
paths:
1726-
- mmi_trigger.env

.circleci/scripts/check_mmi_trigger.sh

Lines changed: 0 additions & 60 deletions
This file was deleted.

.depcheckrc.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ ignores:
8181
# trezor
8282
- 'ts-mixer'
8383
- '@testing-library/dom'
84-
- 'mini-css-extract-plugin'
85-
- 'webpack-cli'
8684

8785
# files depcheck should not parse
8886
ignorePatterns:

.github/CODEOWNERS

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,7 @@ privacy-snapshot.json @MetaMask/extension-privacy-reviewers
5252
.devcontainer/ @MetaMask/library-admins @HowardBraham @plasmacorral
5353

5454
# Confirmations team to own code for confirmations on UI.
55-
app/scripts/lib/ppom @MetaMask/confirmations
56-
app/scripts/lib/signature @MetaMask/confirmations
57-
app/scripts/lib/transaction/decode @MetaMask/confirmations
58-
app/scripts/lib/transaction/metrics.* @MetaMask/confirmations
59-
app/scripts/lib/transaction/util.* @MetaMask/confirmations
60-
ui/pages/confirmations @MetaMask/confirmations
55+
ui/pages/confirmations @MetaMask/confirmations
6156

6257
# MMI team is responsible for code related with Institutioanl version of MetaMask
6358
ui/pages/institutional @MetaMask/mmi

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,3 @@ html-report/
8080

8181
/app/images/branding
8282
/changed-files
83-
84-
# UI Integration tests
85-
test/integration/config/assets

.metamaskrc.dist

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
; This variable is required
55
INFURA_PROJECT_ID=00000000000
66

7-
; This variable is not required but it's necessary for the storybook
8-
; to render stories that use onchain data.
9-
INFURA_STORYBOOK_PROJECT_ID=
10-
117
;PASSWORD=METAMASK PASSWORD
128
;SEGMENT_WRITE_KEY=
139
;BRIDGE_USE_DEV_APIS=

.storybook/main.js

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
const path = require('path');
22
const { ProvidePlugin } = require('webpack');
33
const CopyWebpackPlugin = require('copy-webpack-plugin');
4-
const dotenv = require('dotenv');
5-
dotenv.config({ path: path.resolve(__dirname, '../.metamaskrc') });
6-
74
module.exports = {
85
core: {
96
disableTelemetry: true,
@@ -32,7 +29,6 @@ module.exports = {
3229
env: (config) => ({
3330
...config,
3431
ENABLE_CONFIRMATION_REDESIGN: true,
35-
INFURA_PROJECT_ID: process.env.INFURA_STORYBOOK_PROJECT_ID || '',
3632
}),
3733
// Uses babel.config.js settings and prevents "Missing class properties transform" error
3834
babel: async (options) => ({
@@ -52,16 +48,10 @@ module.exports = {
5248
config.resolve.alias['../../../../../../store/actions'] = require.resolve(
5349
'../ui/__mocks__/actions.js',
5450
);
55-
config.resolve.alias['../../../store/actions'] = require.resolve(
56-
'../ui/__mocks__/actions.js',
57-
);
5851
// Import within controller-utils crashes storybook.
5952
config.resolve.alias['@ethereumjs/util'] = require.resolve(
6053
'../ui/__mocks__/ethereumjs-util.js',
6154
);
62-
config.resolve.alias['./useNftCollectionsMetadata'] = require.resolve(
63-
'../ui/__mocks__/useNftCollectionsMetadata.js',
64-
);
6555
config.resolve.fallback = {
6656
child_process: false,
6757
constants: false,
@@ -96,7 +86,7 @@ module.exports = {
9686
sourceMap: true,
9787
implementation: require('sass-embedded'),
9888
sassOptions: {
99-
includePaths: ['ui/css/', 'node_modules/'],
89+
includePaths: ['ui/css/', 'node_modules/',],
10090
},
10191
},
10292
},
@@ -106,7 +96,12 @@ module.exports = {
10696
new CopyWebpackPlugin({
10797
patterns: [
10898
{
109-
from: path.join('ui', 'css', 'utilities', 'fonts/'),
99+
from: path.join(
100+
'ui',
101+
'css',
102+
'utilities',
103+
'fonts/',
104+
),
110105
to: 'fonts',
111106
},
112107
{

.storybook/test-data.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1596,7 +1596,6 @@ const state = {
15961596
},
15971597
},
15981598
},
1599-
openSeaEnabled: true,
16001599
},
16011600
appState: {
16021601
shouldClose: false,
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/lib/index.js b/lib/index.js
2+
index 64ff8344f6280d20988f8c3c81e1f248a1869e53..6739e7bd2271be6b861479ec384bbd007bdb5df8 100644
3+
--- a/lib/index.js
4+
+++ b/lib/index.js
5+
@@ -222,7 +222,6 @@ var _transform = require("./transform.js");
6+
var _transformFile = require("./transform-file.js");
7+
var _transformAst = require("./transform-ast.js");
8+
var _parse = require("./parse.js");
9+
-var thisFile = require("./index.js");
10+
;
11+
const version = "7.23.2";
12+
exports.version = version;

.yarn/patches/@babel-core-npm-7.25.9-4ae3bff7f3.patch

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)