Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): acir bench #11021

Merged
merged 4 commits into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading