Added saving of ganache logs into artifacts
This commit is contained in:
parent
8c2864bac3
commit
23ba4e86f6
|
@ -49,6 +49,12 @@ orbs:
|
||||||
docker cp "./workspace/ganache_side_data" "tmp:/ganache_side_data"
|
docker cp "./workspace/ganache_side_data" "tmp:/ganache_side_data"
|
||||||
docker cp "./workspace/ganache_home_data" "tmp:/ganache_home_data"
|
docker cp "./workspace/ganache_home_data" "tmp:/ganache_home_data"
|
||||||
docker kill tmp
|
docker kill tmp
|
||||||
|
restore_tss_image:
|
||||||
|
description: "Restores tss image from cache"
|
||||||
|
steps:
|
||||||
|
- restore_cache:
|
||||||
|
name: "Restore tss image from cache"
|
||||||
|
key: "tss-v1-{{ .Branch }}"
|
||||||
save_tss:
|
save_tss:
|
||||||
description: "Save tss image to workspace"
|
description: "Save tss image to workspace"
|
||||||
steps:
|
steps:
|
||||||
|
@ -58,9 +64,15 @@ orbs:
|
||||||
mkdir ./workspace
|
mkdir ./workspace
|
||||||
docker save tss | gzip > ./workspace/tss.tar.gz
|
docker save tss | gzip > ./workspace/tss.tar.gz
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
|
name: "Save tss image to workspace"
|
||||||
root: ./workspace
|
root: ./workspace
|
||||||
paths:
|
paths:
|
||||||
- tss.tar.gz
|
- tss.tar.gz
|
||||||
|
- save_cache:
|
||||||
|
name: "Save tss image to cache"
|
||||||
|
paths:
|
||||||
|
- ./workspace/tss.tar.gz
|
||||||
|
key: "tss-v1-{{ .Branch }}"
|
||||||
load_tss:
|
load_tss:
|
||||||
description: "Load tss image from workspace"
|
description: "Load tss image from workspace"
|
||||||
steps:
|
steps:
|
||||||
|
@ -104,6 +116,13 @@ orbs:
|
||||||
validator: 2
|
validator: 2
|
||||||
- save_docker_logs:
|
- save_docker_logs:
|
||||||
validator: 3
|
validator: 3
|
||||||
|
- run:
|
||||||
|
name: "Save ganache logs"
|
||||||
|
command: |
|
||||||
|
mkdir -p ./artifacts/logs/ganache
|
||||||
|
docker logs ganache_home > ./artifacts/logs/ganache/home.log
|
||||||
|
docker logs ganache_side > ./artifacts/logs/ganache/side.log
|
||||||
|
when: always
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: ./artifacts
|
path: ./artifacts
|
||||||
when: always
|
when: always
|
||||||
|
@ -113,9 +132,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- bridge/fetch_repo
|
- bridge/fetch_repo
|
||||||
- bridge/setup_docker
|
- bridge/setup_docker
|
||||||
|
- bridge/restore_tss_image
|
||||||
- run:
|
- run:
|
||||||
name: "Build tss image"
|
name: "Build tss image"
|
||||||
command: docker build -t tss ./src/tss
|
command: docker build --cache-from tss -t tss ./src/tss || docker build -t tss ./src/tss
|
||||||
- bridge/save_tss
|
- bridge/save_tss
|
||||||
init_blockchains:
|
init_blockchains:
|
||||||
executor: bridge/node-dev
|
executor: bridge/node-dev
|
||||||
|
@ -159,15 +179,10 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: "Wait until validator nodes are ready"
|
name: "Wait until validator nodes are ready"
|
||||||
command: |
|
command: |
|
||||||
mkdir ./clogs
|
docker run --network validator1_test_network --entrypoint ash appropriate/curl:latest -c "until curl -X GET http://proxy:8002/info > /dev/null 2>&1; do sleep 1; done"
|
||||||
docker run --network validator1_test_network --entrypoint ash appropriate/curl:latest -c "until curl -X GET http://proxy:8002/info > ./clogs/clog1 2>&1; do sleep 1; done"
|
docker run --network validator2_test_network --entrypoint ash appropriate/curl:latest -c "until curl -X GET http://proxy:8002/info > /dev/null 2>&1; do sleep 1; done"
|
||||||
docker run --network validator2_test_network --entrypoint ash appropriate/curl:latest -c "until curl -X GET http://proxy:8002/info > ./clogs/clog2 2>&1; do sleep 1; done"
|
docker run --network validator3_test_network --entrypoint ash appropriate/curl:latest -c "until curl -X GET http://proxy:8002/info > /dev/null 2>&1; do sleep 1; done"
|
||||||
docker run --network validator3_test_network --entrypoint ash appropriate/curl:latest -c "until curl -X GET http://proxy:8002/info > ./clogs/clog3 2>&1; do sleep 1; done"
|
|
||||||
no_output_timeout: 3m
|
no_output_timeout: 3m
|
||||||
- store_artifacts:
|
|
||||||
path: ./clogs
|
|
||||||
destination: curl-logs
|
|
||||||
when: always
|
|
||||||
- run:
|
- run:
|
||||||
name: "Build and prepare tests container"
|
name: "Build and prepare tests container"
|
||||||
command: |
|
command: |
|
||||||
|
|
Loading…
Reference in New Issue