-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
while they are in the monorepo, we may as well defend against breaking changes. because the e2e tests are more comprehensive, this is just testing that the webpack build succeeds, since that's the new dependency for the box frontend. # Checklist: Remove the checklist to signal you've completed it. Enable auto-merge if the PR is ready to merge. - [ ] If the pull request requires a cryptography review (e.g. cryptographic algorithm implementations) I have added the 'crypto' tag. - [ ] I have reviewed my diff in github, line by line and removed unexpected formatting changes, testing logs, or commented-out code. - [ ] Every change is related to the PR description. - [ ] I have [linked](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) this pull request to relevant issues (if any exist).
- Loading branch information
Showing
16 changed files
with
274 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
version: '3' | ||
services: | ||
ethereum: | ||
image: ghcr.io/foundry-rs/foundry:v1.0.0 | ||
command: '"anvil --silent -p 8545 --host 0.0.0.0 --chain-id 31337"' | ||
ports: | ||
- '${SANDBOX_ANVIL_PORT:-8545}:8545' | ||
|
||
aztec: | ||
image: 'aztecprotocol/aztec-sandbox:${SANDBOX_VERSION:-latest}' | ||
ports: | ||
- '${SANDBOX_RPC_PORT:-8080}:8080' | ||
environment: | ||
DEBUG: # Loaded from the user shell if explicitly set | ||
HOST_WORKDIR: '${PWD}' # Loaded from the user shell to show log files absolute path in host | ||
ETHEREUM_HOST: http://ethereum:8545 | ||
CHAIN_ID: 31337 | ||
ARCHIVER_POLLING_INTERVAL_MS: 50 | ||
P2P_BLOCK_CHECK_INTERVAL_MS: 50 | ||
SEQ_TX_POLLING_INTERVAL_MS: 50 | ||
WS_BLOCK_CHECK_INTERVAL_MS: 50 | ||
RPC_SERVER_BLOCK_POLLING_INTERVAL_MS: 50 | ||
ARCHIVER_VIEM_POLLING_INTERVAL_MS: 500 | ||
volumes: | ||
- ./log:/usr/src/yarn-project/aztec-sandbox/log:rw | ||
|
||
boxes-blank-react: | ||
image: aztecprotocol/yarn-project:latest | ||
entrypoint: sh | ||
command: -c "cd boxes/blank-react && yarn test:integration" | ||
environment: | ||
ETHEREUM_HOST: http://ethereum:8545 | ||
CHAIN_ID: 31337 | ||
SANDBOX_URL: http://aztec:8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
# This script is used to run an e2e test in CI (see .circleci/config.yml). | ||
# It pulls images and runs docker-compose, which has the test as the entrypoint. | ||
[ -n "${BUILD_SYSTEM_DEBUG:-}" ] && set -x # conditionally trace | ||
set -eu | ||
|
||
# Run in script path. | ||
cd `dirname $0` | ||
|
||
export COMPOSE_FILE=${1:-docker-compose.yml} | ||
|
||
ecr_login | ||
|
||
for REPO in aztec-sandbox yarn-project; do | ||
echo "pulling docker image for $REPO $(calculate_image_uri $REPO)" | ||
retry docker pull $(calculate_image_uri $REPO) | ||
retry docker tag $(calculate_image_uri $REPO) aztecprotocol/$REPO:latest | ||
done | ||
|
||
docker-compose rm -f | ||
docker-compose -f $COMPOSE_FILE up --exit-code-from boxes-blank-react |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
version: '3' | ||
services: | ||
ethereum: | ||
image: ghcr.io/foundry-rs/foundry:v1.0.0 | ||
command: '"anvil --silent -p 8545 --host 0.0.0.0 --chain-id 31337"' | ||
ports: | ||
- '${SANDBOX_ANVIL_PORT:-8545}:8545' | ||
|
||
aztec: | ||
image: 'aztecprotocol/aztec-sandbox:${SANDBOX_VERSION:-latest}' | ||
ports: | ||
- '${SANDBOX_RPC_PORT:-8080}:8080' | ||
environment: | ||
DEBUG: # Loaded from the user shell if explicitly set | ||
HOST_WORKDIR: '${PWD}' # Loaded from the user shell to show log files absolute path in host | ||
ETHEREUM_HOST: http://ethereum:8545 | ||
CHAIN_ID: 31337 | ||
ARCHIVER_POLLING_INTERVAL_MS: 50 | ||
P2P_BLOCK_CHECK_INTERVAL_MS: 50 | ||
SEQ_TX_POLLING_INTERVAL_MS: 50 | ||
WS_BLOCK_CHECK_INTERVAL_MS: 50 | ||
RPC_SERVER_BLOCK_POLLING_INTERVAL_MS: 50 | ||
ARCHIVER_VIEM_POLLING_INTERVAL_MS: 500 | ||
volumes: | ||
- ./log:/usr/src/yarn-project/aztec-sandbox/log:rw | ||
|
||
boxes-blank: | ||
image: aztecprotocol/yarn-project:latest | ||
entrypoint: sh | ||
command: -c "cd boxes/blank && yarn test:integration" | ||
environment: | ||
ETHEREUM_HOST: http://ethereum:8545 | ||
CHAIN_ID: 31337 | ||
SANDBOX_URL: http://aztec:8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
# This script is used to run an e2e type test in CI (see .circleci/config.yml). | ||
# It pulls images and runs docker-compose, which has the test as the entrypoint. | ||
[ -n "${BUILD_SYSTEM_DEBUG:-}" ] && set -x # conditionally trace | ||
set -eu | ||
|
||
# Run in script path. | ||
cd `dirname $0` | ||
|
||
export COMPOSE_FILE=${1:-docker-compose.yml} | ||
|
||
ecr_login | ||
|
||
for REPO in aztec-sandbox yarn-project; do | ||
echo "pulling docker image for $REPO $(calculate_image_uri $REPO)" | ||
retry docker pull $(calculate_image_uri $REPO) | ||
retry docker tag $(calculate_image_uri $REPO) aztecprotocol/$REPO:latest | ||
done | ||
|
||
docker-compose rm -f | ||
docker-compose -f $COMPOSE_FILE up --exit-code-from boxes-blank |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.