difftreelog
Verification script has been modified.
in: master
1 file changed
.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth134 - name: Check if docker logs consist logs related to Runtime Upgrade testing.134 - name: Check if docker logs consist logs related to Runtime Upgrade testing.135 if: success()135 if: success()136 run: |136 run: |137 counter=180137 counter=160138 function check_container_status {138 function check_container_status {139 docker inspect -f {{.State.Running}} node-parachain139 docker inspect -f {{.State.Running}} node-parachain140 }140 }143 }143 }144 function is_started {144 function is_started {145 if [ "$(check_container_status)" == "true" ]; then145 if [ "$(check_container_status)" == "true" ]; then146 echo "Container: node-parachain RUNNING";146 echo "Container: node-parachain RUNNING";147 echo "Check Docker logs"147 echo "Check Docker logs"148 DOCKER_LOGS=$(do_docker_logs)148 DOCKER_LOGS=$(do_docker_logs)149 if [[ ${DOCKER_LOGS} = *"🛸 PARACHAINS' RUNTIME UPGRADE TESTING COMPLETE 🛸"* ]];then149 if [[ ${DOCKER_LOGS} = *"🛸 PARACHAINS' RUNTIME UPGRADE TESTING COMPLETE 🛸"* ]];then150 echo "🛸 PARACHAINS' RUNTIME UPGRADE TESTING COMPLETE 🛸"150 echo "🛸 PARACHAINS' RUNTIME UPGRADE TESTING COMPLETE 🛸"151 exit 0151 return 0152 exit 1152 fi153 fi153 else154 else154 echo "Container node-parachain not RUNNING";155 echo "Container node-parachain not RUNNING"155 exit 1156 echo "Halting all future checks"157 exit 1156 fi158 fi159 exit 0157 }160 }158159 while ! is_started; do161 while ! is_started; do160 echo "Waiting for special message in log files "162 echo "Waiting for special message in log files "161 sleep 30s163 sleep 30s162 counter=$(( $counter - 1 ))164 counter=$(( $counter - 1 ))163 echo "Counter: $counter"165 echo "Counter: $counter"164 if [ "$counter" -gt "0" ]; then166 if [ "$counter" -gt "0" ]; then165 continue167 continue166 else168 else167 break169 break168 fi170 fi169 done171 done170 exit 1172 echo "Halting script"173 exit 1171 shell: bash174 shell: bash172175173 - name: Collect Docker Logs176 - name: Collect Docker Logs188 name: forkless-parachain-update-nodata-logs.${{ matrix.features }}.tgz191 name: forkless-parachain-update-nodata-logs.${{ matrix.features }}.tgz189 path: ./forkless-parachain-update-nodata-logs.${{ matrix.features }}.tgz192 path: ./forkless-parachain-update-nodata-logs.${{ matrix.features }}.tgz190193191 - name: Stop running containers194# - name: Stop running containers192 if: always() # run this step always195# if: always() # run this step always193 run: docker-compose -f ".docker/docker-compose-forkless.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down196# run: docker-compose -f ".docker/docker-compose-forkless.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down194197