Attempt to fix test.yml (#2635)
* Only use -t flag to docker run, set SSH keep alive * Remove SSH flag for now * Add ssh flag back to test.yml gcloud compute ssh command Co-authored-by: Deirdre Connolly <deirdre@zfnd.org>
This commit is contained in:
parent
6c86c8dd0d
commit
4014e0fec8
|
@ -64,12 +64,12 @@ jobs:
|
|||
# Build and run test container
|
||||
- name: Run all tests
|
||||
run: |
|
||||
gcloud compute ssh "zebrad-tests-$BRANCH_NAME-$SHORT_SHA" --zone "$ZONE" --command \
|
||||
gcloud compute ssh "zebrad-tests-$BRANCH_NAME-$SHORT_SHA" --ssh-flag="-o ServerAliveInterval=5" --zone "$ZONE" --command \
|
||||
"git clone -b $BRANCH_NAME https://github.com/ZcashFoundation/zebra.git &&
|
||||
cd zebra/ &&
|
||||
docker build --build-arg SHORT_SHA=$SHORT_SHA -f docker/Dockerfile.test -t zebrad-test . &&
|
||||
docker run -i -e "ZEBRA_SKIP_IPV6_TESTS=1" zebrad-test:latest cargo test --workspace --no-fail-fast -- -Zunstable-options --include-ignored &&
|
||||
docker run -i -e "ZEBRA_SKIP_IPV6_TESTS=1" --mount type=bind,source=/mnt/disks/gce-containers-mounts/gce-persistent-disks/zebrad-cache-$SHORT_SHA-mainnet-canopy,target=/zebrad-cache zebrad-test:latest cargo test --verbose --features test_sync_past_mandatory_checkpoint_mainnet --manifest-path zebrad/Cargo.toml sync_past_mandatory_checkpoint_mainnet
|
||||
docker run -t -e ZEBRA_SKIP_IPV6_TESTS=1 zebrad-test:latest cargo test --workspace --no-fail-fast -- -Zunstable-options --include-ignored &&
|
||||
docker run -t -e ZEBRA_SKIP_IPV6_TESTS=1 --mount type=bind,source=/mnt/disks/gce-containers-mounts/gce-persistent-disks/zebrad-cache-$SHORT_SHA-mainnet-canopy,target=/zebrad-cache zebrad-test:latest cargo test --verbose --features test_sync_past_mandatory_checkpoint_mainnet --manifest-path zebrad/Cargo.toml sync_past_mandatory_checkpoint_mainnet
|
||||
"
|
||||
# Clean up
|
||||
- name: Delete test instance
|
||||
|
|
Loading…
Reference in New Issue