Skip to content

Commit

Permalink
feat: publicly accessible bootstrap cache (#9335)
Browse files Browse the repository at this point in the history
./bootstrap.sh fast no longer checks for creds and no longer tries to
auth its cache download requests
  • Loading branch information
ludamad authored Oct 22, 2024
1 parent 42e5221 commit 28392d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,10 @@ if [ "$CMD" = "clean" ]; then
echo "Cleaning complete"
exit 0
elif [ "$CMD" = "full" ]; then
if can_use_ci_cache; then
echo -e "${BOLD}${YELLOW}WARNING: Performing a full bootstrap. Consider leveraging './bootstrap.sh fast' to use CI cache.${RESET}"
echo
fi
echo -e "${BOLD}${YELLOW}WARNING: Performing a full bootstrap. Consider leveraging './bootstrap.sh fast' to use CI cache.${RESET}"
echo
elif [ "$CMD" = "fast" ]; then
export USE_CACHE=1
if ! can_use_ci_cache; then
echo -e "${BOLD}${YELLOW}WARNING: AWS credentials are missing. Note this is for internal aztec devs only.${RESET}"
exit 1
fi
elif [ "$CMD" = "check" ]; then
check_toolchains
echo "Toolchains look good! 🎉"
Expand Down
2 changes: 1 addition & 1 deletion build-system/s3-cache-scripts/cache-download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function on_exit() {
trap on_exit EXIT

# Attempt to download the cache file
aws ${S3_BUILD_CACHE_AWS_PARAMS:-} s3 cp "s3://aztec-ci-artifacts/build-cache/$TAR_FILE" "$TAR_FILE" --quiet &>/dev/null || (echo "Cache download of $TAR_FILE failed." && exit 1)
aws ${S3_BUILD_CACHE_AWS_PARAMS:-} s3 cp "s3://aztec-ci-artifacts/build-cache/$TAR_FILE" "$TAR_FILE" --quiet --no-sign-request &>/dev/null || (echo "Cache download of $TAR_FILE failed." && exit 1)

# Extract the cache file
mkdir -p "$OUT_DIR"
Expand Down

0 comments on commit 28392d5

Please sign in to comment.