Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aztec-up/scripts/run_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail

trap 'docker rm -f $1 &>/dev/null' SIGINT SIGTERM EXIT
Expand Down
2 changes: 1 addition & 1 deletion aztec-up/test/basic_install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eu

# Check we're in the test container.
Expand Down
2 changes: 1 addition & 1 deletion aztec-up/test/counter_contract.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail

# Check we're in the test container.
Expand Down
2 changes: 1 addition & 1 deletion barretenberg/acir_tests/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
source $(git rev-parse --show-toplevel)/ci3/source_bootstrap

cmd=${1:-}
Expand Down
4 changes: 2 additions & 2 deletions barretenberg/acir_tests/flows/fail.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Fails, for testing the harness.
echo Forced failure.
false
false
2 changes: 1 addition & 1 deletion barretenberg/acir_tests/flows/prove_and_verify.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# prove_and_verify produces no output, so is parallel safe.
set -eu

Expand Down
2 changes: 1 addition & 1 deletion barretenberg/acir_tests/flows/prove_then_verify.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# prove_then_verify produces intermediate state. We use process substitution to make parallel safe.
set -eu

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Create intermediate state in a directory. Uses a temp dir to ensure parallel safe and cleans up on exit.
set -eux

Expand Down
2 changes: 1 addition & 1 deletion barretenberg/cpp/scripts/compile_avm.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Compile
../../bb-pilcom/target/release/bb_pil pil/avm/main.pil --name Avm
4 changes: 2 additions & 2 deletions barretenberg/cpp/scripts/rebuild_avm.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Rebuild
./scripts/compile_avm.sh
Expand All @@ -8,4 +8,4 @@ git add **/generated/*
./format.sh staged

# Build vm tests
cmake --build --preset clang16 --target vm_tests
cmake --build --preset clang16 --target vm_tests
2 changes: 1 addition & 1 deletion barretenberg/cpp/scripts/run_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This runs an individual test.
# It's the script used by ./bootstrap.sh test_cmds.
# It means we can return a concise, easy to read, easy to run command for reproducing a test run.
Expand Down
4 changes: 2 additions & 2 deletions barretenberg/scripts/download_bb_crs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eu

# To run bb we need a crs.
Expand Down Expand Up @@ -32,4 +32,4 @@ if [ ! -f "$gg1" ] || [ $(stat -c%s "$gg1") -lt $crs_size_bytes ]; then
curl -s -H "Range: bytes=28-$((28 + crs_size_bytes-1))" -o $gg1 \
https://aztec-ignition.s3-eu-west-2.amazonaws.com/TEST%20GRUMPKIN/monomial/transcript00.dat
echo $crs_size > $crs_path/grumpkin_size
fi
fi
2 changes: 1 addition & 1 deletion barretenberg/ts/scripts/run_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This runs an individual test from the dest folder.
# Due to using web-workers, trying to do on-the-fly ts transpilation was having issues.
# It's the script used by ./bootstrap.sh test_cmds.
Expand Down
2 changes: 1 addition & 1 deletion boxes/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
source $(git rev-parse --show-toplevel)/ci3/source_bootstrap

cmd=${1:-}
Expand Down
2 changes: 1 addition & 1 deletion boxes/scripts/run_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eu

cd $(dirname $0)/..
Expand Down
4 changes: 2 additions & 2 deletions build-images/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eu

cd $(dirname $0)
Expand Down Expand Up @@ -42,4 +42,4 @@ else
-v$HOME/.ssh/id_rsa:/home/aztec-dev/.ssh/id_rsa:ro \
--privileged \
aztecprotocol/devbox:3.0
fi
fi
4 changes: 2 additions & 2 deletions build-images/src/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

# Modify the uid and gid of aztec-dev to match that of the host users.
Expand All @@ -7,4 +7,4 @@ set -e

/usr/local/share/docker-init.sh &> /dev/null

exec /usr/sbin/gosu aztec-dev "$@"
exec /usr/sbin/gosu aztec-dev "$@"
2 changes: 1 addition & 1 deletion ci.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
source $(git rev-parse --show-toplevel)/ci3/source
source $ci3/source_redis

Expand Down
2 changes: 1 addition & 1 deletion ci3/arch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Returns the standard artifact prefixes for each arch.
case $(uname -m) in
aarch64)
Expand Down
2 changes: 1 addition & 1 deletion ci3/aws/ami_update.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
source $(git rev-parse --show-toplevel)/ci3/source

arch=${ARCH:-$(arch)}
Expand Down
2 changes: 1 addition & 1 deletion ci3/aws_handle_evict
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
NO_CD=1 source $(git rev-parse --show-toplevel)/ci3/source

# Gracefully signals eviction status with a 155 exit code.
Expand Down
2 changes: 1 addition & 1 deletion ci3/bootstrap_ec2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
NO_CD=1 source $(git rev-parse --show-toplevel)/ci3/source
source $ci3/source_refname

Expand Down
2 changes: 1 addition & 1 deletion ci3/bootstrap_local
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Launches our CI image locally and runs the bootstrap.
# This replicates exactly what our CI run experiences.
# We use a volume on /var/lib/docker as overlayfs trashes performance (in fact it just breaks).
Expand Down
2 changes: 1 addition & 1 deletion ci3/cache_delete
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
[ -n "${BUILD_SYSTEM_DEBUG:-}" ] && set -x
set -eu

Expand Down
2 changes: 1 addition & 1 deletion ci3/cache_download
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# DO NOT output to stdout. This script is used in contexts where stdout is processed.
NO_CD=1 source ${root:-$(git rev-parse --show-toplevel)}/ci3/source

Expand Down
2 changes: 1 addition & 1 deletion ci3/cache_log
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Runs the given command.
# If a redis cache is available, redirect input into a cache log.
# If DUP=1 then we duplicate input also to stdout.
Expand Down
4 changes: 2 additions & 2 deletions ci3/cache_ls
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eu -o pipefail
[ "${BUILD_SYSTEM_DEBUG:-}" = 1 ] && set -x

Expand All @@ -19,4 +19,4 @@ else
S3_ENDPOINT="http://aztec-ci-artifacts.s3.amazonaws.com"
# Attempt to download and extract the cache file
curl -s -f "$S3_ENDPOINT/build-cache/$TAR_FILE" | tar -tzf -
fi
fi
2 changes: 1 addition & 1 deletion ci3/cache_upload
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# DO NOT output to stdout. This script is used in contexts where stdout is processed.
NO_CD=1 source ${root:-$(git rev-parse --show-toplevel)}/ci3/source

Expand Down
2 changes: 1 addition & 1 deletion ci3/clean_remote_tags
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Set your GitHub repository info and token if needed
GH_OWNER="aztecprotocol"
GH_REPO="aztec-packages"
Expand Down
2 changes: 1 addition & 1 deletion ci3/denoise
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
NO_CD=1 source ${root:-$(git rev-parse --show-toplevel)}/ci3/source
source $ci3/source_redis

Expand Down
2 changes: 1 addition & 1 deletion ci3/do_or_dryrun
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [ ${DRY_RUN:-0} = 0 ]; then
exec "$@"
else
Expand Down
4 changes: 2 additions & 2 deletions ci3/docker_has_image
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
IMAGE="$1"
docker image ls --format '{{.Repository}}:{{.Tag}}' | grep -q "$IMAGE"
docker image ls --format '{{.Repository}}:{{.Tag}}' | grep -q "$IMAGE"
2 changes: 1 addition & 1 deletion ci3/docker_isolate
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Isolate the network stack etc using docker.
# Carefully set things so we can use our git repo mounted as-is.
NO_CD=1 source $(git rev-parse --show-toplevel)/ci3/source
Expand Down
2 changes: 1 addition & 1 deletion ci3/dump_fail
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# If the given command succeeds, only stdout is output.
# If the given command fails, both stdout and stderr are output.
# As stdout is output as normal, the caller can redirect to /dev/null if they want to silence that also.
Expand Down
2 changes: 1 addition & 1 deletion ci3/find_ports
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
source $(git rev-parse --show-toplevel)/ci3/source
# Find 'num_ports' free ports between 9000 and 10000
# Read first arg, default to 1 port
Expand Down
2 changes: 1 addition & 1 deletion ci3/log_ci_run
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
NO_CD=1 source $(git rev-parse --show-toplevel)/ci3/source
source $ci3/source_refname
source $ci3/source_redis
Expand Down
2 changes: 1 addition & 1 deletion ci3/memsuspend_limit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eu

# This informs the --memsuspend flag for GNU parallel.
Expand Down
2 changes: 1 addition & 1 deletion ci3/retry
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -u # not -e
[ "${BUILD_SYSTEM_DEBUG:-}" = 1 ] && set -x

Expand Down
2 changes: 1 addition & 1 deletion ci3/run_test_cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Called by 'parallelise' to execute a given test cmd.
NO_CD=1 source $(git rev-parse --show-toplevel)/ci3/source
source $ci3/source_redis
Expand Down
4 changes: 2 additions & 2 deletions ci3/source_test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Script base for testing the cache with minio.
# The cache is essentially ephemeral this way.
# Any calls to cache_* functions work with hitting local minio instead of S3.
Expand Down Expand Up @@ -44,4 +44,4 @@ if nc -z 127.0.0.1 $TEST_PORT >/dev/null 2>&1; then
minio_delete_cache
fi

minio_start
minio_start
2 changes: 1 addition & 1 deletion ci3/watch_ci
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
source $(git rev-parse --show-toplevel)/ci3/source
source $ci3/source_redis

Expand Down
6 changes: 3 additions & 3 deletions iac/network/scripts/bootnode_startup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -e

Expand Down Expand Up @@ -101,13 +101,13 @@ IMAGE=aztec
LOG_LEVEL=verbose

cat <<EOF > /home/$SSH_USER/tag.sh
#!/bin/bash
#!/usr/bin/env bash
export TAG=$TAG
EOF
chmod +x /home/$SSH_USER/tag.sh

cat << 'EOF' > /home/$SSH_USER/start.sh
#!/bin/bash
#!/usr/bin/env bash
source ./tag.sh
echo "Starting bootnode container..."
JSON=$(curl -s http://static.aztec.network/$NETWORK_NAME/bootnodes.json)
Expand Down
2 changes: 1 addition & 1 deletion iac/network/scripts/deploy_bootnodes.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -e

Expand Down
4 changes: 2 additions & 2 deletions iac/network/scripts/update_bootnode_tag.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# This script will SSH into the provided HOST, write a new tag file and restart the bootnode service

Expand All @@ -13,7 +13,7 @@ SERVICE_NAME=aztec-bootnode
ssh -i $SSH_KEY_FILE $USER@$HOST << ENDSSH
echo "Updating the target file..."
sudo bash -c 'cat << ENDFILE > $FILE
#!/bin/bash
#!/usr/bin/env bash
export TAG=$TAG
ENDFILE'

Expand Down
3 changes: 1 addition & 2 deletions iac/network/scripts/update_bootnodes.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Script to extract the IP addresses of bootnodes in the given network, SSH into them, update their image tag before restarting them

Expand Down Expand Up @@ -50,4 +50,3 @@ while read -r REGION IP; do
done < <(echo "$GCP_IP_OUTPUT" | jq -r 'to_entries | .[] | "\(.key) \(.value)"')

rm -f $SSH_KEY_FILE

2 changes: 1 addition & 1 deletion l1-contracts/slither_has_diff.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

FILE="slither_output.md"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Within failure_contracts, we have contracts that should fail compilation due to code in the macros
# This script will test that compilation fails for each of the contracts in failure_contracts

Expand Down
2 changes: 1 addition & 1 deletion noir-projects/precommit.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Precommit hook for formatting staged noir files.
# We only run the formatter if there are staged *.nr files.
# Nothing should cause a failure, because that would annoy everyone if all they're trying to do is commit.
Expand Down
4 changes: 2 additions & 2 deletions noir-projects/scripts/run_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eu

sub_project=$1
Expand All @@ -14,4 +14,4 @@ export NARGO=${NARGO:-../../noir/noir-repo/target/release/nargo}

[ -n "$txe_port" ] && args="--oracle-resolver http://127.0.0.1:$txe_port" || args=""

$NARGO test --silence-warnings --skip-brillig-constraints-check $args --package $package --exact $test
$NARGO test --silence-warnings --skip-brillig-constraints-check $args --package $package --exact $test
2 changes: 1 addition & 1 deletion noir/postcheckout.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Post-checkout hook for warning the user to create a patch file before running a build,
# if there are outstanding commits that could get lost if we switch to a different noir-repo checkout.
set -euo pipefail
Expand Down
4 changes: 2 additions & 2 deletions noir/scripts/run_test.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
#!/usr/bin/env bash
set -eu

cd $(dirname $0)/../noir-repo

export RAYON_NUM_THREADS=1

./target/release/deps/$1 --exact $2
./target/release/deps/$1 --exact $2
2 changes: 1 addition & 1 deletion playground/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
source $(git rev-parse --show-toplevel)/ci3/source_bootstrap

cmd=${1:-}
Expand Down
Loading