difftreelog
Test script has been updated.
in: master
1 file changed
.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth150150151 - name: Check if docker logs consist logs related to Runtime Upgrade testing.151 - name: Check if docker logs consist logs related to Runtime Upgrade testing.152 if: success()152 if: success()153 run: |153 run: |154 counter=160154 counter=160155 function do_docker_logs {155 function do_docker_logs {156 docker logs --details node-parachain 2>&1156 docker logs --details node-parachain 2>&1157 }157 }158 function is_started {158 function is_started {159 echo "Check Docker logs"159 echo "Check Docker logs"160 DOCKER_LOGS=$(do_docker_logs)160 DOCKER_LOGS=$(do_docker_logs)161 if [[ ${DOCKER_LOGS} = *"RUNTIME UPGRADE TESTING COMPLETE"* ]];then161 if [[ ${DOCKER_LOGS} = *"🛸 PARACHAINS' RUNTIME UPGRADE TESTING COMPLETE ��"* ]];then162 echo "Function is_started: Return 0"162 echo "🛸 PARACHAINS' RUNTIME UPGRADE TESTING COMPLETE ��"163 return 0163 return 0164 fi164 exit 0165 fi165 echo "Function is_started: Return 1"166 echo "Function is_started: Return 1"166 return 1167 return 1167 }168 }168 while ! is_started; do169 while ! is_started; do169 echo "Waiting for "RUNTIME UPGRADE TESTING" in container logs"170 echo "Waiting for message "🛸 PARACHAINS' RUNTIME UPGRADE TESTING COMPLETE ��" in container logs"170 sleep 30s171 sleep 30s171 counter=$(( $counter - 1 ))172 counter=$(( $counter - 1 ))172 echo "Counter: $counter"173 echo "Counter: $counter"173 if [ "$counter" -gt "0" ]; then174 if [ "$counter" -gt "0" ]; then174 continue175 continue175 else176 else176 break177 break177 fi178 fi178 done179 done179 echo "Test completed."180 exit 1180 exit 1181 shell: bash181 shell: bash182182183 - name: Collect Docker Logs183 - name: Collect Docker Logs198 name: forkless-parachain-update-nodata-logs.${{ matrix.features }}.tgz198 name: forkless-parachain-update-nodata-logs.${{ matrix.features }}.tgz199 path: ./forkless-parachain-update-nodata-logs.${{ matrix.features }}.tgz199 path: ./forkless-parachain-update-nodata-logs.${{ matrix.features }}.tgz200200201 - name: Stop running containers201# - name: Stop running containers202 if: always() # run this step always202# if: always() # run this step always203 run: docker-compose -f ".docker/docker-compose-forkless.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down203# run: docker-compose -f ".docker/docker-compose-forkless.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down204204