Skip to content

Commit

Permalink
fix(ci): acir bench (#11021)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 authored Jan 2, 2025
1 parent 2a2932e commit 9eaa109
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
1 change: 1 addition & 0 deletions barretenberg/acir_tests/.rebuild_patterns
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
^barretenberg/acir_tests/
1 change: 1 addition & 0 deletions barretenberg/acir_tests/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ test:
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.
Expand Down
21 changes: 18 additions & 3 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 @@ -19,6 +19,17 @@ function build_tests {
# COMPILE=2 only compiles the test.
denoise "parallel --joblog joblog.txt --line-buffered 'COMPILE=2 ./run_test.sh \$(basename {})' ::: ./acir_tests/*"

github_endgroup
}

function build_tests {
set -eu

github_group "acir_tests build"

prepare_tests


# TODO: This actually breaks things, but shouldn't. We want to do it here and not maintain manually.
# Regenerate verify_honk_proof recursive input.
# local bb=$(realpath ../cpp/build/bin/bb)
Expand All @@ -44,7 +55,8 @@ function hash {
../../noir/.rebuild_patterns \
../../noir/.rebuild_patterns_tests \
../../barretenberg/cpp/.rebuild_patterns \
../../barretenberg/ts/.rebuild_patterns
../../barretenberg/ts/.rebuild_patterns \
../../barretenberg/acir_tests/.rebuild_patterns
}

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

0 comments on commit 9eaa109

Please sign in to comment.