difftreelog
Bash script has been updated.
in: master
1 file changed
.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth202021# A workflow run is made up of one or more jobs that can run sequentially or in parallel21# A workflow run is made up of one or more jobs that can run sequentially or in parallel22jobs:22jobs:23 forkless-upgrade-nodata:23 forkless-update-nodata:24 # The type of runner that the job will run on24 # The type of runner that the job will run on25 runs-on: self-hosted-ci25 runs-on: self-hosted-ci262631 strategy:31 strategy:32 matrix:32 matrix:33 include:33 include:34# - network: "Opal"34 - network: "Opal"35# features: " "35 features: "opal-runtime"36# binary_version:36 runtime: "opal"37 mainnet_branch: v92401038 mainnet_tag: v92401037 - network: "Quartz" # KUSAMA_MAINNET_BRANCH для quartz-runtime39 - network: "Quartz" # KUSAMA_MAINNET_BRANCH для quartz-runtime38 features: "quartz-runtime"40 features: "quartz-runtime"39 runtime: "quartz"41 runtime: "quartz"112 - name: Build the stack114 - name: Build the stack113 run: docker-compose -f ".docker/docker-compose-forkless.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build --force-recreate --timeout 300115 run: docker-compose -f ".docker/docker-compose-forkless.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build --force-recreate --timeout 300114116115# - name: Wait for 5m before starting tests docker logs for " RUNTIME UPGRADE TESTING " criteria116# if: success()117# run: sleep 300s118117119 - 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.120 if: success()119 if: success()121 run: |120 run: |122 function do_docker_logs {121 counter=160123 DOCKER_LOGS=$(docker logs --details node-parachain 2>&1)122 function do_docker_logs {124 }123 docker logs --details node-parachain 2>&1125 function is_started {124 }126 if [[ ${DOCKER_LOGS} = *"RUNTIME UPGRADE TESTING"* ]];then125 function is_started {127 echo "Function is_started: Return 0"126 echo "Check Docker logs"128 return 0127 DOCKER_LOGS=$(do_docker_logs)129 fi128 if [[ ${DOCKER_LOGS} = *"RUNTIME UPGRADE TESTING"* ]];then130 echo "Function is_started: Return 1"129 echo "Function is_started: Return 0"131 return 1130 return 0132 }131 fi133 while ! is_started; do132 echo "Function is_started: Return 1"134 echo "Waiting for "RUNTIME UPGRADE TESTING" in container logs"133 return 1135 sleep 15s134 }136 done135 while ! is_started; do137 echo "Test completed."136 echo "Waiting for "RUNTIME UPGRADE TESTING" in container logs"138 exit 0 137 sleep 15s138 counter=$(( $counter - 1 ))139 echo "Counter: $counter"140 if [ "$counter" -gt "0" ]; then141 continue142 else143 break144 fi145 done146 echo "Test completed."147 exit 1139 shell: bash148 shell: bash140149141 - name: Collect Docker Logs150 - name: Collect Docker Logs142 if: success() || failure()151 if: success() || failure()143 uses: jwalton/gh-docker-logs@v2.2.0152 uses: jwalton/gh-docker-logs@v2.2.0144 with:153 with:145 dest: './forkless-parachain-upgrade-nodata-logs.${{ matrix.features }}'154 dest: './forkless-parachain-update-nodata-logs.${{ matrix.features }}'146 images: 'node-parachain' 155 images: 'node-parachain' 147156148 - name: Tar logs157 - name: Tar logs149 if: success() || failure()158 if: success() || failure()150 run: tar cvzf ./forkless-parachain-upgrade-nodata-logs.${{ matrix.features }}.tgz ./forkless-parachain-upgrade-nodata-logs.${{ matrix.features }}159 run: tar cvzf ./forkless-parachain-update-nodata-logs.${{ matrix.features }}.tgz ./forkless-parachain-update-nodata-logs.${{ matrix.features }}151160152 - name: Upload logs to GitHub161 - name: Upload logs to GitHub153 if: success() || failure()162 if: success() || failure()154 uses: actions/upload-artifact@master163 uses: actions/upload-artifact@master155 with:164 with:156 name: forkless-parachain-upgrade-nodata-logs.${{ matrix.features }}.tgz165 name: forkless-parachain-update-nodata-logs.${{ matrix.features }}.tgz157 path: ./forkless-parachain-upgrade-nodata-logs.${{ matrix.features }}.tgz166 path: ./forkless-parachain-update-nodata-logs.${{ matrix.features }}.tgz158167159 - name: Stop running containers168 - name: Stop running containers160 if: always() # run this step always169 if: always() # run this step always