Skip to content

Commit

Permalink
Merge branch 'permit_signature_simulation_info' into fix_simulation_d…
Browse files Browse the repository at this point in the history
…isplay
  • Loading branch information
jpuri authored Jun 12, 2024
2 parents 45ada63 + df189d4 commit 18e0020
Show file tree
Hide file tree
Showing 306 changed files with 7,370 additions and 15,883 deletions.
145 changes: 2 additions & 143 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ workflows:
- validate-lavamoat-policy-webapp:
matrix:
parameters:
build-type: [main, beta, flask, mmi, desktop]
build-type: [main, beta, flask, mmi]
requires:
- prep-deps
- prep-build-mmi:
Expand All @@ -121,12 +121,6 @@ workflows:
- prep-build-mv2:
requires:
- prep-deps
- prep-build-desktop:
filters:
branches:
only: develop
requires:
- prep-deps
- prep-build-flask:
requires:
- prep-deps
Expand All @@ -139,9 +133,6 @@ workflows:
- prep-build-test-mv2:
requires:
- prep-deps
- prep-build-multichain-test:
requires:
- prep-deps
- prep-build-confirmation-redesign-test:
requires:
- prep-deps
Expand Down Expand Up @@ -180,9 +171,6 @@ workflows:
- test-e2e-chrome:
requires:
- prep-build-test
- test-e2e-chrome-multichain:
requires:
- prep-build-multichain-test
- test-e2e-chrome-confirmation-redesign:
requires:
- prep-build-confirmation-redesign-test
Expand Down Expand Up @@ -251,12 +239,6 @@ workflows:
- validate-source-maps-beta:
requires:
- trigger-beta-build
- validate-source-maps-desktop:
filters:
branches:
only: develop
requires:
- prep-build-desktop
- validate-source-maps-mmi:
requires:
- prep-build-mmi
Expand All @@ -270,13 +252,6 @@ workflows:
requires:
- prep-deps
- prep-build-mv2
- test-mozilla-lint-desktop:
filters:
branches:
only: develop
requires:
- prep-deps
- prep-build-desktop
- test-mozilla-lint-flask-mv2:
requires:
- prep-deps
Expand All @@ -298,14 +273,11 @@ workflows:
- upload-and-validate-coverage
- validate-source-maps
- validate-source-maps-beta
- validate-source-maps-desktop
- validate-source-maps-flask
- validate-source-maps-mmi
- test-mozilla-lint-mv2
- test-mozilla-lint-desktop
- test-mozilla-lint-flask-mv2
- test-e2e-chrome
- test-e2e-chrome-multichain
- test-e2e-chrome-multiple-providers
- test-e2e-chrome-confirmation-redesign
- test-e2e-firefox-confirmation-redesign
Expand All @@ -331,7 +303,6 @@ workflows:
- prep-build
- prep-build-mv2
- trigger-beta-build
- prep-build-desktop
- prep-build-mmi
- prep-build-flask
- prep-build-flask-mv2
Expand All @@ -349,7 +320,6 @@ workflows:
- prep-deps
- prep-build
- prep-build-mv2
- prep-build-desktop
- prep-build-mmi
- prep-build-flask
- prep-build-flask-mv2
Expand Down Expand Up @@ -611,31 +581,6 @@ jobs:
- dist-mv2
- builds-mv2

prep-build-desktop:
executor: node-browsers-medium-plus
steps:
- run: *shallow-git-clone
- run: sudo corepack enable
- attach_workspace:
at: .
- run:
name: build:dist
command: yarn build --build-type desktop dist
- run:
name: build:debug
command: find dist/ -type f -exec md5sum {} \; | sort -k 2
- run:
name: Move desktop build to 'dist-desktop' to avoid conflict with production build
command: mv ./dist ./dist-desktop
- run:
name: Move desktop zips to 'builds-desktop' to avoid conflict with production build
command: mv ./builds ./builds-desktop
- persist_to_workspace:
root: .
paths:
- dist-desktop
- builds-desktop

prep-build-mmi:
executor: node-browsers-medium-plus
steps:
Expand Down Expand Up @@ -746,7 +691,7 @@ jobs:
steps:
- run:
name: build:prod
command: yarn build --build-type flask prod
command: ENABLE_MV3=false yarn build --build-type flask prod
- run:
name: build:debug
command: find dist/ -type f -exec md5sum {} \; | sort -k 2
Expand Down Expand Up @@ -905,28 +850,6 @@ jobs:
- dist-test-mv2
- builds-test-mv2

prep-build-multichain-test:
executor: node-browsers-medium-plus
steps:
- run: *shallow-git-clone
- run: sudo corepack enable
- attach_workspace:
at: .
- run:
name: Build extension for testing
command: MULTICHAIN=1 yarn build:test
- run:
name: Move test build to 'dist-test' to avoid conflict with production build
command: mv ./dist ./dist-test-multichain
- run:
name: Move test zips to 'builds-test' to avoid conflict with production build
command: mv ./builds ./builds-test-multichain
- persist_to_workspace:
root: .
paths:
- dist-test-multichain
- builds-test-multichain

prep-build-confirmation-redesign-test:
executor: node-browsers-medium-plus
steps:
Expand Down Expand Up @@ -1140,36 +1063,6 @@ jobs:
- store_test_results:
path: test/test-results/e2e

test-e2e-chrome-multichain:
executor: node-browsers-medium-plus
parallelism: 20
steps:
- run: *shallow-git-clone
- run: sudo corepack enable
- attach_workspace:
at: .
- run:
name: Move test build to dist
command: mv ./dist-test-multichain ./dist
- run:
name: Move test zips to builds
command: mv ./builds-test-multichain ./builds
- run:
name: test:e2e:chrome-multichain
command: |
if .circleci/scripts/test-run-e2e.sh
then
timeout 20m yarn test:e2e:chrome --retries 1
fi
no_output_timeout: 5m
environment:
MULTICHAIN: 1
- store_artifacts:
path: test-artifacts
destination: test-artifacts
- store_test_results:
path: test/test-results/e2e

test-e2e-chrome-confirmation-redesign:
executor: node-browsers-medium-plus
parallelism: 20
Expand Down Expand Up @@ -1797,23 +1690,6 @@ jobs:
command: |
.circleci/scripts/validate-source-maps-beta.sh
validate-source-maps-desktop:
executor: node-browsers-small
steps:
- run: *shallow-git-clone
- run: sudo corepack enable
- attach_workspace:
at: .
- run:
name: Move desktop build to dist
command: mv ./dist-desktop ./dist
- run:
name: Move desktop zips to builds
command: mv ./builds-desktop ./builds
- run:
name: Validate source maps
command: yarn validate-source-maps

validate-source-maps-mmi:
executor: node-browsers-small
steps:
Expand Down Expand Up @@ -1899,23 +1775,6 @@ jobs:
name: test:mozilla-lint
command: yarn mozilla-lint

test-mozilla-lint-desktop:
executor: node-browsers-medium
steps:
- run: *shallow-git-clone
- run: sudo corepack enable
- attach_workspace:
at: .
- run:
name: Move desktop build to dist
command: mv ./dist-desktop ./dist
- run:
name: Move desktop zips to builds
command: mv ./builds-desktop ./builds
- run:
name: test:mozilla-lint
command: yarn mozilla-lint

test-mozilla-lint-flask-mv2:
executor: node-browsers-medium
steps:
Expand Down
4 changes: 2 additions & 2 deletions .circleci/scripts/release-create-gh-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ then
release_body="$(awk -v version="${tag##v}" -f .circleci/scripts/show-changelog.awk CHANGELOG.md)"
hub release create \
--attach builds/metamask-chrome-*.zip \
--attach builds/metamask-firefox-*.zip \
--attach builds-mv2/metamask-firefox-*.zip \
--attach builds-flask/metamask-flask-chrome-*.zip \
--attach builds-flask/metamask-flask-firefox-*.zip \
--attach builds-flask-mv2/metamask-flask-firefox-*.zip \
--attach builds-mmi/metamask-mmi-chrome-*.zip \
--attach builds-mmi/metamask-mmi-firefox-*.zip \
--message "Version ${tag##v}" \
Expand Down
5 changes: 3 additions & 2 deletions .devcontainer/download-builds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ async function getBuilds(branch: string, jobNames: string[]) {

console.log(`jobName: ${jobName}, jobId: ${jobId}`);

// Using the CircleCI API version 1.1 here, because this endpoint recently started requiring Authorization in v2
const response = await fetch(
`https://circleci.com/api/v2/project/gh/MetaMask/metamask-extension/${jobId}/artifacts`,
`https://circleci.com/api/v1.1/project/gh/MetaMask/metamask-extension/${jobId}/artifacts`,
);

const artifacts = (await response.json()).items;
const artifacts = await response.json();

if (!artifacts || artifacts.length === 0) {
return [];
Expand Down
33 changes: 0 additions & 33 deletions .github/workflows/trigger-metamask-desktop-ci.yml

This file was deleted.

Loading

0 comments on commit 18e0020

Please sign in to comment.