fix(ci): use debian for faster mounting, and increase timeout (#4276)
This commit is contained in:
parent
be4e065afb
commit
6331722c12
|
|
@ -113,14 +113,14 @@ jobs:
|
||||||
--boot-disk-type pd-ssd \
|
--boot-disk-type pd-ssd \
|
||||||
--create-disk name="zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${{ env.NETWORK }}-tip",device-name="zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${{ env.NETWORK }}-tip",size=100GB,type=pd-ssd \
|
--create-disk name="zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${{ env.NETWORK }}-tip",device-name="zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${{ env.NETWORK }}-tip",size=100GB,type=pd-ssd \
|
||||||
--container-mount-disk mount-path="/zebrad-cache",name="zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${{ env.NETWORK }}-tip" \
|
--container-mount-disk mount-path="/zebrad-cache",name="zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${{ env.NETWORK }}-tip" \
|
||||||
--container-image ${{ env.GAR_BASE }}/${{ env.IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} \
|
--container-image debian:buster \
|
||||||
--container-restart-policy=never \
|
--container-restart-policy=never \
|
||||||
--machine-type ${{ env.MACHINE_TYPE }} \
|
--machine-type ${{ env.MACHINE_TYPE }} \
|
||||||
--scopes cloud-platform \
|
--scopes cloud-platform \
|
||||||
--metadata=google-monitoring-enabled=true,google-logging-enabled=true \
|
--metadata=google-monitoring-enabled=true,google-logging-enabled=true \
|
||||||
--tags zebrad \
|
--tags zebrad \
|
||||||
--zone "${{ env.ZONE }}"
|
--zone "${{ env.ZONE }}"
|
||||||
sleep 30
|
sleep 60
|
||||||
|
|
||||||
- name: Full sync
|
- name: Full sync
|
||||||
id: full-sync
|
id: full-sync
|
||||||
|
|
@ -133,7 +133,7 @@ jobs:
|
||||||
--command \
|
--command \
|
||||||
"docker run -e TEST_FULL_SYNC=1 -e ZEBRA_FORCE_USE_COLOR=1 -e FULL_SYNC_MAINNET_TIMEOUT_MINUTES=600 -t --name full-sync"
|
"docker run -e TEST_FULL_SYNC=1 -e ZEBRA_FORCE_USE_COLOR=1 -e FULL_SYNC_MAINNET_TIMEOUT_MINUTES=600 -t --name full-sync"
|
||||||
--mount type=bind,source=/mnt/disks/gce-containers-mounts/gce-persistent-disks/zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${{ env.NETWORK }}-tip,target=/zebrad-cache \
|
--mount type=bind,source=/mnt/disks/gce-containers-mounts/gce-persistent-disks/zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${{ env.NETWORK }}-tip,target=/zebrad-cache \
|
||||||
${{ env.GAR_BASE }}/${{ env.IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }}
|
${{ env.GAR_BASE }}/${{ env.IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }}"
|
||||||
|
|
||||||
EXIT_CODE=$(\
|
EXIT_CODE=$(\
|
||||||
gcloud compute ssh \
|
gcloud compute ssh \
|
||||||
|
|
|
||||||
|
|
@ -208,14 +208,14 @@ jobs:
|
||||||
--boot-disk-type pd-ssd \
|
--boot-disk-type pd-ssd \
|
||||||
--create-disk name="zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${{ env.NETWORK }}-checkpoint",device-name="zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${{ env.NETWORK }}-checkpoint",size=100GB,type=pd-ssd \
|
--create-disk name="zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${{ env.NETWORK }}-checkpoint",device-name="zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${{ env.NETWORK }}-checkpoint",size=100GB,type=pd-ssd \
|
||||||
--container-mount-disk mount-path="/zebrad-cache",name="zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${{ env.NETWORK }}-checkpoint" \
|
--container-mount-disk mount-path="/zebrad-cache",name="zebrad-cache-${{ env.GITHUB_SHA_SHORT }}-${{ env.NETWORK }}-checkpoint" \
|
||||||
--container-image ${{ env.GAR_BASE }}/${{ env.IMAGE_NAME }}:sha-${{ env.GITHUB_SHA_SHORT }} \
|
--container-image debian:buster \
|
||||||
--container-restart-policy=never \
|
--container-restart-policy=never \
|
||||||
--machine-type ${{ env.MACHINE_TYPE }} \
|
--machine-type ${{ env.MACHINE_TYPE }} \
|
||||||
--scopes cloud-platform \
|
--scopes cloud-platform \
|
||||||
--metadata=google-monitoring-enabled=true,google-logging-enabled=true \
|
--metadata=google-monitoring-enabled=true,google-logging-enabled=true \
|
||||||
--tags zebrad \
|
--tags zebrad \
|
||||||
--zone "${{ env.ZONE }}"
|
--zone "${{ env.ZONE }}"
|
||||||
sleep 30
|
sleep 60
|
||||||
|
|
||||||
- name: Regenerate stateful disks
|
- name: Regenerate stateful disks
|
||||||
id: sync-to-checkpoint
|
id: sync-to-checkpoint
|
||||||
|
|
@ -348,7 +348,7 @@ jobs:
|
||||||
--metadata=google-monitoring-enabled=true,google-logging-enabled=true \
|
--metadata=google-monitoring-enabled=true,google-logging-enabled=true \
|
||||||
--tags zebrad \
|
--tags zebrad \
|
||||||
--zone "${{ env.ZONE }}"
|
--zone "${{ env.ZONE }}"
|
||||||
sleep 30
|
sleep 60
|
||||||
|
|
||||||
- name: Sync past mandatory checkpoint
|
- name: Sync past mandatory checkpoint
|
||||||
id: sync-past-checkpoint
|
id: sync-past-checkpoint
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue