Skip to content

Commit

Permalink
chore: less building
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Jan 2, 2025
1 parent d6eb796 commit ead6eea
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
7 changes: 6 additions & 1 deletion barretenberg/acir_tests/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ test:
WORKDIR /usr/src/barretenberg/acir_tests
RUN ./bootstrap.sh ci

benches-bb:
FROM ../../+bootstrap-noir-bb
WORKDIR /usr/src/barretenberg/acir_tests
RUN ./bootstrap.sh prepare-benches

bench:
# This target is used for debugging the benchmarking target.
# For precise benchmarks in CI use `bench-publish`
Expand All @@ -13,7 +18,7 @@ bench:

export-bench-acir-bb:
ARG EARTHLY_GIT_HASH
FROM +test
FROM +benches-bb
SAVE IMAGE aztecprotocol/barretenberg-acir-benches:$EARTHLY_GIT_HASH

bench-publish:
Expand Down
17 changes: 15 additions & 2 deletions barretenberg/acir_tests/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ source $(git rev-parse --show-toplevel)/ci3/source_bootstrap
cmd=${1:-}
export CRS_PATH=$HOME/.bb-crs

function build_tests {
function prepare_tests {
set -eu

github_group "acir_tests build"
github_group "acir_tests copy tests"

rm -rf acir_tests
cp -R ../../noir/noir-repo/test_programs/execution_success acir_tests
Expand All @@ -16,6 +16,16 @@ function build_tests {
# TODO(https://github.com/AztecProtocol/barretenberg/issues/1108): problem regardless the proof system used
rm -rf acir_tests/regression_5045

github_endgroup
}

function build_tests {
set -eu

github_group "acir_tests build"

prepare_tests

# COMPILE=2 only compiles the test.
denoise "parallel --joblog joblog.txt --line-buffered 'COMPILE=2 ./run_test.sh \$(basename {})' ::: ./acir_tests/*"

Expand Down Expand Up @@ -154,6 +164,9 @@ case "$cmd" in
"test")
test
;;
"prepare-benches")
prepare_tests
;;
"test-cmds")
test_cmds
;;
Expand Down

0 comments on commit ead6eea

Please sign in to comment.