Skip to content

Commit

Permalink
Merge branch 'AztecProtocol:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Okm165 authored Dec 7, 2023
2 parents 05bc021 + 48e2e3d commit 9ad6604
Show file tree
Hide file tree
Showing 480 changed files with 6,510 additions and 4,064 deletions.
151 changes: 61 additions & 90 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,17 @@ jobs:
name: Build
command: build yarn-project | add_timestamps

yarn-project-prod:
machine:
image: ubuntu-2204:2023.07.2
resource_class: large
steps:
- *checkout
- *setup_env
- run:
name: Build
command: build yarn-project-prod | add_timestamps

yarn-project-formatting:
machine:
image: ubuntu-2204:2023.07.2
Expand All @@ -368,7 +379,7 @@ jobs:
name: Test
command: cond_spot_run_container yarn-project 64 test | add_timestamps

aztec-sandbox-x86_64:
aztec-sandbox:
machine:
image: ubuntu-2204:2023.07.2
resource_class: large
Expand All @@ -379,22 +390,7 @@ jobs:
name: "Build and test"
command: build aztec-sandbox

aztec-sandbox-arm64:
machine:
image: ubuntu-2204:2023.07.2
resource_class: arm.large
steps:
- *checkout
- *setup_env
- 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 unauthorized 401. Weird docker bug?
command: |
echo "export DOCKER_BUILDKIT=" > $BASH_ENV
build aztec-sandbox
cli-x86_64:
cli:
machine:
image: ubuntu-2204:2023.07.2
resource_class: large
Expand All @@ -405,21 +401,6 @@ jobs:
name: "Build and test"
command: build cli

cli-arm64:
machine:
image: ubuntu-2204:2023.07.2
resource_class: arm.large
steps:
- *checkout
- *setup_env
- 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 unauthorized 401. Weird docker bug?
command: |
echo "export DOCKER_BUILDKIT=" > $BASH_ENV
build cli
mainnet-fork:
machine:
image: ubuntu-2204:2023.07.2
Expand All @@ -442,22 +423,6 @@ jobs:
name: "Build and test"
command: build aztec-faucet | add_timestamps

ecr-manifest:
machine:
image: ubuntu-2204:2023.07.2
resource_class: large
steps:
- *checkout
- *setup_env
- run:
name: "Create ECR manifest"
command: |
create_ecr_manifest aztec-sandbox x86_64,arm64
create_ecr_manifest cli x86_64,arm64
create_ecr_manifest aztec-faucet x86_64
create_ecr_manifest mainnet-fork x86_64
create_ecr_manifest l1-contracts x86_64
boxes-blank-react:
machine:
image: ubuntu-2204:2023.07.2
Expand Down Expand Up @@ -939,64 +904,69 @@ jobs:
name: "Assemble benchmark summary from uploaded logs"
command: ./scripts/ci/assemble_e2e_benchmark.sh

# Deploy jobs.
deploy-mainnet-fork:
# Release jobs.
release-npm:
machine:
image: ubuntu-2204:2023.07.2
resource_class: medium
steps:
- *checkout
- *setup_env
- run:
name: "Deploy mainnet fork"
name: "yarn-project"
command: |
should_deploy || exit 0
deploy mainnet-fork
should_release || exit 0
yarn-project/deploy_npm.sh latest
- run:
name: "l1-contracts"
command: |
should_release || exit 0
deploy_npm l1-contracts
deploy-contracts:
release-dockerhub:
machine:
image: ubuntu-2204:2023.07.2
resource_class: medium
steps:
- *checkout
- *setup_env
- run:
name: "Deploy L1 contracts to mainnet fork"
working_directory: l1-contracts
name: "Release to dockerhub"
command: |
should_deploy || exit 0
./scripts/ci_deploy_contracts.sh
should_release || exit 0
deploy_dockerhub noir
deploy_dockerhub aztec-sandbox
deploy_dockerhub cli
deploy_dockerhub aztec-faucet
deploy_dockerhub mainnet-fork
deploy-npm:
# Deploy jobs.
deploy-mainnet-fork:
machine:
image: ubuntu-2204:2023.07.2
resource_class: medium
steps:
- *checkout
- *setup_env
- run:
name: "yarn-project"
name: "Deploy mainnet fork"
command: |
should_deploy || exit 0
yarn-project/deploy_npm.sh latest
deploy mainnet-fork
deploy-dockerhub:
deploy-contracts:
machine:
image: ubuntu-2204:2023.07.2
resource_class: medium
steps:
- *checkout
- *setup_env
- run:
name: "Deploy to dockerhub"
name: "Deploy L1 contracts to mainnet fork"
working_directory: l1-contracts
command: |
should_deploy || exit 0
deploy_dockerhub noir x86_64,arm64
deploy_dockerhub aztec-sandbox x86_64,arm64
deploy_dockerhub cli x86_64,arm64
deploy_dockerhub aztec-faucet x86_64
deploy_dockerhub mainnet-fork x86_64
deploy_dockerhub l1-contracts x86_64
./scripts/ci_deploy_contracts.sh
deploy-devnet:
machine:
Expand Down Expand Up @@ -1038,6 +1008,11 @@ defaults_yarn_project: &defaults_yarn_project
- yarn-project
<<: *defaults

defaults_yarn_project_prod: &defaults_yarn_project_prod
requires:
- yarn-project-prod
<<: *defaults

defaults_deploy: &defaults_deploy
requires:
- end
Expand Down Expand Up @@ -1124,42 +1099,37 @@ workflows:
requires:
- yarn-project-base
<<: *defaults
- yarn-project-prod: *defaults_yarn_project
- yarn-project-formatting: *defaults_yarn_project
- yarn-project-tests: *defaults_yarn_project
- end-to-end: *defaults_yarn_project
- build-docs: *defaults_yarn_project
- aztec-sandbox-x86_64: *defaults_yarn_project
- aztec-sandbox-arm64: *defaults_yarn_project
- cli-x86_64: *defaults_yarn_project
- cli-arm64: *defaults_yarn_project
- aztec-faucet: *defaults_yarn_project
- ecr-manifest:
requires:
- aztec-sandbox-x86_64
- aztec-sandbox-arm64
- cli-x86_64
- cli-arm64
<<: *defaults

# Artifacts
- aztec-sandbox: *defaults_yarn_project_prod
- cli: *defaults_yarn_project_prod
- aztec-faucet: *defaults_yarn_project_prod

# Boxes.
- boxes-blank-react:
requires:
- aztec-sandbox-x86_64
- aztec-sandbox
<<: *defaults
- boxes-blank:
requires:
- aztec-sandbox-x86_64
- aztec-sandbox
<<: *defaults
- boxes-token:
requires:
- aztec-sandbox-x86_64
- aztec-sandbox
<<: *defaults

# End to end tests.
- e2e-join:
requires:
- end-to-end
- ecr-manifest
- aztec-sandbox
- cli
<<: *defaults
- e2e-2-pxes: *e2e_test
- e2e-deploy-contract: *e2e_test
Expand Down Expand Up @@ -1242,12 +1212,14 @@ workflows:
- bench-process-history
<<: *defaults

# Production deployment
- deploy-dockerhub: *defaults_deploy
- deploy-npm: *defaults_deploy
# Production releases.
- release-dockerhub: *defaults_deploy
- release-npm: *defaults_deploy

# Production deployment.
- deploy-mainnet-fork:
requires:
- deploy-dockerhub
- release-dockerhub
<<: *defaults_deploy
- deploy-contracts:
requires:
Expand All @@ -1257,4 +1229,3 @@ workflows:
requires:
- deploy-contracts
<<: *defaults_deploy

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.8.0
v18.19.0
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.16.1",
"barretenberg": "0.16.1",
"barretenberg/ts": "0.16.1"
".": "0.16.7",
"barretenberg": "0.16.7",
"barretenberg/ts": "0.16.7"
}
Loading

0 comments on commit 9ad6604

Please sign in to comment.