Skip to content

Commit b3949d9

Browse files
authored
Merge pull request #24325 from MetaMask/Version-v11.14.4
Version v11.14.4
2 parents e70899b + 16b8ba4 commit b3949d9

File tree

449 files changed

+6210
-15892
lines changed

Some content is hidden

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

449 files changed

+6210
-15892
lines changed

.circleci/config.yml

+10-89
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,6 @@ aliases:
6767
git checkout -B "$CIRCLE_BRANCH" "$CIRCLE_SHA1"
6868
fi
6969
70-
# Check if MMI Optional tests should run
71-
- &check-mmi-optional
72-
name: Check if MMI Optional tests should run
73-
command: |
74-
RUN_MMI_OPTIONAL=$(cat ./RUN_MMI_OPTIONAL)
75-
if [[ "${CIRCLE_BRANCH}" == "develop" || "${RUN_MMI_OPTIONAL}" == "true" ]]; then
76-
echo "Running MMI Optional tests"
77-
else
78-
echo "Skipping MMI Optional tests"
79-
circleci step halt
80-
fi
81-
8270
workflows:
8371
test_and_release:
8472
jobs:
@@ -89,7 +77,6 @@ workflows:
8977
- trigger-beta-build:
9078
requires:
9179
- prep-deps
92-
- check-pr-tag
9380
- prep-deps
9481
- test-deps-audit:
9582
requires:
@@ -145,7 +132,6 @@ workflows:
145132
- prep-build-test-mmi-playwright:
146133
requires:
147134
- prep-deps
148-
- check-pr-tag
149135
- prep-build-storybook:
150136
requires:
151137
- prep-deps
@@ -387,68 +373,6 @@ jobs:
387373
name: Create GitHub Pull Request for version
388374
command: .circleci/scripts/release-create-release-pr.sh
389375

390-
check-pr-tag:
391-
docker:
392-
- image: cimg/base:stable
393-
steps:
394-
- run:
395-
name: Check for MMI Team Tag
396-
command: |
397-
#!/bin/bash
398-
399-
# GitHub Personal Access Token for API Authentication
400-
GITHUB_TOKEN="${GITHUB_TOKEN}"
401-
BRANCH="${CIRCLE_BRANCH}"
402-
403-
# Fetch the PRs associated with the current branch and check the response
404-
PR_RESPONSE=$(curl -s -H "Authorization: token ${GITHUB_TOKEN}" \
405-
"https://api.github.com/repos/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pulls?state=open&head=${CIRCLE_PROJECT_USERNAME}:${BRANCH}")
406-
echo "https://api.github.com/repos/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pulls?state=open&head=${CIRCLE_PROJECT_USERNAME}:${BRANCH}"
407-
408-
# Check if the response contains valid JSON
409-
if ! echo "$PR_RESPONSE" | jq empty; then
410-
echo "Failed to parse JSON response."
411-
echo "$PR_RESPONSE"
412-
exit 1
413-
fi
414-
415-
# Check if we received an array of PRs
416-
if ! echo "$PR_RESPONSE" | jq -e '. | type == "array"'; then
417-
echo "$PR_RESPONSE"
418-
echo "Expected an array of PRs, got something else."
419-
exit 1
420-
fi
421-
422-
# Check if the array of PRs is empty
423-
PR_COUNT=$(echo "$PR_RESPONSE" | jq '. | length')
424-
425-
# If no PRs are found, exit gracefully
426-
if [ "$PR_COUNT" -eq 0 ]; then
427-
echo "No open PRs found. Exiting."
428-
echo "false" > ./RUN_MMI_OPTIONAL
429-
exit 0
430-
fi
431-
432-
# Extract label names from the PR_RESPONSE
433-
LABEL_NAMES=$(echo "$PR_RESPONSE" | jq -r '.[0].labels[].name')
434-
435-
echo "Labels found: $LABEL_NAMES"
436-
437-
# Check if "team-mmi" label is present
438-
if echo "$LABEL_NAMES" | grep -qw "team-mmi"; then
439-
echo "team-mmi tag found."
440-
# assign the RUN_MMI_OPTIONAL variable to true
441-
echo "true" > ./RUN_MMI_OPTIONAL
442-
else
443-
echo "team-mmi tag not found."
444-
# assign the RUN_MMI_OPTIONAL variable to false
445-
echo "false" > ./RUN_MMI_OPTIONAL
446-
fi
447-
- persist_to_workspace:
448-
root: .
449-
paths:
450-
- RUN_MMI_OPTIONAL
451-
452376
prep-deps:
453377
executor: node-browsers-medium
454378
steps:
@@ -716,7 +640,6 @@ jobs:
716640
- run: *shallow-git-clone
717641
- attach_workspace:
718642
at: .
719-
- run: *check-mmi-optional
720643
- run:
721644
name: Build MMI extension for Playwright e2e
722645
command: |
@@ -731,7 +654,6 @@ jobs:
731654
- persist_to_workspace:
732655
root: .
733656
paths:
734-
- RUN_MMI_OPTIONAL
735657
- dist-test-mmi-playwright
736658
- builds-test-mmi-playwright
737659
- store_artifacts:
@@ -953,7 +875,7 @@ jobs:
953875
command: |
954876
if .circleci/scripts/test-run-e2e.sh
955877
then
956-
timeout 20m yarn test:e2e:chrome --retries 2
878+
timeout 20m yarn test:e2e:chrome --retries 2 --debug
957879
fi
958880
no_output_timeout: 5m
959881
- store_artifacts:
@@ -980,7 +902,7 @@ jobs:
980902
command: |
981903
if .circleci/scripts/test-run-e2e.sh
982904
then
983-
timeout 20m yarn test:e2e:chrome --retries 2
905+
timeout 20m yarn test:e2e:chrome --retries 2 --debug
984906
fi
985907
no_output_timeout: 5m
986908
environment:
@@ -1009,7 +931,7 @@ jobs:
1009931
command: |
1010932
if .circleci/scripts/test-run-e2e.sh
1011933
then
1012-
timeout 20m yarn test:e2e:chrome --retries 2 || echo "Temporarily suppressing MV3 e2e test failures"
934+
timeout 20m yarn test:e2e:chrome --retries 2 --debug || echo "Temporarily suppressing MV3 e2e test failures"
1013935
fi
1014936
no_output_timeout: 5m
1015937
- store_artifacts:
@@ -1087,7 +1009,7 @@ jobs:
10871009
command: |
10881010
if .circleci/scripts/test-run-e2e.sh
10891011
then
1090-
timeout 20m yarn test:e2e:chrome:rpc --retries 2 --build-type=mmi
1012+
timeout 20m yarn test:e2e:chrome:rpc --retries 2 --debug --build-type=mmi
10911013
fi
10921014
no_output_timeout: 5m
10931015
- store_artifacts:
@@ -1107,7 +1029,7 @@ jobs:
11071029
command: |
11081030
if .circleci/scripts/test-run-e2e.sh
11091031
then
1110-
yarn test:e2e:single test/e2e/vault-decryption-chrome.spec.js --browser chrome --retries 2
1032+
yarn test:e2e:single test/e2e/vault-decryption-chrome.spec.js --browser chrome --retries 2 --debug
11111033
fi
11121034
no_output_timeout: 5m
11131035

@@ -1129,7 +1051,7 @@ jobs:
11291051
command: |
11301052
if .circleci/scripts/test-run-e2e.sh
11311053
then
1132-
timeout 20m yarn test:e2e:firefox:flask --retries 2
1054+
timeout 20m yarn test:e2e:firefox:flask --retries 2 --debug
11331055
fi
11341056
no_output_timeout: 5m
11351057
- store_artifacts:
@@ -1156,7 +1078,7 @@ jobs:
11561078
command: |
11571079
if .circleci/scripts/test-run-e2e.sh
11581080
then
1159-
timeout 20m yarn test:e2e:chrome:flask --retries 2
1081+
timeout 20m yarn test:e2e:chrome:flask --retries 2 --debug
11601082
fi
11611083
no_output_timeout: 5m
11621084
- store_artifacts:
@@ -1183,7 +1105,7 @@ jobs:
11831105
command: |
11841106
if .circleci/scripts/test-run-e2e.sh
11851107
then
1186-
timeout 20m yarn test:e2e:chrome:mmi --retries 2 --build-type=mmi
1108+
timeout 20m yarn test:e2e:chrome:mmi --retries 2 --debug --build-type=mmi
11871109
fi
11881110
no_output_timeout: 5m
11891111
- store_artifacts:
@@ -1199,7 +1121,6 @@ jobs:
11991121
- run: *shallow-git-clone
12001122
- attach_workspace:
12011123
at: .
1202-
- run: *check-mmi-optional
12031124
- run:
12041125
name: Move test build to dist
12051126
command: mv ./dist-test-mmi-playwright ./dist
@@ -1251,7 +1172,7 @@ jobs:
12511172
command: |
12521173
if .circleci/scripts/test-run-e2e.sh
12531174
then
1254-
timeout 20m yarn test:e2e:firefox --retries 2
1175+
timeout 20m yarn test:e2e:firefox --retries 2 --debug
12551176
fi
12561177
no_output_timeout: 5m
12571178
- store_artifacts:
@@ -1650,4 +1571,4 @@ jobs:
16501571
steps:
16511572
- run:
16521573
name: All Tests Passed
1653-
command: echo 'whew - everything passed!'
1574+
command: echo 'weew - everything passed!'

.eslintrc.js

-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ module.exports = {
135135
path.resolve(__dirname, '.eslintrc.typescript-compat.js'),
136136
],
137137
rules: {
138-
'@typescript-eslint/no-explicit-any': 'error',
139138
// this rule is new, but we didn't use it before, so it's off now
140139
'@typescript-eslint/no-duplicate-enum-values': 'off',
141140
'@typescript-eslint/no-shadow': [

.github/CODEOWNERS

-3
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,3 @@ privacy-snapshot.json @MetaMask/extension-privacy-reviewers
5151
# For now, restricting approvals inside the .devcontainer folder to devs
5252
# who were involved with the Codespaces project.
5353
.devcontainer/ @MetaMask/library-admins @HowardBraham @plasmacorral @brad-decker
54-
55-
# Confirmations UX team to own code for confirmations on UI.
56-
ui/pages/confirmations @MetaMask/confirmations-ux @MetaMask/confirmations-system-team

.github/scripts/check-pr-has-required-labels.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async function main(): Promise<void> {
7373
if (!hasTeamLabel) {
7474
errorMessage += 'No team labels found on the PR. ';
7575
}
76-
errorMessage += `Please make sure the PR is appropriately labeled before merging it.\n\nSee labeling guidelines for more detail: https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md`;
76+
errorMessage += `Please make sure the PR is appropriately labeled before merging it.\n\nSee labeling guidelines for more detail: https://github.com/MetaMask/metamask-extension/blob/develop/.github/LABELING_GUIDELINES.md`;
7777
core.setFailed(errorMessage);
7878
process.exit(1);
7979
}

.github/workflows/security-code-scanner.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ jobs:
3232
node_modules
3333
rules_excluded:
3434
example
35-
project_metrics_token: ${{secrets.SECURITY_SCAN_METRICS_TOKEN}}
35+
mixpanel_project_token: ${{secrets.SECURITY_CODE_SCANNER_MIXPANEL_TOKEN}}
3636
slack_webhook: ${{ secrets.APPSEC_BOT_SLACK_WEBHOOK }}

.github/workflows/sonar.yml

+2-12
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@ on:
44
secrets:
55
SONAR_TOKEN:
66
required: true
7-
pull_request:
8-
branches:
9-
- develop
10-
types:
11-
- opened
12-
- reopened
13-
- synchronize
14-
- labeled
15-
- unlabeled
16-
177
jobs:
188
sonarcloud:
199
name: SonarCloud
@@ -23,8 +13,8 @@ jobs:
2313
with:
2414
fetch-depth: 0 # Shallow clones should be disabled for better relevancy of analysis
2515
- name: SonarCloud Scan
26-
# This is SonarSource/[email protected]
27-
uses: SonarSource/sonarcloud-github-action@4b4d7634dab97dcee0b75763a54a6dc92a9e6bc1
16+
# v1.9.1
17+
uses: SonarSource/sonarcloud-github-action@5875562561d22a34be0c657405578705a169af6c
2818
with:
2919
args: >
3020
-Dsonar.javascript.lcov.reportPaths=tests/coverage/lcov.info

.metamaskrc.dist

-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ BLOCKAID_PUBLIC_KEY=
2121
; SELENIUM_HEADLESS=
2222
; Set this to 1 to make chrome e2e tests disable DoH/DoT and use system DNS
2323
; SELENIUM_USE_SYSTEM_DNS=
24-
ENABLE_CONFIRMATION_REDESIGN=

.storybook/main.js

-10
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ module.exports = {
6464
{
6565
loader: 'css-loader',
6666
options: {
67-
esModule: false,
6867
import: false,
6968
url: false,
7069
},
@@ -84,15 +83,6 @@ module.exports = {
8483
config.plugins.push(
8584
new CopyWebpackPlugin({
8685
patterns: [
87-
{
88-
from: path.join(
89-
'ui',
90-
'css',
91-
'utilities',
92-
'fonts/',
93-
),
94-
to: 'fonts',
95-
},
9686
{
9787
from: path.join(
9888
'node_modules',

.vscode/cspell.json

-84
This file was deleted.

.vscode/launch.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"type": "pickString",
3939
"id": "browserToUse",
4040
"description": "Which browser do you want to test with?",
41-
"options": ["chrome", "firefox", "all"],
41+
"options": ["chrome", "firefox"],
4242
"default": "chrome"
4343
}
4444
],

0 commit comments

Comments
 (0)