git.delta.rocks / unique-network / refs/commits / 9ce5f25bdda0

difftreelog

Timings tunning.

Alexander Aksenov2022-08-11parent: #a85410a.patch.diff
in: master

1 file changed

modified.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth
117117
118 - name: Check if docker logs consist logs related to Runtime Upgrade testing.118 - name: Check if docker logs consist logs related to Runtime Upgrade testing.
119 if: success()119 if: success()
120 run: |120 run: |
121 counter=160121 counter=160
122 function do_docker_logs {122 function do_docker_logs {
123 docker logs --details node-parachain 2>&1123 docker logs --details node-parachain 2>&1
124 }124 }
125 function is_started {125 function is_started {
126 echo "Check Docker logs"126 echo "Check Docker logs"
127 DOCKER_LOGS=$(do_docker_logs)127 DOCKER_LOGS=$(do_docker_logs)
128 if [[ ${DOCKER_LOGS} = *"RUNTIME UPGRADE TESTING"* ]];then128 if [[ ${DOCKER_LOGS} = *"RUNTIME UPGRADE TESTING"* ]];then
129 echo "Function is_started: Return 0"129 echo "Function is_started: Return 0"
130 return 0130 return 0
131 fi131 fi
132 echo "Function is_started: Return 1"132 echo "Function is_started: Return 1"
133 return 1133 return 1
134 }134 }
135 while ! is_started; do135 while ! is_started; do
136 echo "Waiting for "RUNTIME UPGRADE TESTING" in container logs"136 echo "Waiting for "RUNTIME UPGRADE TESTING" in container logs"
137 sleep 15s137 sleep 30s
138 counter=$(( $counter - 1 ))138 counter=$(( $counter - 1 ))
139 echo "Counter: $counter"139 echo "Counter: $counter"
140 if [ "$counter" -gt "0" ]; then140 if [ "$counter" -gt "0" ]; then
141 continue141 continue
142 else142 else
143 break143 break
144 fi144 fi
145 done145 done
146 echo "Test completed."146 echo "Test completed."
147 exit 1147 exit 1
148 shell: bash148 shell: bash
149149
150 - name: Collect Docker Logs150 - name: Collect Docker Logs