difftreelog
set timeout for logs and disable second logs report
in: master
(cherry picked from commit d5b272411f47a0075badb1b708909c3cd823bd98)
1 file changed
.github/workflows/node-only-update.ymldiffbeforeafterboth224224225 - name: Send SIGUSR1 to polkadot-launch process225 - name: Send SIGUSR1 to polkadot-launch process226 if: success() || failure()226 if: success() || failure()227 run: |227 run: |228 #Get PID of polkadot-launch228 #Get PID of polkadot-launch229 ContainerID=$(docker ps -aqf "name=node-parachain")229 ContainerID=$(docker ps -aqf "name=node-parachain")230 PID=$(docker exec node-parachain pidof 'polkadot-launch')230 PID=$(docker exec node-parachain pidof 'polkadot-launch')231 sleep 30s231 sleep 30s232 echo -e "Show logs of node-parachain container.\n"232 echo -e "\n"233 docker logs ${ContainerID}233 echo -e "Restart polkadot-launch process: $PID\n"234 echo -e "\n"235 echo -e "Restart polkadot-launch process: $PID\n"234 docker exec node-parachain kill -SIGUSR1 ${PID}236 docker exec node-parachain kill -SIGUSR1 ${PID}235 echo "SIGUSR1 sent to Polkadot-launch PID: $PID"236 sleep 60s237 echo "SIGUSR1 sent to Polkadot-launch PID: $PID"237 echo -e "Show logs of node-parachain container.\n" 238 docker logs ${ContainerID}238 docker logs ${ContainerID}239239240 - name: Get chain logs in case of docker image crashed after Polkadot Launch restart240 - name: Get chain logs in case of docker image crashed after Polkadot Launch restart241 if: failure() # run this step only at failure241 if: failure() # run this step only at failure306 shell: bash306 shell: bash307307308 ## TODO: Remove next two blocks before switch to Parrallel & Sequental tests. Uncoment commented blocks.308 ## TODO: Remove next two blocks before switch to Parrallel & Sequental tests. Uncoment commented blocks.309 - name: Run tests after Node Parachain upgrade310 if: success() || failure() # run this step even if previous step failed311 working-directory: ${{ matrix.mainnet_branch }}/tests312 run: |313 yarn install314 yarn add mochawesome315 node scripts/readyness.js316 echo "Ready to start tests"317 yarn polkadot-types318 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-after-${NOW}319 env:320 RPC_URL: http://127.0.0.1:9933/321322 - name: Test Report After Node upgrade309 - name: Run tests after Node Parachain upgrade323 uses: phoenix-actions/test-reporting@v8324 id: test-report-after325 if: success() || failure() # run this step even if previous step failed310 if: success() || failure() # run this step even if previous step failed326 with:327 name: Tests after node upgrade ${{ matrix.network }} # Name of the check run which will be created328 path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-after-*.json # Path to test results311 working-directory: ${{ matrix.mainnet_branch }}/tests329 reporter: mochawesome-json312 run: |313 yarn install314 yarn add mochawesome315 node scripts/readyness.js316 echo "Ready to start tests"317 yarn polkadot-types318 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-after-${NOW}330 fail-on-error: 'false'319 env:331 token: ${{ secrets.GITHUB_TOKEN }}320 RPC_URL: http://127.0.0.1:9933/321322 # - name: Test Report After Node upgrade323 # uses: phoenix-actions/test-reporting@v8324 # id: test-report-after325 # if: success() || failure() # run this step even if previous step failed326 # with:327 # name: Tests after node upgrade ${{ matrix.network }} # Name of the check run which will be created328 # path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-after-*.json # Path to test results329 # reporter: mochawesome-json330 # fail-on-error: 'false'331 # token: ${{ secrets.GITHUB_TOKEN }}332332333 # TODO uncomment thease steps after the merge333 # TODO uncomment thease steps after the merge334 #- name: Run Parallel tests after Node Parachain upgrade334 #- name: Run Parallel tests after Node Parachain upgrade