difftreelog
test pattern change
in: master
1 file changed
.github/workflows/nodes-only-update.ymldiffbeforeafterboth1name: 1name: nodes-only update223# Controls when the action will run.3# Controls when the action will run.4on:4on:181 # 🌗 All parachain collators restarted with the new binaries.181 # 🌗 All parachain collators restarted with the new binaries.182 - name: Check if docker logs consist messages related to testing of Node Parachain Upgrade.182 - name: Check if docker logs consist messages related to testing of Node Parachain Upgrade.183 if: success()183 if: success()184 run: |184 run: |185 counter=160185 counter=160186 function check_container_status {186 function check_container_status {187 docker inspect -f {{.State.Running}} node-parachain187 docker inspect -f {{.State.Running}} node-parachain188 }188 }189 function do_docker_logs {189 function do_docker_logs {190 docker logs --details node-parachain 2>&1190 docker logs --details node-parachain 2>&1191 }191 }192 function is_started {192 function is_started {193 if [ "$(check_container_status)" == "true" ]; then193 if [ "$(check_container_status)" == "true" ]; then194 echo "Container: node-parachain RUNNING";194 echo "Container: node-parachain RUNNING";195 echo "Check Docker logs"195 echo "Check Docker logs"196 DOCKER_LOGS=$(do_docker_logs)196 DOCKER_LOGS=$(do_docker_logs)197 if [[ ${DOCKER_LOGS} = *"🌗 All parachain collators restarted with the new binaries."* ]];then197 if [[ ${DOCKER_LOGS} = *"All parachain collators restarted with the new binaries."* ]];then198 echo "🌗 All parachain collators restarted with the new binaries."198 echo "🌗 All parachain collators restarted with the new binaries."199 return 0199 return 0200 else200 else201 echo "Message not found in logs output, repeating..."201 echo "Message not found in logs output, repeating..."202 return 1202 return 1203 fi203 fi204 else204 else205 echo "Container node-parachain NOT RUNNING"205 echo "Container node-parachain NOT RUNNING"206 echo "Halting all future checks"206 echo "Halting all future checks"207 exit 1207 exit 1208 fi208 fi209 echo "something goes wrong"209 echo "something goes wrong"210 exit 1210 exit 1211 }211 }212 while ! is_started; do212 while ! is_started; do213 echo "Waiting for special message in log files "213 echo "Waiting for special message in log files "214 sleep 30s214 sleep 30s215 counter=$(( $counter - 1 ))215 counter=$(( $counter - 1 ))216 echo "Counter: $counter"216 echo "Counter: $counter"217 if [ "$counter" -gt "0" ]; then217 if [ "$counter" -gt "0" ]; then218 continue218 continue219 else219 else220 break220 break221 fi221 fi222 done222 done223 echo "Halting script"223 echo "Halting script"224 exit 0224 exit 0225 shell: bash225 shell: bash226226227 - name: Run tests after Node Parachain upgrade227 - name: Run tests after Node Parachain upgrade