-
Notifications
You must be signed in to change notification settings - Fork 129
feat: CI to test aztec circuits with current commit of bberg #418
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
532dd0b
More generators for aztec3.
suyash67 7605af9
update js vk (because we now use UP for merkle hashing)
suyash67 a93f768
Helpers for ECDSA in A3 (#364)
suyash67 1b6c57c
Change pedersen hash c_bind to use `pedersen_hash::lookup`.
suyash67 c25bd08
c_binds and other ECDSA related fixes (#407)
suyash67 a448486
hack: (aztec3) introduce barretenberg crypto generator parameters hac…
ludamad cc45c9c
chore: align BARRETENBERG_CRYPTO_GENERATOR_PARAMETERS_HACK usage
ludamad 12feeba
CI to test aztec circuits with current commit of bberg
cf2f7ad
build manifest
7864270
chore: align BARRETENBERG_CRYPTO_GENERATOR_PARAMETERS_HACK usage (#411)
ludamad 9b27415
try other branch of aztec packages
8305c1a
ci rename script
14c41f6
Update join_split test
ludamad 8a5781e
Merge branch 'aztec3-temporary' into db/aztec-circuits-ci
5a9c240
bump aztec version and merge in aztec3-temporary fixes
5097463
aztec commit switched to branch
0bcf173
merge
9366263
bump aztec commit and document
576749d
typo README.md
dbanks12 bab4c6d
Update README.md
dbanks12 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #!/bin/bash | ||
| set -e | ||
| REPOSITORY=$1 | ||
| SCRIPT_PATH=$2 | ||
| shift | ||
| shift | ||
|
|
||
| cd $(query_manifest projectDir $REPOSITORY) | ||
|
|
||
| mkdir -p /tmp/test-logs | ||
|
|
||
| set -o pipefail | ||
| cond_spot_run_script $REPOSITORY $JOB_NAME 32 $SCRIPT_PATH $@ | tee "/tmp/test-logs/$JOB_NAME.log" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| master |
8 changes: 8 additions & 0 deletions
8
cpp/dockerfiles/Dockerfile.circuits-wasm-linux-clang-builder-runner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| FROM ubuntu:kinetic | ||
| RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y bash build-essential git libssl-dev cmake ninja-build curl binaryen xz-utils curl | ||
|
|
||
| RUN curl https://wasmtime.dev/install.sh -sSf | bash /dev/stdin --version v3.0.1 | ||
| WORKDIR /usr/src/barretenberg/cpp/src | ||
| RUN curl -s -L https://github.com/CraneStation/wasi-sdk/releases/download/wasi-sdk-12/wasi-sdk-12.0-linux.tar.gz | tar zxfv - | ||
| WORKDIR /usr/src/barretenberg/cpp | ||
| COPY . . |
18 changes: 18 additions & 0 deletions
18
cpp/dockerfiles/Dockerfile.circuits-x86_64-linux-clang-builder-runner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| FROM alpine:3.17 | ||
| RUN apk update \ | ||
| && apk upgrade \ | ||
| && apk add --no-cache \ | ||
| bash \ | ||
| build-base \ | ||
| clang15 \ | ||
| openmp \ | ||
| openmp-dev \ | ||
| cmake \ | ||
| ninja \ | ||
| git \ | ||
| curl \ | ||
| perl | ||
|
|
||
| WORKDIR /usr/src/barretenberg/cpp | ||
|
|
||
| COPY . . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| #!/bin/bash | ||
| set -e | ||
|
|
||
| # To be called from CI for testing with docker and AWS. | ||
| # Can't be called locally unless AWS credentials are set up. | ||
| # | ||
| # Call from config.yml | ||
| # Example: | ||
| # command: cond_spot_run_script circuits-wasm-linux-clang-assert 1 wasm scripts/a3-tests -*.skip*:*.circuit* | ||
|
|
||
| AZTEC_COMMIT=$1 # Aztec commit/branch to checkout (MANDATORY) | ||
| NUM_TRANSCRIPTS=$2 # integer (MANDATORY) | ||
| ARCH=$3 # x86_64 or wasm (MUST BE LOWERCASE) (MANDATORY) used in aztec's circuits `run_tests_local` | ||
| # TESTS=$4 (MANDATORY) used in aztec's circuits `run_tests_local` (test files rel to circuits/cpp) | ||
| # GTEST_FILTER=$5 (optional) used in aztec's circuits `run_tests_local` | ||
| # *** See `run_tests_local` for the args forwarded to that script | ||
| shift # arg1 (aztec commit) and arg2 (num transcripts) are not forwarded | ||
| shift # to aztec's circuits `run_tests_local` | ||
|
|
||
| $(aws ecr get-login --region us-east-2 --no-include-email) 2> /dev/null | ||
|
|
||
| IMAGE_URI=278380418400.dkr.ecr.us-east-2.amazonaws.com/barretenberg-circuits-${ARCH}-linux-clang-builder-runner:cache-$COMMIT_HASH | ||
| docker pull $IMAGE_URI | ||
|
|
||
| if [ "$ARCH" != "wasm" ]; then | ||
| # x86_64 / anything other than wasm | ||
| PRESET=default | ||
| CONFIGURE_OPTS="-DCMAKE_BUILD_TYPE=RelWithAssert -DCI=ON" | ||
| BUILD_DIR=build | ||
| else | ||
| PRESET=wasm | ||
| BUILD_DIR=build-wasm | ||
| fi | ||
|
|
||
| echo "*** Running Aztec circuits tests on commit: $AZTEC_COMMIT" | ||
| # run tests in docker | ||
| RUN_ARGS="$@" # helper var necessary for some reason to pass all args to docker run | ||
| docker run --rm -t $IMAGE_URI /bin/sh -c "\ | ||
| set -e; \ | ||
| cd /usr/src/; \ | ||
| git clone https://github.com/AztecProtocol/aztec3-packages.git; \ | ||
| cd /usr/src/aztec3-packages/circuits/cpp; \ | ||
| git checkout $AZTEC_COMMIT; \ | ||
| rm -rf /usr/src/aztec3-packages/circuits/cpp/barretenberg; | ||
| mv /usr/src/barretenberg .; \ | ||
| cmake --preset $PRESET $CONFIGURE_OPTS; \ | ||
| cmake --build --preset $PRESET; \ | ||
| cd /usr/src/aztec3-packages/circuits/cpp/barretenberg/cpp/srs_db; \ | ||
| ./download_ignition.sh $NUM_TRANSCRIPTS; \ | ||
| cd /usr/src/aztec3-packages/circuits/cpp; \ | ||
| export PATH=\$PATH:~/.wasmtime/bin/; \ | ||
| ./scripts/run_tests_local $RUN_ARGS;" | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.