git.delta.rocks / unique-network / refs/commits / 117e5fa94e89

difftreelog

Test script has been updated.

Alexander Aksenov2022-08-14parent: #874e5a3.patch.diff
in: master

1 file changed

modified.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth
150150
151 - 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=160
155 function do_docker_logs {155 function do_docker_logs {
156 docker logs --details node-parachain 2>&1156 docker logs --details node-parachain 2>&1
157 }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 �"* ]];then
162 echo "Function is_started: Return 0"162 echo "🛸 PARACHAINS' RUNTIME UPGRADE TESTING COMPLETE �"
163 return 0163 return 0
164 fi164 exit 0
165 fi
165 echo "Function is_started: Return 1"166 echo "Function is_started: Return 1"
166 return 1167 return 1
167 }168 }
168 while ! is_started; do169 while ! is_started; do
169 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 30s
171 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" ]; then
174 continue175 continue
175 else176 else
176 break177 break
177 fi178 fi
178 done179 done
179 echo "Test completed."180 exit 1
180 exit 1
181 shell: bash181 shell: bash
182182
183 - name: Collect Docker Logs183 - name: Collect Docker Logs
198 name: forkless-parachain-update-nodata-logs.${{ matrix.features }}.tgz198 name: forkless-parachain-update-nodata-logs.${{ matrix.features }}.tgz
199 path: ./forkless-parachain-update-nodata-logs.${{ matrix.features }}.tgz199 path: ./forkless-parachain-update-nodata-logs.${{ matrix.features }}.tgz
200200
201 - name: Stop running containers201# - name: Stop running containers
202 if: always() # run this step always202# if: always() # run this step always
203 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" down
204204