Skip to content

Commit 10f9698

Browse files
AztecBotAztecBotjohnathan79717
authored
feat: merge-train/barretenberg (#15941)
See [merge-train-readme.md](https://github.com/AztecProtocol/aztec-packages/blob/next/.github/workflows/merge-train-readme.md). BEGIN_COMMIT_OVERRIDE chore: echo a message when script detects no vk change (#15944) END_COMMIT_OVERRIDE --------- Co-authored-by: AztecBot <[email protected]> Co-authored-by: Jonathan Hao <[email protected]>
1 parent d075733 commit 10f9698

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

barretenberg/cpp/scripts/test_civc_standalone_vks_havent_changed.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ cd ..
1111
# - Generate a hash for versioning: sha256sum bb-civc-inputs.tar.gz
1212
# - Upload the compressed results: aws s3 cp bb-civc-inputs.tar.gz s3://aztec-ci-artifacts/protocol/bb-civc-inputs-[hash(0:8)].tar.gz
1313
# Note: In case of the "Test suite failed to run ... Unexpected token 'with' " error, need to run: docker pull aztecprotocol/build:3.0
14-
pinned_civc_inputs_url="https://aztec-ci-artifacts.s3.us-east-2.amazonaws.com/protocol/bb-civc-inputs-20e6f0d0.tar.gz"
14+
pinned_short_hash="20e6f0d0"
15+
pinned_civc_inputs_url="https://aztec-ci-artifacts.s3.us-east-2.amazonaws.com/protocol/bb-civc-inputs-${pinned_short_hash}.tar.gz"
1516

1617
function compress_and_upload {
1718
# 1) Compress the results
@@ -73,7 +74,11 @@ export -f check_circuit_vks
7374
ls "$inputs_tmp_dir"
7475

7576
if [[ "${1:-}" == "--update_fast" ]]; then
76-
parallel -v --line-buffer --tag check_circuit_vks {} --update_inputs ::: $(ls "$inputs_tmp_dir") || compress_and_upload $inputs_tmp_dir
77+
parallel -v --line-buffer --tag check_circuit_vks {} --update_inputs ::: $(ls "$inputs_tmp_dir") \
78+
&& echo "No VK changes detected. Short hash is: ${pinned_short_hash}" \
79+
|| compress_and_upload $inputs_tmp_dir
7780
else
78-
parallel -v --line-buffer --tag check_circuit_vks {} ::: $(ls "$inputs_tmp_dir")
81+
parallel -v --line-buffer --tag check_circuit_vks {} ::: $(ls "$inputs_tmp_dir") \
82+
&& echo "No VK changes detected. Short hash is: ${pinned_short_hash}" \
83+
|| echo "VK changes detected. Please re-run the script with --update_fast or --update_inputs"
7984
fi

0 commit comments

Comments
 (0)