From f933fc0b722024251abc05dcaad35f41ffe25c60 Mon Sep 17 00:00:00 2001 From: ludamad Date: Wed, 15 May 2024 17:49:45 -0400 Subject: [PATCH] chore(ci): dont detach ebs (#6441) Seeming some EBS corruption and correlates to multiple runners starting, could be detaching someone who just attached --- .github/ci-setup-action/action.yml | 2 +- scripts/ci/attach_ebs_cache.sh | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/ci-setup-action/action.yml b/.github/ci-setup-action/action.yml index 415773944d6..14708938330 100644 --- a/.github/ci-setup-action/action.yml +++ b/.github/ci-setup-action/action.yml @@ -59,7 +59,7 @@ runs: if: ${{ inputs.concurrency_key }} with: run: | - while [ -f "${{ inputs.concurrency_key }}.lock" ]; do sleep 1 ; echo "Lock is currently held by $(cat '${{ inputs.concurrency_key }}.lock'), waiting..." ; done + while [ -f "/home/ubuntu/${{ inputs.concurrency_key }}.lock" ]; do sleep 1 ; echo "Lock is currently held by $(cat '/home/ubuntu/${{ inputs.concurrency_key }}.lock'), waiting..." ; done echo "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" > "/home/ubuntu/${{ inputs.concurrency_key }}.lock" echo "/home/ubuntu/${{ inputs.concurrency_key }}.lock acquired." post: | diff --git a/scripts/ci/attach_ebs_cache.sh b/scripts/ci/attach_ebs_cache.sh index 95e89e4b67d..f87233ea93f 100755 --- a/scripts/ci/attach_ebs_cache.sh +++ b/scripts/ci/attach_ebs_cache.sh @@ -111,11 +111,6 @@ while [ "$(aws ec2 describe-volumes \ elapsed_time=$((elapsed_time + WAIT_INTERVAL)) done -# First, make sure this is detached from any instances stuck in stopping state -aws ec2 detach-volume \ - --region $REGION \ - --volume-id $VOLUME_ID || true - # Attach volume to the instance aws ec2 attach-volume \ --region $REGION \ @@ -162,4 +157,4 @@ rm -rf /var/lib/docker/tmp-images systemctl restart docker # important: everything (except earthly ls) should go through earthly-ci scripts/earthly-ci bootstrap -touch /home/ubuntu/.setup-complete \ No newline at end of file +touch /home/ubuntu/.setup-complete