Skip to content

Commit

Permalink
Merge branch 'develop' into fb/more-signature-performance-improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding authored Feb 21, 2023
2 parents 53118ab + 123098d commit 83a0b36
Show file tree
Hide file tree
Showing 942 changed files with 34,195 additions and 23,655 deletions.
225 changes: 223 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ workflows:
- prep-build-beta:
requires:
- prep-deps
- prep-build-desktop:
requires:
- prep-deps
- prep-build-flask:
requires:
- prep-deps
Expand All @@ -60,6 +63,9 @@ workflows:
- prep-build-test-mv3:
requires:
- prep-deps
- prep-build-test-nft:
requires:
- prep-deps
- prep-build-test-flask:
requires:
- prep-deps
Expand Down Expand Up @@ -94,6 +100,12 @@ workflows:
- test-e2e-chrome-mv3:
requires:
- prep-build-test-mv3
- test-e2e-chrome-nft:
requires:
- prep-build-test-nft
- test-e2e-firefox-nft:
requires:
- prep-build-test-nft
- test-unit-mocha:
requires:
- prep-deps
Expand Down Expand Up @@ -121,6 +133,9 @@ workflows:
- validate-source-maps-beta:
requires:
- prep-build-beta
- validate-source-maps-desktop:
requires:
- prep-build-desktop
- validate-source-maps-flask:
requires:
- prep-build-flask
Expand All @@ -132,6 +147,10 @@ workflows:
requires:
- prep-deps
- prep-build-beta
- test-mozilla-lint-desktop:
requires:
- prep-deps
- prep-build-desktop
- test-mozilla-lint-flask:
requires:
- prep-deps
Expand All @@ -150,9 +169,11 @@ workflows:
- upload-and-validate-coverage
- validate-source-maps
- validate-source-maps-beta
- validate-source-maps-desktop
- validate-source-maps-flask
- test-mozilla-lint
- test-mozilla-lint-beta
- test-mozilla-lint-desktop
- test-mozilla-lint-flask
- test-e2e-chrome
- test-e2e-firefox
Expand All @@ -173,10 +194,12 @@ workflows:
- prep-deps
- prep-build
- prep-build-beta
- prep-build-desktop
- prep-build-flask
- prep-build-storybook
- prep-build-ts-migration-dashboard
- prep-build-test-mv3
- prep-build-test-nft
- benchmark
- user-actions-benchmark
- stats-module-load-init
Expand All @@ -188,6 +211,7 @@ workflows:
requires:
- prep-deps
- prep-build
- prep-build-desktop
- prep-build-flask
- all-tests-pass
- job-publish-storybook:
Expand Down Expand Up @@ -362,6 +386,46 @@ jobs:
- dist-beta
- builds-beta

prep-build-desktop:
executor: node-browsers-medium-plus
steps:
- checkout
- attach_workspace:
at: .
- when:
condition:
not:
matches:
pattern: /^master$/
value: << pipeline.git.branch >>
steps:
- run:
name: build:dist
command: yarn build --build-type desktop dist
- when:
condition:
matches:
pattern: /^master$/
value: << pipeline.git.branch >>
steps:
- run:
name: build:prod
command: yarn build --build-type desktop prod
- 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-flask:
executor: node-browsers-medium-plus
steps:
Expand Down Expand Up @@ -444,6 +508,27 @@ jobs:
- dist-test-mv3
- builds-test-mv3

prep-build-test-nft:
executor: node-browsers-medium-plus
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Build extension with nft's enabled for testing
command: yarn build:test:nft
- run:
name: Move test build to 'dist-test-nft' to avoid conflict with production build
command: mv ./dist ./dist-test-nft
- run:
name: Move test zips to 'builds-test-nft' to avoid conflict with production build
command: mv ./builds ./builds-test-nft
- persist_to_workspace:
root: .
paths:
- dist-test-nft
- builds-test-nft

prep-build-test:
executor: node-browsers-medium-plus
steps:
Expand Down Expand Up @@ -491,7 +576,7 @@ jobs:
- persist_to_workspace:
root: .
paths:
- development/ts-migration-dashboard/build
- development/ts-migration-dashboard/build/final

test-yarn-dedupe:
executor: node-browsers
Expand Down Expand Up @@ -618,9 +703,17 @@ jobs:
yarn test:e2e:chrome --retries 2
fi
no_output_timeout: 20m
- run:
name: Merge JUnit report
command: |
if [ "$(ls -A test/test-results/e2e)" ]; then
yarn test:e2e:report
fi
- store_artifacts:
path: test-artifacts
destination: test-artifacts
- store_test_results:
path: test/test-results/e2e.xml

test-e2e-chrome-mv3:
executor: node-browsers
Expand Down Expand Up @@ -650,6 +743,78 @@ jobs:
path: test-artifacts
destination: test-artifacts

test-e2e-chrome-nft:
executor: node-browsers
parallelism: 1
steps:
- checkout
- run:
name: Re-Install Chrome
command: ./.circleci/scripts/chrome-install.sh
- attach_workspace:
at: .
- run:
name: Move test build to dist
command: mv ./dist-test-nft ./dist
- run:
name: Move test zips to builds
command: mv ./builds-test-nft ./builds
- run:
name: test:e2e:chrome
command: |
if .circleci/scripts/test-run-e2e.sh
then
yarn test:e2e:chrome:nft --retries 2
fi
no_output_timeout: 20m
- run:
name: Merge JUnit report
command: |
if [ "$(ls -A test/test-results/e2e)" ]; then
yarn test:e2e:report
fi
- store_artifacts:
path: test-artifacts
destination: test-artifacts
- store_test_results:
path: test/test-results/e2e.xml

test-e2e-firefox-nft:
executor: node-browsers
parallelism: 1
steps:
- checkout
- run:
name: Install Firefox
command: ./.circleci/scripts/firefox-install.sh
- attach_workspace:
at: .
- run:
name: Move test build to dist
command: mv ./dist-test-nft ./dist
- run:
name: Move test zips to builds
command: mv ./builds-test-nft ./builds
- run:
name: test:e2e:firefox
command: |
if .circleci/scripts/test-run-e2e.sh
then
yarn test:e2e:firefox:nft --retries 2
fi
no_output_timeout: 20m
- run:
name: Merge JUnit report
command: |
if [ "$(ls -A test/test-results/e2e)" ]; then
yarn test:e2e:report
fi
- store_artifacts:
path: test-artifacts
destination: test-artifacts
- store_test_results:
path: test/test-results/e2e.xml

test-e2e-firefox-snaps:
executor: node-browsers
parallelism: 2
Expand All @@ -674,9 +839,17 @@ jobs:
yarn test:e2e:firefox:snaps --retries 2
fi
no_output_timeout: 20m
- run:
name: Merge JUnit report
command: |
if [ "$(ls -A test/test-results/e2e)" ]; then
yarn test:e2e:report
fi
- store_artifacts:
path: test-artifacts
destination: test-artifacts
- store_test_results:
path: test/test-results/e2e.xml

test-e2e-chrome-snaps:
executor: node-browsers
Expand All @@ -702,9 +875,17 @@ jobs:
yarn test:e2e:chrome:snaps --retries 2
fi
no_output_timeout: 20m
- run:
name: Merge JUnit report
command: |
if [ "$(ls -A test/test-results/e2e)" ]; then
yarn test:e2e:report
fi
- store_artifacts:
path: test-artifacts
destination: test-artifacts
- store_test_results:
path: test/test-results/e2e.xml

test-e2e-firefox:
executor: node-browsers-medium-plus
Expand All @@ -730,9 +911,17 @@ jobs:
yarn test:e2e:firefox --retries 2
fi
no_output_timeout: 20m
- run:
name: Merge JUnit report
command: |
if [ "$(ls -A test/test-results/e2e)" ]; then
yarn test:e2e:report
fi
- store_artifacts:
path: test-artifacts
destination: test-artifacts
- store_test_results:
path: test/test-results/e2e.xml

benchmark:
executor: node-browsers-medium-plus
Expand Down Expand Up @@ -872,7 +1061,7 @@ jobs:
path: storybook-build
destination: storybook
- store_artifacts:
path: development/ts-migration-dashboard/build
path: development/ts-migration-dashboard/build/final
destination: ts-migration-dashboard
- run:
name: Set branch parent commit env var
Expand Down Expand Up @@ -1031,6 +1220,22 @@ jobs:
name: Validate source maps
command: yarn validate-source-maps

validate-source-maps-desktop:
executor: node-browsers
steps:
- checkout
- 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-flask:
executor: node-browsers
steps:
Expand Down Expand Up @@ -1073,6 +1278,22 @@ jobs:
name: test:mozilla-lint
command: NODE_OPTIONS=--max_old_space_size=3072 yarn mozilla-lint

test-mozilla-lint-desktop:
executor: node-browsers
steps:
- checkout
- 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: NODE_OPTIONS=--max_old_space_size=3072 yarn mozilla-lint

test-mozilla-lint-flask:
executor: node-browsers
steps:
Expand Down
4 changes: 2 additions & 2 deletions .circleci/scripts/chrome-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ set -u
set -o pipefail

# To get the latest version, see <https://www.ubuntuupdates.org/ppa/google_chrome?dist=stable>
CHROME_VERSION='109.0.5414.74-1'
CHROME_VERSION='110.0.5481.77-1'
CHROME_BINARY="google-chrome-stable_${CHROME_VERSION}_amd64.deb"
CHROME_BINARY_URL="https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/${CHROME_BINARY}"

# To retrieve this checksum, run the `wget` and `shasum` commands below
CHROME_BINARY_SHA512SUM='5fa92a552588894eca752575851f4c1a74b02b02233170a03bf642dad58c8544f5af1af919598f8e126efbf6b92b5cbdbdbf58a7df6033ce761587c2bd840629'
CHROME_BINARY_SHA512SUM='e2b76501ca6fa0a5519b8fa1e3f366c88e587c397e4f559a439e6c2d5f19c37ea69313f06eaa94f1da54b7ed7a3f795883603c7c75439a2f6baf87b02a4f250f'

wget -O "${CHROME_BINARY}" -t 5 "${CHROME_BINARY_URL}"

Expand Down
Loading

0 comments on commit 83a0b36

Please sign in to comment.