From 8f1a1d2116847876b0336a86427fd2fba4fc7b8f Mon Sep 17 00:00:00 2001 From: jeanmon Date: Thu, 21 Mar 2024 12:48:31 +0000 Subject: [PATCH] 5366 - create a dedicated job for the AVM unit tests --- .circleci/config.yml | 16 +++++++++++++++- barretenberg/cpp/scripts/avm-tests.sh | 19 +++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100755 barretenberg/cpp/scripts/avm-tests.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index f3a1c176fd3a..124695b7e886 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -217,6 +217,18 @@ jobs: command: cond_spot_run_test barretenberg-x86_64-linux-clang-assert 32 ./scripts/bb-tests.sh aztec_manifest_key: barretenberg-x86_64-linux-clang-assert + barretenberg-avm-tests: + docker: + - image: aztecprotocol/alpine-build-image + resource_class: small + steps: + - *checkout + - *setup_env + - run: + name: "Test" + command: cond_spot_run_test barretenberg-x86_64-linux-clang-assert 32 ./scripts/avm-tests.sh + aztec_manifest_key: barretenberg-x86_64-linux-clang-assert + barretenberg-bench: machine: # NOTE: we usually use alpine build image when making spot images, but @@ -294,7 +306,7 @@ jobs: name: "Build and test" command: cond_spot_run_test bb.js 32 ./scripts/run_tests aztec_manifest_key: bb.js - + # Noir noir-x86_64: docker: @@ -1315,6 +1327,7 @@ workflows: - barretenberg-proof-system-tests: *bb_test - barretenberg-dsl-tests: *bb_test - barretenberg-tests: *bb_test + - barretenberg-avm-tests: *bb_test - barretenberg-stdlib-tests: *bb_test - barretenberg-stdlib-plonk-recursion-ultra-tests: *bb_test - barretenberg-stdlib-honk-recursion-ultra-tests: *bb_test @@ -1455,6 +1468,7 @@ workflows: - barretenberg-proof-system-tests - barretenberg-dsl-tests - barretenberg-tests + - barretenberg-avm-tests - barretenberg-stdlib-tests - barretenberg-stdlib-plonk-recursion-ultra-tests - barretenberg-stdlib-honk-recursion-ultra-tests diff --git a/barretenberg/cpp/scripts/avm-tests.sh b/barretenberg/cpp/scripts/avm-tests.sh new file mode 100755 index 000000000000..a3318ab9f3c6 --- /dev/null +++ b/barretenberg/cpp/scripts/avm-tests.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash +# This script runs the AVM test suite. +# This is essentially a stripped down version of bb-tests.sh. +set -eu + +$(aws ecr get-login --region us-east-2 --no-include-email) 2> /dev/null +export PATH="$PATH:$(git rev-parse --show-toplevel)/build-system/scripts" +REPOSITORY=barretenberg-x86_64-linux-clang-assert +# use the image rebuild patterns to compute a content hash, use this to get a URI +IMAGE_URI=$(calculate_image_uri $REPOSITORY) +retry docker pull $IMAGE_URI + +docker run --rm -t $IMAGE_URI /bin/sh -c "\ + set -xe; \ + cd /usr/src/barretenberg/cpp; \ + srs_db/download_ignition.sh 1; \ + srs_db/download_grumpkin.sh; \ + cd build; \ + ./bin/vm_tests; \ \ No newline at end of file