Skip to content

Commit

Permalink
Build off aztec-sandbox base
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilWindle committed Sep 14, 2023
1 parent a8c039e commit 263f9b4
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 38 deletions.
63 changes: 40 additions & 23 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ jobs:
name: "Build and test"
command: build aztec-rpc

aztec-sandbox:
aztec-sandbox-base:
machine:
image: ubuntu-2004:202010-01
resource_class: large
Expand All @@ -581,7 +581,18 @@ jobs:
- *setup_env
- run:
name: "Build and test"
command: force_deploy_build aztec-sandbox false
command: force_deploy_build aztec-sandbox-base false

aztec-sandbox-x86_64:
machine:
image: ubuntu-2004:202010-01
resource_class: large
steps:
- *checkout
- *setup_env
- run:
name: "Build and test"
command: force_deploy_build aztec-sandbox-final true

aztec-sandbox-arm64:
machine:
Expand All @@ -592,7 +603,7 @@ jobs:
- *setup_env
- run:
name: "Build and test"
command: force_deploy_build aztec-sandbox-arm true
command: force_deploy_build aztec-sandbox-final true

circuits-js:
machine:
Expand Down Expand Up @@ -991,7 +1002,7 @@ jobs:
name: "Test"
command: cond_run_script end-to-end ./scripts/run_tests_local sample-dapp ./scripts/docker-compose-e2e-sandbox.yml

e2e-canary-test:
e2e-canary-test-x86_64:
machine:
image: ubuntu-2004:202010-01
steps:
Expand All @@ -1001,6 +1012,17 @@ jobs:
name: "Test"
command: cond_run_script canary-build ./scripts/run_tests uniswap_trade_on_l1_from_l2.test.ts canary-build ./scripts/docker-compose-e2e-sandbox.yml

e2e-canary-test-arm64:
machine:
image: ubuntu-2204:2023.07.1
resource_class: arm.large
steps:
- *checkout
- *setup_env
- run:
name: "Test"
command: cond_run_script canary-build ./scripts/run_tests uniswap_trade_on_l1_from_l2.test.ts canary-build ./scripts/docker-compose-e2e-sandbox.yml

build-docs:
machine:
image: ubuntu-2004:202010-01
Expand Down Expand Up @@ -1033,17 +1055,6 @@ jobs:
name: "Noop"
command: echo Noop

# aztec-sandbox-multi-platform:
# machine:
# image: ubuntu-2004:202010-01
# resource_class: large
# steps:
# - *checkout
# - *setup_env
# - run:
# name: "Build and test"
# command: force_deploy_build aztec-sandbox-multi-platform true "linux/amd64,linux/arm64,linux/arm/v7"

deploy-npm:
machine:
image: ubuntu-2004:202010-01
Expand Down Expand Up @@ -1396,9 +1407,18 @@ workflows:
- types: *yarn_project
- circuits-js: *yarn_project
- rollup-provider: *yarn_project
- aztec-sandbox: *yarn_project
- aztec-sandbox-base: *yarn_project
- canary: *yarn_project

- aztec-sandbox-x86_64:
requires:
- aztec-sandbox-base
<<: *defaults
- aztec-sandbox-arm64:
requires:
- aztec-sandbox-base
<<: *defaults

- e2e-join:
requires:
- aztec-js
Expand All @@ -1422,15 +1442,11 @@ workflows:
- types
- circuits-js
- rollup-provider
- aztec-sandbox
- aztec-sandbox-x86_64
- aztec-sandbox-arm64
- canary
<<: *defaults

- aztec-sandbox-arm64:
requires:
- aztec-sandbox
<<: *defaults

- e2e-2-rpc-servers: *e2e_test
- e2e-deploy-contract: *e2e_test
- e2e-lending-contract: *e2e_test
Expand All @@ -1455,7 +1471,8 @@ workflows:
- integration-l1-publisher: *e2e_test
- integration-archiver-l1-to-l2: *e2e_test
- e2e-p2p: *e2e_test
- e2e-canary-test: *e2e_test
- e2e-canary-test-x86_64: *e2e_test
- e2e-canary-test-arm64: *e2e_test
- e2e-browser-sandbox: *e2e_test
- e2e-card-game: *e2e_test
- aztec-rpc-sandbox: *e2e_test
Expand Down
21 changes: 7 additions & 14 deletions build_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,26 +112,19 @@
"buildDir": "yarn-project",
"projectDir": "yarn-project/aztec-rpc"
},
"aztec-sandbox": {
"aztec-sandbox-base": {
"buildDir": "yarn-project",
"projectDir": "yarn-project/aztec-sandbox"
},
"aztec-sandbox-arm": {
"buildDir": "yarn-project",
"projectDir": "yarn-project/aztec-sandbox",
"dockerfile": "aztec-sandbox/Dockerfile.arm64",
"rebuildPatterns": ["^yarn-project/aztec-sandbox/"],
"dependencies": [
"aztec-node",
"aztec-rpc",
"aztec.js",
"circuits.js",
"ethereum",
"foundation",
"l1-artifacts",
"noir-contracts",
"types"
]
"dockerfile": "aztec-sandbox/Dockerfile.final"
},
"aztec-sandbox-x86_64": {
"buildDir": "yarn-project",
"projectDir": "yarn-project/aztec-sandbox",
"dockerfile": "aztec-sandbox/Dockerfile.final"
},
"aztec.js": {
"buildDir": "yarn-project",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM 278380418400.dkr.ecr.eu-west-2.amazonaws.com/aztec-sandbox AS builder
FROM 278380418400.dkr.ecr.eu-west-2.amazonaws.com/aztec-sandbox-base AS builder

FROM node:18-alpine

Expand Down

0 comments on commit 263f9b4

Please sign in to comment.