Skip to content

Commit

Permalink
feat: bb and bb.js directly parse nargo bincode format. (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlielye authored Jul 17, 2023
1 parent 5b795e8 commit d25e37a
Show file tree
Hide file tree
Showing 30 changed files with 7,949 additions and 2,701 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ jobs:
command: cond_spot_run_tests barretenberg-x86_64-linux-clang-assert 1 stdlib-tests
- *save_logs

acir-format-tests:
dsl-tests:

This comment has been minimized.

Copy link
@ludamad

ludamad Jul 23, 2023

Collaborator

Why the name change? @charlielye (or is it one)

docker:
- image: aztecprotocol/alpine-build-image
resource_class: small
Expand All @@ -191,7 +191,7 @@ jobs:
- *setup_env
- run:
name: "Test"
command: cond_spot_run_tests barretenberg-x86_64-linux-clang-assert 1 acir_format_tests
command: cond_spot_run_tests barretenberg-x86_64-linux-clang-assert 1 dsl_tests
- *save_logs

barretenberg-tests:
Expand Down Expand Up @@ -433,7 +433,7 @@ workflows:
- wasm-linux-clang: *defaults
- proof-system-tests: *bb_test
- honk-tests: *bb_test
- acir-format-tests: *bb_test
- dsl-tests: *bb_test
- barretenberg-tests: *bb_test
- stdlib-tests: *bb_test
- stdlib-recursion-turbo-tests: *bb_test
Expand Down
11 changes: 3 additions & 8 deletions acir_tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
FROM 278380418400.dkr.ecr.eu-west-2.amazonaws.com/barretenberg-x86_64-linux-clang-assert
FROM 278380418400.dkr.ecr.eu-west-2.amazonaws.com/bb.js

FROM rust:alpine AS atbbc
RUN apk update && apk add musl-dev
WORKDIR /usr/src/barretenberg/acir_tests
COPY acir-to-bberg-circuit acir-to-bberg-circuit
RUN cd acir-to-bberg-circuit && cargo build --release

FROM node:18-alpine
RUN apk update && apk add git bash curl
COPY --from=0 /usr/src/barretenberg/cpp/build /usr/src/barretenberg/cpp/build
COPY --from=1 /usr/src/barretenberg/ts /usr/src/barretenberg/ts
COPY --from=2 /usr/src/barretenberg/acir_tests/acir-to-bberg-circuit /usr/src/barretenberg/acir_tests/acir-to-bberg-circuit
WORKDIR /usr/src/barretenberg/acir_tests
COPY . .
# Run all native tests.
RUN ./run_acir_tests.sh
RUN BB=../ts/dest/main.js ./run_acir_tests.sh
# Just run double_verify_proof as a sanity check as bb.js is quite slow.
RUN BB=../ts/dest/main.js ./run_acir_tests.sh double_verify_proof
1 change: 0 additions & 1 deletion acir_tests/acir-to-bberg-circuit/.gitignore

This file was deleted.

Loading

0 comments on commit d25e37a

Please sign in to comment.