Skip to content

Commit

Permalink
test(ci): Create a dedicated job for the AVM unit tests (#5369)
Browse files Browse the repository at this point in the history
Resolves #5366
  • Loading branch information
jeanmon authored Mar 21, 2024
1 parent 7c24870 commit 59ca2ac
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
16 changes: 15 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions barretenberg/cpp/scripts/avm-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/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; \
cd build; \
./bin/vm_tests;"
1 change: 0 additions & 1 deletion barretenberg/cpp/scripts/bb-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ TESTS=(
plonk_tests
polynomials_tests
srs_tests
vm_tests
)
TESTS_STR="${TESTS[@]}"

Expand Down

0 comments on commit 59ca2ac

Please sign in to comment.