git.delta.rocks / unique-network / refs/commits / 72d7128c59f7

difftreelog

Verification script has been modified.

Alexander Aksenov2022-08-14parent: #267f556.patch.diff
in: master

1 file changed

modified.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth
134 - 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=160
138 function check_container_status {138 function check_container_status {
139 docker inspect -f {{.State.Running}} node-parachain139 docker inspect -f {{.State.Running}} node-parachain
140 }140 }
143 }143 }
144 function is_started {144 function is_started {
145 if [ "$(check_container_status)" == "true" ]; then145 if [ "$(check_container_status)" == "true" ]; then
146 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 🛸"* ]];then
150 echo "🛸 PARACHAINS' RUNTIME UPGRADE TESTING COMPLETE 🛸"150 echo "🛸 PARACHAINS' RUNTIME UPGRADE TESTING COMPLETE 🛸"
151 exit 0151 return 0
152 exit 1
152 fi153 fi
153 else154 else
154 echo "Container node-parachain not RUNNING";155 echo "Container node-parachain not RUNNING"
155 exit 1156 echo "Halting all future checks"
157 exit 1
156 fi158 fi
159 exit 0
157 }160 }
158
159 while ! is_started; do161 while ! is_started; do
160 echo "Waiting for special message in log files "162 echo "Waiting for special message in log files "
161 sleep 30s163 sleep 30s
162 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" ]; then
165 continue167 continue
166 else168 else
167 break169 break
168 fi170 fi
169 done171 done
170 exit 1172 echo "Halting script"
173 exit 1
171 shell: bash174 shell: bash
172175
173 - name: Collect Docker Logs176 - name: Collect Docker Logs
188 name: forkless-parachain-update-nodata-logs.${{ matrix.features }}.tgz191 name: forkless-parachain-update-nodata-logs.${{ matrix.features }}.tgz
189 path: ./forkless-parachain-update-nodata-logs.${{ matrix.features }}.tgz192 path: ./forkless-parachain-update-nodata-logs.${{ matrix.features }}.tgz
190193
191 - name: Stop running containers194# - name: Stop running containers
192 if: always() # run this step always195# if: always() # run this step always
193 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" down
194197