diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7b50047bc..d53cdbc8b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -39,7 +39,6 @@ /docker/ @ZcashFoundation/devops-reviewers cloudbuild.yaml @ZcashFoundation/devops-reviewers codecov.yml @ZcashFoundation/devops-reviewers -.dockerignore @ZcashFoundation/devops-reviewers firebase.json @ZcashFoundation/devops-reviewers katex-header.html @ZcashFoundation/devops-reviewers diff --git a/.github/workflows/test-full-sync.yml b/.github/workflows/test-full-sync.yml index 299174a26..39c43e42d 100644 --- a/.github/workflows/test-full-sync.yml +++ b/.github/workflows/test-full-sync.yml @@ -221,6 +221,16 @@ jobs: --ssh-flag="-o ServerAliveInterval=5" \ --command="docker logs --follow ${{ env.CONTAINER_NAME }}" + EXIT_CODE=$(\ + gcloud compute ssh \ + sync-checkpoint-${{ env.GITHUB_REF_SLUG_URL }}-${{ env.GITHUB_SHA_SHORT }} \ + --zone ${{ env.ZONE }} \ + --quiet \ + --ssh-flag="-o ServerAliveInterval=5" \ + --command="docker wait ${{ env.CONTAINER_NAME }}") + + exit ${EXIT_CODE} + - name: Get sync height from logs run: | SYNC_HEIGHT="" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f6fa6f67c..c234f358d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -311,7 +311,7 @@ jobs: echo "::set-output name=zebra_container::$CONTAINER_NAME" sleep 60 - - name: Regenerate stateful disks logs + - name: Regenerate stateful disks id: sync-to-checkpoint if: ${{ steps.create-instance.outcome == 'success' }} run: | @@ -321,6 +321,16 @@ jobs: --quiet \ --ssh-flag="-o ServerAliveInterval=5" \ --command="docker logs --follow ${{ env.ZEBRA_CONTAINER }}" + + EXIT_CODE=$(\ + gcloud compute ssh \ + sync-checkpoint-${{ env.GITHUB_REF_SLUG_URL }}-${{ env.GITHUB_SHA_SHORT }} \ + --zone ${{ env.ZONE }} \ + --quiet \ + --ssh-flag="-o ServerAliveInterval=5" \ + --command="docker wait ${{ env.ZEBRA_CONTAINER }}") + + exit ${EXIT_CODE} env: ZEBRA_CONTAINER: ${{ steps.get-container-name.outputs.zebra_container }} @@ -442,7 +452,7 @@ jobs: echo "::set-output name=zebra_container::$CONTAINER_NAME" sleep 60 - - name: Sync past mandatory checkpoint logs + - name: Sync past mandatory checkpoint id: sync-past-checkpoint run: | gcloud compute ssh \ @@ -451,6 +461,16 @@ jobs: --quiet \ --ssh-flag="-o ServerAliveInterval=5" \ --command="docker logs --follow ${{ env.ZEBRA_CONTAINER }}" + + EXIT_CODE=$(\ + gcloud compute ssh \ + sync-checkpoint-${{ env.GITHUB_REF_SLUG_URL }}-${{ env.GITHUB_SHA_SHORT }} \ + --zone ${{ env.ZONE }} \ + --quiet \ + --ssh-flag="-o ServerAliveInterval=5" \ + --command="docker wait ${{ env.ZEBRA_CONTAINER }}") + + exit ${EXIT_CODE} env: ZEBRA_CONTAINER: ${{ steps.get-container-name.outputs.zebra_container }} diff --git a/.dockerignore b/docker/.dockerignore similarity index 100% rename from .dockerignore rename to docker/.dockerignore