From b1506557d739cbd4f03c8da8a8b04ae1c558c637 Mon Sep 17 00:00:00 2001 From: Berry Davenport Date: Wed, 10 Jan 2024 12:28:31 -0500 Subject: [PATCH] Comment out deploy, fix bigint --- .github/waf-controller.sh | 4 ++-- .github/workflows/deploy.yml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/waf-controller.sh b/.github/waf-controller.sh index 64e2835e4f..43d04a1105 100755 --- a/.github/waf-controller.sh +++ b/.github/waf-controller.sh @@ -21,14 +21,14 @@ jitter() { #10 seconds LONGEST=1000 DIV=100 - EXP=$(perl -e "print $SHORTEST**$1") + EXP=$(perl -e "use bigint; print $SHORTEST**$1") MIN=$(($EXP>$LONGEST ? $LONGEST : $EXP)) RND=$(shuf -i$SHORTEST-$MIN -n1) perl -e "print $RND/$DIV" } #Attempt to avoid resource contention from the start -sleep $(jitter $(shuf -i1-50 -n1)) +sleep $(jitter $(shuf -i1-10 -n1)) for ((i=1; i <= $CIRCUIT_BREAKER; i++)); do #This loop is ONLY for retrying if the retries exceeded exception is thrown diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e2c23c83cc..782a0a39c5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -144,11 +144,11 @@ jobs: # run: | # #!/bin/bash # aws wafv2 update-ip-set --name=${{ steps.fetch-ip-set-arns.outputs.IPSET_NAME }} --scope=CLOUDFRONT --id=${{ steps.fetch-ip-set-arns.outputs.IPSET_ID }} --lock-token=${{ steps.fetch-ip-set-arns.outputs.IPSET_LOCK_TOKEN }} --addresses ${{ steps.get-ip.outputs.RUNNER_IP }} --action=REMOVE - - name: deploy - run: | - # When deploying multiple copies of this quickstart to the same AWS Account (not ideal), a prefix helps prevent stepping on each other. - # This can optionally be set as an GitHub Actions Secret - ./deploy.sh $STAGE_PREFIX$branch_name + #- name: deploy + # run: | + # # When deploying multiple copies of this quickstart to the same AWS Account (not ideal), a prefix helps prevent stepping on each other. + # # This can optionally be set as an GitHub Actions Secret + # ./deploy.sh $STAGE_PREFIX$branch_name - name: Endpoint id: endpoint run: |