Skip to content

Commit

Permalink
we're so fast now we need to wait.
Browse files Browse the repository at this point in the history
  • Loading branch information
charlielye committed Apr 3, 2024
1 parent 3cbe186 commit f475038
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions yarn-project/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ end-to-end:
RUN yarn workspaces focus @aztec/end-to-end --production && yarn cache clean
SAVE ARTIFACT /usr/src/*

end-to-end-minimal:
end-to-end-minimal:
# end to end test runner
BUILD +aztec
FROM node:18.19.1-slim
RUN apt-get update && apt-get install jq chromium -y
RUN apt-get update && apt-get install jq chromium netcat-openbsd -y
ENV CHROME_BIN="/usr/bin/chromium"
COPY +end-to-end/. /usr/src
WORKDIR /usr/src/yarn-project/end-to-end
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/end-to-end/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ RUN rm -rf /usr/src/noir-projects /usr/src/l1-contracts

# Create minimal image.
FROM node:18.19.1-slim
RUN apt-get update && apt-get install jq gnupg wget -y && \
RUN apt-get update && apt-get install jq gnupg wget netcat-openbsd -y && \
wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \
apt-get update && \
Expand Down
6 changes: 5 additions & 1 deletion yarn-project/end-to-end/scripts/docker-compose-p2p.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ services:
P2P_NAT_ENABLED: 'false'
P2P_ENABLED: 'true'
BOOTSTRAP_NODES: '/ip4/p2p-bootstrap/tcp/40400/p2p/12D3KooWGBpbC6qQFkaCYphjNeY6sV99o4SnEWyTeBigoVriDn4D'
command: ${TEST:-./src/e2e_p2p_network.test.ts}
entrypoint: >
sh -c '
while ! nc -z sandbox 8080; do sleep 1; done;
yarn test ${TEST:-./src/e2e_deploy_contract.test.ts}
'
volumes:
- ../log:/usr/src/yarn-project/end-to-end/log:rw
6 changes: 5 additions & 1 deletion yarn-project/end-to-end/scripts/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ services:
ETHEREUM_HOST: http://fork:8545
CHAIN_ID: 31337
PXE_URL: http://sandbox:8080
command: ${TEST:-./src/e2e_deploy_contract.test.ts}
entrypoint: >
sh -c '
while ! nc -z sandbox 8080; do sleep 1; done;
yarn test ${TEST:-./src/e2e_deploy_contract.test.ts}
'
volumes:
# TODO(AD) currently earthly uses /build instead of /usr/src
- ../log:/usr/src/yarn-project/end-to-end/log:rw
Expand Down
1 change: 1 addition & 0 deletions yarn-project/foundation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"build": "yarn clean && tsc -b",
"build:dev": "tsc -b --watch",
"clean": "rm -rf ./dest .tsbuildinfo",
"generate": "true",
"formatting": "run -T prettier --check ./src && run -T eslint ./src",
"formatting:fix": "run -T eslint --fix ./src && run -T prettier -w ./src",
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests"
Expand Down

0 comments on commit f475038

Please sign in to comment.