Skip to content

Commit

Permalink
Merge branch 'master' into mm/pg-perturbator and some other stuff cus I
Browse files Browse the repository at this point in the history
forgot to finish merge.
  • Loading branch information
maramihali committed Oct 16, 2023
2 parents bf18f8e + 5d93a47 commit d2ee57c
Show file tree
Hide file tree
Showing 782 changed files with 33,813 additions and 10,894 deletions.
175 changes: 129 additions & 46 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -438,11 +438,33 @@ jobs:
- run:
name: "Build and test"
# We need to force not to use docker buildkit because for some reason on arm only, it ends up making a call
# out to eu-west2 despite the image being locally tagged, resulting in unauthorised 401. Weird docker bug?
# out to eu-west2 despite the image being locally tagged, resulting in unauthorized 401. Weird docker bug?
command: |
echo "export DOCKER_BUILDKIT=" > $BASH_ENV
build aztec-sandbox false arm64
aztec-p2p-bootstrap:
machine:
image: ubuntu-2204:2023.07.2
resource_class: large
steps:
- *checkout
- *setup_env
- run:
name: "Build and test"
command: build p2p-bootstrap | add_timestamps

aztec-node:
machine:
image: ubuntu-2204:2023.07.2
resource_class: large
steps:
- *checkout
- *setup_env
- run:
name: "Build and test"
command: build aztec-node | add_timestamps

pxe-x86_64:
machine:
image: ubuntu-2204:2023.07.2
Expand All @@ -464,7 +486,7 @@ jobs:
- run:
name: "Build and test"
# We need to force not to use docker buildkit because for some reason on arm only, it ends up making a call
# out to eu-west2 despite the image being locally tagged, resulting in unauthorised 401. Weird docker bug?
# out to eu-west2 despite the image being locally tagged, resulting in unauthorized 401. Weird docker bug?
command: |
echo "export DOCKER_BUILDKIT=" > $BASH_ENV
build pxe false arm64
Expand Down Expand Up @@ -504,7 +526,7 @@ jobs:
name: "Test via adhoc script"
command: ./yarn-project/boxes/blank/run_tests

boxes-private-token:
boxes-token:
machine:
image: ubuntu-2204:2023.07.2
resource_class: large
Expand All @@ -513,7 +535,7 @@ jobs:
- *setup_env
- run:
name: "Test via adhoc script"
command: ./yarn-project/boxes/private-token/run_tests
command: ./yarn-project/boxes/token/run_tests

canary:
machine:
Expand Down Expand Up @@ -609,18 +631,6 @@ jobs:
command: cond_run_script end-to-end ./scripts/run_tests_local e2e_private_airdrop.test.ts
environment: { DEBUG: "aztec:*" }

e2e-private-token-contract:
machine:
image: ubuntu-2204:2023.07.2
resource_class: large
steps:
- *checkout
- *setup_env
- run:
name: "Test"
command: cond_run_script end-to-end ./scripts/run_tests_local e2e_private_token_contract.test.ts
environment: { DEBUG: "aztec:*" }

e2e-sandbox-example:
machine:
image: ubuntu-2204:2023.07.2
Expand Down Expand Up @@ -955,9 +965,20 @@ jobs:
name: "Benchmark"
command: cond_run_script end-to-end ./scripts/run_tests_local benchmarks/bench_publish_rollup.test.ts
environment:
{
DEBUG: "aztec:benchmarks:*,aztec:sequencer,aztec:world_state,aztec:merkle_trees",
}
DEBUG: "aztec:benchmarks:*,aztec:sequencer,aztec:sequencer:*,aztec:world_state,aztec:merkle_trees"

bench-process-history:
machine:
image: ubuntu-2204:2023.07.2
resource_class: large
steps:
- *checkout
- *setup_env
- run:
name: "Benchmark"
command: cond_run_script end-to-end ./scripts/run_tests_local benchmarks/bench_process_history.test.ts
environment:
DEBUG: "aztec:benchmarks:*,aztec:sequencer,aztec:sequencer:*,aztec:world_state,aztec:merkle_trees"

build-docs:
machine:
Expand Down Expand Up @@ -991,6 +1012,15 @@ jobs:
name: "Noop"
command: echo Noop

canary-end:
docker:
- image: cimg/base:2023.09
resource_class: small
steps:
- run:
name: "Noop"
command: echo Noop

bench-summary:
machine:
image: ubuntu-2204:2023.07.2
Expand All @@ -1001,6 +1031,19 @@ jobs:
name: "Assemble benchmark summary from uploaded logs"
command: ./scripts/ci/assemble_e2e_benchmark.sh

deploy-npm-canary:
# Deploys next version under 'canary' dist tag.
machine:
image: ubuntu-2204:2023.07.2
resource_class: medium
steps:
- *checkout
- *setup_env
# Aztec.js and dependencies
- run:
name: "yarn-project"
command: yarn-project/deploy_npm.sh canary

deploy-npm:
machine:
image: ubuntu-2204:2023.07.2
Expand All @@ -1011,9 +1054,9 @@ jobs:
# Aztec.js and dependencies
- run:
name: "yarn-project"
command: yarn-project/deploy_npm.sh
command: yarn-project/deploy_npm.sh latest

deploy-dockerhub:
deploy-dockerhub-canary:
machine:
image: ubuntu-2204:2023.07.2
resource_class: medium
Expand All @@ -1022,16 +1065,29 @@ jobs:
- *setup_env
- run:
name: "Deploy to dockerhub"
command: yarn-project/deploy_dockerhub.sh
command: yarn-project/deploy_dockerhub.sh canary

deploy-end:
docker:
- image: cimg/base:2023.09
resource_class: small
deploy-ecr:
machine:
image: ubuntu-2204:2023.07.2
resource_class: medium
steps:
- *checkout
- *setup_env
- run:
name: "yarn-project"
command: yarn-project/deploy_ecr.sh

deploy-dockerhub:
machine:
image: ubuntu-2204:2023.07.2
resource_class: medium
steps:
- *checkout
- *setup_env
- run:
name: "Noop"
command: echo Noop
name: "Deploy to dockerhub"
command: yarn-project/deploy_dockerhub.sh

build-deployment-canary:
machine:
Expand All @@ -1044,7 +1100,7 @@ jobs:
name: "Build"
command: build canary true

run-deployment-canary-uniswap:
canary-uniswap-test:
machine:
image: ubuntu-2204:2023.07.2
resource_class: large
Expand All @@ -1055,7 +1111,7 @@ jobs:
name: "Test"
command: run_script canary ./scripts/run_tests ./src/uniswap_trade_on_l1_from_l2.test.ts canary ./scripts/docker-compose.yml

run-deployment-canary-browser:
canary-browser-test:
machine:
image: ubuntu-2204:2023.07.2
resource_class: large
Expand All @@ -1066,7 +1122,7 @@ jobs:
name: "Test"
command: run_script canary ./scripts/run_tests ./src/aztec_js_browser.test.ts canary ./scripts/docker-compose-browser.yml

run-deployment-canary-cli:
canary-cli-test:
machine:
image: ubuntu-2204:2023.07.2
resource_class: large
Expand Down Expand Up @@ -1233,6 +1289,16 @@ workflows:
- yarn-project
<<: *defaults

- aztec-p2p-bootstrap:
requires:
- yarn-project
<<: *defaults

- aztec-node:
requires:
- yarn-project
<<: *defaults

- pxe-x86_64:
requires:
- yarn-project
Expand Down Expand Up @@ -1260,7 +1326,7 @@ workflows:
- aztec-sandbox-x86_64
<<: *defaults

- boxes-private-token:
- boxes-token:
requires:
- aztec-sandbox-x86_64
<<: *defaults
Expand All @@ -1277,7 +1343,6 @@ workflows:
- e2e-lending-contract: *e2e_test
- e2e-token-contract: *e2e_test
- e2e-private-airdrop: *e2e_test
- e2e-private-token-contract: *e2e_test
- e2e-sandbox-example: *e2e_test
- e2e-multi-transfer-contract: *e2e_test
- e2e-block-building: *e2e_test
Expand Down Expand Up @@ -1307,6 +1372,7 @@ workflows:
- guides-sample-dapp: *e2e_test
- guides-up-quick-start: *e2e_test
- bench-publish-rollup: *e2e_test
- bench-process-history: *e2e_test

- e2e-end:
requires:
Expand All @@ -1315,7 +1381,6 @@ workflows:
- e2e-lending-contract
- e2e-token-contract
- e2e-private-airdrop
- e2e-private-token-contract
- e2e-sandbox-example
- e2e-multi-transfer-contract
- e2e-block-building
Expand Down Expand Up @@ -1344,46 +1409,64 @@ workflows:
- guides-dapp-testing
- guides-sample-dapp
- guides-up-quick-start
- bench-publish-rollup
<<: *defaults

- bench-summary:
requires:
- e2e-end
- bench-publish-rollup
- bench-process-history
<<: *defaults

# Deployment and Canary tests
- deploy-dockerhub:
# Deploy under canary tag
- deploy-npm-canary:
requires:
- e2e-end
<<: *deploy_defaults
- deploy-npm:
- deploy-dockerhub-canary:
requires:
- e2e-end
<<: *deploy_defaults

- deploy-end:
- deploy-ecr:
requires:
- deploy-dockerhub
- deploy-npm
- e2e-end
<<: *deploy_defaults

- build-deployment-canary:
requires:
- deploy-end
- deploy-npm-canary
- deploy-dockerhub-canary
<<: *deploy_defaults

- run-deployment-canary-uniswap:
# Run canary tests
- canary-uniswap-test:
requires:
- build-deployment-canary
<<: *deploy_defaults

- run-deployment-canary-browser:
- canary-browser-test:
requires:
- build-deployment-canary
<<: *deploy_defaults

- run-deployment-canary-cli:
- canary-cli-test:
requires:
- build-deployment-canary
<<: *deploy_defaults

- canary-end:
requires:
- canary-uniswap-test
- canary-browser-test
- canary-cli-test
<<: *deploy_defaults

# Production deployment
- deploy-dockerhub:
requires:
- canary-end
<<: *deploy_defaults
- deploy-npm:
requires:
- canary-end
<<: *deploy_defaults
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ node_modules
build/
.idea
cmake-build-debug
.terraform
.terraform*
.bootstrapped
6 changes: 3 additions & 3 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
".": "0.8.7",
"barretenberg": "0.8.7",
"barretenberg/ts": "0.8.7"
".": "0.8.14",
"barretenberg": "0.8.14",
"barretenberg/ts": "0.8.14"
}
2 changes: 2 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
"IBM.output-colorizer",
// Displays code coverage report information within vscode
"ryanluker.vscode-coverage-gutters",
// Spell checking
"streetsidesoftware.code-spell-checker",
// End C++/Circuits extensions
///////////////////////////////////////
],
Expand Down
Loading

0 comments on commit d2ee57c

Please sign in to comment.