File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 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
1617function compress_and_upload {
1718 # 1) Compress the results
@@ -73,7 +74,11 @@ export -f check_circuit_vks
7374ls " $inputs_tmp_dir "
7475
7576if [[ " ${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
7780else
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"
7984fi
You can’t perform that action at this time.
0 commit comments