Skip to content

Commit e7120f2

Browse files
authored
revert: Include SMT build into CI and create container-build for smt (#17021)
2 parents 4c53f18 + 4f82f71 commit e7120f2

File tree

6 files changed

+9
-68
lines changed

6 files changed

+9
-68
lines changed

barretenberg/cpp/bootstrap.sh

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -147,18 +147,6 @@ function build_fuzzing_syntax_check_only {
147147
cache_upload barretenberg-fuzzing-$hash.zst build-fuzzing/syntax-check-success.flag
148148
}
149149

150-
# Do basic tests that the smt preset still compiles and runs
151-
function build_smt_verification {
152-
set -eu
153-
if cache_download barretenberg-smt-$hash.zst; then
154-
return
155-
fi
156-
sudo apt update && sudo apt install -y python3-pip python3-venv m4
157-
cmake --preset smt-verification
158-
cmake --build build-smt --target smt_verification_tests
159-
cache_upload barretenberg-smt-$hash.zst build-smt/bin
160-
}
161-
162150
function build_release {
163151
local arch=$(arch)
164152
rm -rf build-release
@@ -177,7 +165,7 @@ function build_release {
177165
fi
178166
}
179167

180-
export -f build_preset build_native build_asan_fast build_darwin build_nodejs_module build_wasm build_wasm_threads build_gcc_syntax_check_only build_fuzzing_syntax_check_only build_smt_verification
168+
export -f build_preset build_native build_asan_fast build_darwin build_nodejs_module build_wasm build_wasm_threads build_gcc_syntax_check_only build_fuzzing_syntax_check_only
181169

182170
function build {
183171
echo_header "bb cpp build"
@@ -188,7 +176,7 @@ function build {
188176
build_wasm_threads
189177
)
190178
if [ "$(arch)" == "amd64" ] && [ "$CI" -eq 1 ]; then
191-
builds+=(build_gcc_syntax_check_only build_fuzzing_syntax_check_only build_smt_verification build_asan_fast)
179+
builds+=(build_gcc_syntax_check_only build_fuzzing_syntax_check_only build_asan_fast)
192180
fi
193181
if [ "$CI_FULL" -eq 1 ]; then
194182
builds+=(build_darwin)
@@ -237,13 +225,6 @@ function test_cmds {
237225
echo -e "$prefix barretenberg/cpp/build-asan-fast/bin/$bin_name --gtest_filter=$filter"
238226
done
239227
fi
240-
241-
# Run the SMT compatibility tests
242-
if [ "$(arch)" == "amd64" ] && [ "$CI" -eq 1 ]; then
243-
local prefix="$hash:CPUS=4:MEM=8g"
244-
echo -e "$prefix barretenberg/cpp/build-smt/bin/smt_verification_tests"
245-
fi
246-
247228
echo "$hash barretenberg/cpp/scripts/test_civc_standalone_vks_havent_changed.sh"
248229
}
249230

@@ -275,7 +256,7 @@ function bench_cmds {
275256
echo "$prefix barretenberg/cpp/scripts/run_bench.sh native bb-micro-bench/native/client_ivc_verify build/bin/client_ivc_bench VerificationOnly$"
276257
}
277258

278-
# Runs benchmarks sharded over mache cores.
259+
# Runs benchmarks sharded over machine cores.
279260
function bench {
280261
echo_header "bb bench"
281262
rm -rf bench-out && mkdir -p bench-out
@@ -353,7 +334,7 @@ case "$cmd" in
353334
"hash")
354335
echo $hash
355336
;;
356-
test|test_cmds|bench|bench_cmds|build_bench|release|build_native|build_nodejs_module|build_asan_fast|build_wasm|build_wasm_threads|build_gcc_syntax_check_only|build_fuzzing_syntax_check_only|build_darwin|build_release|build_smt_verification|inject_version)
337+
test|test_cmds|bench|bench_cmds|build_bench|release|build_native|build_nodejs_module|build_asan_fast|build_wasm|build_wasm_threads|build_gcc_syntax_check_only|build_fuzzing_syntax_check_only|build_darwin|build_release|inject_version)
357338
$cmd "$@"
358339
;;
359340
*)

barretenberg/cpp/src/barretenberg/smt_verification/CMakeLists.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ set(CVC5_PREFIX "${CMAKE_BINARY_DIR}/_deps/cvc5")
55
set(CVC5_BUILD "${CVC5_PREFIX}/src/cvc5-build")
66
set(CVC5_LIB "${CVC5_BUILD}/lib/libcvc5.so")
77
set(CVC5_INCLUDE "${CVC5_BUILD}/include")
8-
set(CVC5_STABLE_COMMIT "5fcdb48eb26dee9385e0d0e6377fcc7e4afee85a")
98

109
if(ENABLE_ASAN)
1110
ExternalProject_Add(
1211
cvc5
1312
PREFIX ${CVC5_PREFIX}
1413
GIT_REPOSITORY "https://github.com/cvc5/cvc5.git"
15-
GIT_TAG ${CVC5_STABLE_COMMIT}
14+
GIT_TAG main
1615
BUILD_IN_SOURCE YES
17-
CONFIGURE_COMMAND ${SHELL} ./configure.sh debug --gpl --auto-download --cocoa --cryptominisat --kissat -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} --prefix=${CVC5_BUILD} --asan
16+
CONFIGURE_COMMAND ${SHELL} ./configure.sh debug --gpl --auto-download --cocoa --cryptominisat --kissat -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ --prefix=${CVC5_BUILD} --asan
1817
BUILD_COMMAND make -C build -j8
1918
INSTALL_COMMAND make -C build install
2019
UPDATE_COMMAND "" # No update step
@@ -27,9 +26,9 @@ else()
2726
cvc5
2827
PREFIX ${CVC5_PREFIX}
2928
GIT_REPOSITORY "https://github.com/cvc5/cvc5.git"
30-
GIT_TAG ${CVC5_STABLE_COMMIT}
29+
GIT_TAG main
3130
BUILD_IN_SOURCE YES
32-
CONFIGURE_COMMAND ${SHELL} ./configure.sh production --gpl --auto-download --cocoa --cryptominisat --kissat -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} --prefix=${CVC5_BUILD}
31+
CONFIGURE_COMMAND ${SHELL} ./configure.sh production --gpl --auto-download --cocoa --cryptominisat --kissat -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ --prefix=${CVC5_BUILD}
3332
BUILD_COMMAND make -C build -j8
3433
INSTALL_COMMAND make -C build install
3534
UPDATE_COMMAND "" # No update step

barretenberg/cpp/src/barretenberg/smt_verification/circuit/ultra_circuit.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ TEST(UltraCircuitSMT, EllipticRelationDBL)
160160
builder.set_variable_name(p2.x.get_witness_index(), "x2");
161161
builder.set_variable_name(p1.y.get_witness_index(), "y1");
162162
builder.set_variable_name(p2.y.get_witness_index(), "y2");
163-
builder.set_variable_name(p1.is_point_at_infinity().get_normalized_witness_index(), "is_inf");
163+
builder.set_variable_name(p1.is_point_at_infinity().witness_index, "is_inf");
164164

165165
auto circuit_info = unpack_from_buffer(builder.export_circuit());
166166
Solver s(circuit_info.modulus, ultra_solver_config);

build-images/src/Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,6 @@ RUN apt update && \
238238
inotify-tools \
239239
# Annoyingly unminimize upgrades nodejs.
240240
nodejs=22.16.0-1nodesource1 \
241-
# smt_verification dependencies
242-
python3-venv \
243-
python3-pip \
244-
m4 \
245241
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
246242

247243
# Install osxcross. Requires developer to mount SDK from their mac host.

container-builds/smt-container/build.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

container-builds/smt-container/src/Dockerfile

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)