Skip to content

Commit fce0749

Browse files
authored
Merge branch 'main' into fix-connections-menu-dqa
2 parents 0d852b9 + 939f955 commit fce0749

File tree

440 files changed

+13198
-7684
lines changed

Some content is hidden

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

440 files changed

+13198
-7684
lines changed

.circleci/config.yml

+3-27
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ version: 2.1
33
executors:
44
node-browsers-small:
55
docker:
6-
- image: cimg/node:22.13-browsers
6+
- image: cimg/node:22.14-browsers
77
resource_class: small
88
environment:
99
NODE_OPTIONS: --max_old_space_size=2048
1010
node-browsers-medium:
1111
docker:
12-
- image: cimg/node:22.13-browsers
12+
- image: cimg/node:22.14-browsers
1313
resource_class: medium
1414
environment:
1515
NODE_OPTIONS: --max_old_space_size=3072
@@ -21,7 +21,7 @@ executors:
2121
NODE_OPTIONS: --max_old_space_size=6144
2222
node-browsers-medium-plus:
2323
docker:
24-
- image: cimg/node:22.13-browsers
24+
- image: cimg/node:22.14-browsers
2525
resource_class: medium+
2626
environment:
2727
NODE_OPTIONS: --max_old_space_size=4096
@@ -95,10 +95,6 @@ workflows:
9595
pattern: /^rerun-from-failed.*/
9696
value: << pipeline.schedule.name >>
9797
jobs:
98-
- create_release_pull_request:
99-
<<: *rc_branch_only
100-
requires:
101-
- prep-deps
10298
- prep-deps
10399
- get-changed-files-with-git-diff:
104100
filters:
@@ -277,26 +273,6 @@ workflows:
277273
- prep-deps
278274

279275
jobs:
280-
create_release_pull_request:
281-
executor: node-browsers-medium
282-
steps:
283-
- checkout
284-
- run: sudo corepack enable
285-
- attach_workspace:
286-
at: .
287-
- run:
288-
name: Bump manifest version
289-
command: .circleci/scripts/release-bump-manifest-version.sh
290-
- run:
291-
name: Update changelog
292-
command: yarn update-changelog --rc
293-
- run:
294-
name: Commit changes
295-
command: .circleci/scripts/release-commit-version-bump.sh
296-
- run:
297-
name: Create GitHub Pull Request for version
298-
command: .circleci/scripts/release-create-release-pr.sh
299-
300276
prep-deps:
301277
executor: node-browsers-medium
302278
steps:

.circleci/scripts/bundle-stats-commit.sh

+27-32
Original file line numberDiff line numberDiff line change
@@ -38,43 +38,38 @@ git config --global user.email "[email protected]"
3838

3939
git config --global user.name "MetaMask Bot"
4040

41-
git clone [email protected]:MetaMask/extension_bundlesize_stats.git temp
42-
43-
{
44-
echo " '${CIRCLE_SHA1}': ";
45-
cat test-artifacts/chrome/bundle_size_stats.json;
46-
echo ", ";
47-
} >> temp/stats/bundle_size_data.temp.js
48-
49-
cp temp/stats/bundle_size_data.temp.js temp/stats/bundle_size_data.js
50-
51-
echo " }" >> temp/stats/bundle_size_data.js
52-
53-
if [ -f temp/stats/bundle_size_data.json ]; then
54-
# copy bundle_size_data.json in bundle_size_data.temp.json without last 2 lines
55-
head -$(($(wc -l < temp/stats/bundle_size_data.json) - 2)) temp/stats/bundle_size_data.json > bundle_size_stats.temp.json
56-
57-
{
58-
echo "},";
59-
echo "\"$CIRCLE_SHA1\":";
60-
cat test-artifacts/chrome/bundle_size_stats.json;
61-
echo "}";
62-
} >> bundle_size_stats.temp.json
63-
else
64-
{
65-
echo "{";
66-
echo "\"$CIRCLE_SHA1\":";
67-
cat test-artifacts/chrome/bundle_size_stats.json;
68-
echo "}";
69-
} > bundle_size_stats.temp.json
41+
git clone --depth=1 [email protected]:MetaMask/extension_bundlesize_stats.git temp
42+
43+
BUNDLE_SIZE_FILE="test-artifacts/chrome/bundle_size_stats.json"
44+
STATS_FILE="temp/stats/bundle_size_data.json"
45+
TEMP_FILE="temp/stats/bundle_size_data.temp.json"
46+
47+
# Ensure the JSON file exists
48+
if [[ ! -f "$STATS_FILE" ]]; then
49+
echo "{}" > "$STATS_FILE"
7050
fi
7151

72-
jq . bundle_size_stats.temp.json > temp/stats/bundle_size_data.json
73-
rm bundle_size_stats.temp.json
52+
# Validate JSON files before modification
53+
jq . "$STATS_FILE" > /dev/null || { echo "Error: Existing stats JSON is invalid"; exit 1; }
54+
jq . "$BUNDLE_SIZE_FILE" > /dev/null || { echo "Error: New bundle size JSON is invalid"; exit 1; }
55+
56+
# Check if the SHA already exists in the stats file
57+
if jq -e "has(\"$CIRCLE_SHA1\")" "$STATS_FILE" > /dev/null; then
58+
echo "SHA $CIRCLE_SHA1 already exists in stats file. No new commit needed."
59+
exit 0
60+
fi
61+
62+
# Append new bundle size data correctly using jq
63+
jq --arg sha "$CIRCLE_SHA1" --argjson data "$(cat "$BUNDLE_SIZE_FILE")" \
64+
'. + {($sha): $data}' "$STATS_FILE" > "$TEMP_FILE"
65+
66+
# Overwrite the original JSON file with the corrected version
67+
mv "$TEMP_FILE" "$STATS_FILE"
7468

7569
cd temp
7670

77-
git add .
71+
# Only add the JSON file
72+
git add stats/bundle_size_data.json
7873

7974
git commit --message "Adding bundle size at commit: ${CIRCLE_SHA1}"
8075

.circleci/scripts/release-bump-manifest-version.sh

-34
This file was deleted.

.circleci/scripts/release-commit-version-bump.sh

-44
This file was deleted.

.circleci/scripts/release-create-release-pr.sh

-48
This file was deleted.

.github/CODEOWNERS

+2-1
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,5 @@ ui/components/ui/deprecated-networks @MetaMask/metamask-assets
137137
ui/components/ui/nft-collection-image @MetaMask/metamask-assets
138138

139139
# Extension Platform
140-
yarnrc.yml @MetaMask/extension-platform
140+
yarnrc.yml @MetaMask/extension-platform
141+
test/e2e/mock-e2e-allowlist.js @MetaMask/extension-platform

0 commit comments

Comments
 (0)