-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into revert-10887-revert-10881-md/back-off-fail…
…ed-dials
- Loading branch information
Showing
31 changed files
with
245 additions
and
137 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 |
---|---|---|
|
@@ -115,7 +115,7 @@ case "$cmd" in | |
test | ||
;; | ||
"ci") | ||
build_native | ||
build | ||
test | ||
;; | ||
"hash") | ||
|
This file contains 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 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 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 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,30 @@ | ||
#!/bin/bash | ||
# Launches our CI image locally and runs the bootstrap. | ||
# This is used interim while we have CI runners that are not launched with bootstrap_ec2. | ||
# It uses docker-in-docker as some test flows require it (e.g. e2e). | ||
# We use a volume on /var/lib/docker as overlayfs trashes performance (in fact it just breaks). | ||
# We mount in aws credentials to leverage the s3 cache. | ||
# The host repository is mounted in read-only, and a clone is taken to ensure a clean start. | ||
# If anything goes wrong during the run, the container will drop into a shell. | ||
|
||
root=$(git rev-parse --show-toplevel) | ||
source $root/ci3/source | ||
current_commit=$(git rev-parse HEAD) | ||
cmd=${1:-"CI=1 ./bootstrap.sh fast"} | ||
|
||
docker run --rm \ | ||
--privileged \ | ||
-v bootstrap_ci_local_docker:/var/lib/docker \ | ||
-v $root:/aztec-packages-host:ro \ | ||
-v $HOME/.aws:/root/.aws \ | ||
aztecprotocol/ci:2.0 bash -c " | ||
/usr/local/share/docker-init.sh &> /dev/null | ||
git config --global --add safe.directory /aztec-packages-host/.git | ||
mkdir -p /root/aztec-packages && cd /root/aztec-packages | ||
# Ensure we get a clean clone of the repo. | ||
git init &>/dev/null | ||
git remote add origin https://github.com/aztecprotocol/aztec-packages | ||
git fetch --depth 1 origin $current_commit 2>/dev/null || (echo 'The commit was not pushed, run aborted.' && exit 1) | ||
git checkout FETCH_HEAD &>/dev/null | ||
$cmd | ||
" |
This file contains 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 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 |
---|---|---|
|
@@ -30,7 +30,7 @@ if [ "$status" -ne 0 ]; then | |
cat "$stderr" | ||
} >&2 | ||
else | ||
echo "$output" | ||
echo -n "$output" | ||
fi | ||
|
||
exit $status |
This file contains 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 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 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 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
Oops, something went wrong.