From 0e18bb1763935368ae38a57195f63c040fa60a64 Mon Sep 17 00:00:00 2001 From: ludamad Date: Fri, 10 Jan 2025 17:08:13 -0500 Subject: [PATCH 1/6] fix --- build-images/Earthfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build-images/Earthfile b/build-images/Earthfile index c31d7227855..1332b1ec0d8 100644 --- a/build-images/Earthfile +++ b/build-images/Earthfile @@ -505,6 +505,8 @@ all-ci: BUILD +wasi-sdk BUILD +foundry BUILD +build - BUILD +ci + IF [ $TARGETARCH = amd64] + BUILD +ci + END BUILD +aztec-base BUILD +end-to-end-base From ccb70eed6ed0882c597d723e33143893f42e8eb5 Mon Sep 17 00:00:00 2001 From: ludamad Date: Fri, 10 Jan 2025 17:08:41 -0500 Subject: [PATCH 2/6] properly fail arm builds --- .github/workflows/ci-arm.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci-arm.yml b/.github/workflows/ci-arm.yml index d763bfbf395..77b4c150bdf 100644 --- a/.github/workflows/ci-arm.yml +++ b/.github/workflows/ci-arm.yml @@ -85,9 +85,8 @@ jobs: ./bootstrap.sh image-e2e - name: "Test" timeout-minutes: 40 - continue-on-error: true run: | - ./bootstrap.sh e2e-test uniswap_trade_on_l1_from_l2 + ./bootstrap.sh test-e2e uniswap_trade_on_l1_from_l2 rerun-check: runs-on: ubuntu-20.04 From a33102700a3ca3bedf4ebe4499787dc6a9069c73 Mon Sep 17 00:00:00 2001 From: ludamad Date: Fri, 10 Jan 2025 17:16:34 -0500 Subject: [PATCH 3/6] Update Earthfile --- build-images/Earthfile | 1 + 1 file changed, 1 insertion(+) diff --git a/build-images/Earthfile b/build-images/Earthfile index 1332b1ec0d8..b6d5fe45fda 100644 --- a/build-images/Earthfile +++ b/build-images/Earthfile @@ -500,6 +500,7 @@ end-to-end-base: SAVE IMAGE --push aztecprotocol/end-to-end-base:v1.0-$TARGETARCH all-ci: + LOCALLY # Build all images needed by ci, pushing them to the registry. BUILD +base-build BUILD +wasi-sdk From 12e39a4231c0aad8b4d8fe8c5477243a9728e839 Mon Sep 17 00:00:00 2001 From: ludamad Date: Fri, 10 Jan 2025 17:46:52 -0500 Subject: [PATCH 4/6] rebump --- Dockerfile.boxes | 4 ++-- build-images/Earthfile | 4 ++-- ci3/aws/ami_update.sh | 6 +++--- ci3/bootstrap_ec2 | 2 +- ci3/bootstrap_local | 2 +- ci3/bootstrap_local_noninteractive | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Dockerfile.boxes b/Dockerfile.boxes index e370080d1fa..1949c745dee 100644 --- a/Dockerfile.boxes +++ b/Dockerfile.boxes @@ -1,5 +1,5 @@ -FROM aztecprotocol/ci:2.1 +FROM aztecprotocol/ci:2.2 COPY /usr/src /usr/src WORKDIR /usr/src/boxes RUN ls /usr/src/boxes -RUN /usr/local/share/docker-init.sh &> /dev/null && ./bootstrap.sh test \ No newline at end of file +RUN /usr/local/share/docker-init.sh &> /dev/null && ./bootstrap.sh test diff --git a/build-images/Earthfile b/build-images/Earthfile index 1332b1ec0d8..393effe8a44 100644 --- a/build-images/Earthfile +++ b/build-images/Earthfile @@ -234,8 +234,8 @@ ci: ENV CI=1 ARG TARGETARCH - SAVE IMAGE --push aztecprotocol/ci:2.1-$TARGETARCH - SAVE IMAGE --push aztecprotocol/ci:2.1 + SAVE IMAGE --push aztecprotocol/ci:2.2-$TARGETARCH + SAVE IMAGE --push aztecprotocol/ci:2.2 ######################################################################################################################## # We want to produce downstream images: devbox and sysbox. This image is the base image for each. diff --git a/ci3/aws/ami_update.sh b/ci3/aws/ami_update.sh index 8cf531d7414..b523ca8a903 100755 --- a/ci3/aws/ami_update.sh +++ b/ci3/aws/ami_update.sh @@ -36,9 +36,9 @@ scp -F build_instance_ssh_config $HOME/.aws/build_instance_credentials ubuntu@$i # Download crs onto machine. ssh -t -F build_instance_ssh_config ubuntu@$ip < ../../barretenberg/scripts/download_bb_crs.sh -# Pull ci:2.1 onto host, and build:2.0 into docker-in-docker volume. +# Pull ci:2.2 onto host, and build:2.0 into docker-in-docker volume. ssh -t -F build_instance_ssh_config ubuntu@$ip ' - docker run --privileged -ti --rm -v boostrap_ci_local_docker:/var/lib/docker aztecprotocol/ci:2.1 bash -c " + docker run --privileged -ti --rm -v boostrap_ci_local_docker:/var/lib/docker aztecprotocol/ci:2.2 bash -c " /usr/local/share/docker-init.sh &> /dev/null sleep 5 docker pull aztecprotocol/build:2.0 @@ -51,4 +51,4 @@ if [ "${NO_AMI:-0}" -eq 0 ]; then echo "Waiting for AMI to be created: $ami_id" while ! aws ec2 wait image-available --image-ids "$ami_id"; do true; done echo "Done." -fi \ No newline at end of file +fi diff --git a/ci3/bootstrap_ec2 b/ci3/bootstrap_ec2 index a73f00a4728..4427a0b3ee1 100755 --- a/ci3/bootstrap_ec2 +++ b/ci3/bootstrap_ec2 @@ -66,7 +66,7 @@ ssh -t -F $ci3/aws/build_instance_ssh_config ubuntu@$ip " -v boostrap_ci_local_docker:/var/lib/docker \ -v \$HOME:/root \ -v /tmp:/tmp \ - aztecprotocol/ci:2.1 bash -c ' + aztecprotocol/ci:2.2 bash -c ' [ -n \"$GITHUB_LOG\" ] && echo "::endgroup::" [ -n \"$GITHUB_LOG\" ] && echo "::group::Clone Repository" set -e diff --git a/ci3/bootstrap_local b/ci3/bootstrap_local index 3f225c96670..d0aac19febe 100755 --- a/ci3/bootstrap_local +++ b/ci3/bootstrap_local @@ -21,7 +21,7 @@ docker run --name aztec_build -ti --rm \ -v $root:/aztec-packages-host:ro \ -v $HOME/.aws:/root/.aws:ro \ -v $HOME/.bb-crs:/root/.bb-crs:ro \ - aztecprotocol/ci:2.1 bash -c " + aztecprotocol/ci:2.2 bash -c " set -e /usr/local/share/docker-init.sh &> /dev/null git config --global --add safe.directory /aztec-packages-host/.git diff --git a/ci3/bootstrap_local_noninteractive b/ci3/bootstrap_local_noninteractive index 4d3eedfef8d..e0a489a46b7 100755 --- a/ci3/bootstrap_local_noninteractive +++ b/ci3/bootstrap_local_noninteractive @@ -17,7 +17,7 @@ docker run --rm \ -v bootstrap_ci_local_docker:/var/lib/docker \ -v $root:/aztec-packages-host:ro \ -v $HOME/.aws:/root/.aws \ - aztecprotocol/ci:2.1 bash -c " + aztecprotocol/ci:2.2 bash -c " /usr/local/share/docker-init.sh &> /dev/null git config --global --add safe.directory /aztec-packages-host/.git mkdir -p /root/aztec-packages && cd /root/aztec-packages From 0c5f2519f57cc474e457ab469a1a38ec9c9e8cd1 Mon Sep 17 00:00:00 2001 From: ludamad Date: Fri, 10 Jan 2025 17:54:25 -0500 Subject: [PATCH 5/6] Update Earthfile --- build-images/Earthfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-images/Earthfile b/build-images/Earthfile index 334f05337a5..b54f01cab30 100644 --- a/build-images/Earthfile +++ b/build-images/Earthfile @@ -506,7 +506,7 @@ all-ci: BUILD +wasi-sdk BUILD +foundry BUILD +build - IF [ $TARGETARCH = amd64] + IF [ $TARGETARCH = amd64 ] BUILD +ci END BUILD +aztec-base From 672eaa4e91837ae8f7e656ce974973f5618ecc1c Mon Sep 17 00:00:00 2001 From: ludamad Date: Fri, 10 Jan 2025 18:22:05 -0500 Subject: [PATCH 6/6] Update Earthfile --- build-images/Earthfile | 1 + 1 file changed, 1 insertion(+) diff --git a/build-images/Earthfile b/build-images/Earthfile index b54f01cab30..bed625beafc 100644 --- a/build-images/Earthfile +++ b/build-images/Earthfile @@ -501,6 +501,7 @@ end-to-end-base: all-ci: LOCALLY + ARG TARGETARCH # Build all images needed by ci, pushing them to the registry. BUILD +base-build BUILD +wasi-sdk