git.delta.rocks / unique-network / refs/commits / dec8a6d1cc22

difftreelog

set timeout for logs and disable second logs report

Konstantin Astakhov2022-11-10parent: #7548f2c.patch.diff
in: master
(cherry picked from commit d5b272411f47a0075badb1b708909c3cd823bd98)

1 file changed

modified.github/workflows/node-only-update.ymldiffbeforeafterboth
224224
225 - name: Send SIGUSR1 to polkadot-launch process225 - name: Send SIGUSR1 to polkadot-launch process
226 if: success() || failure()226 if: success() || failure()
227 run: |227 run: |
228 #Get PID of polkadot-launch228 #Get PID of polkadot-launch
229 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 30s
232 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 60s
237 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}
239239
240 - 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 restart
241 if: failure() # run this step only at failure241 if: failure() # run this step only at failure
306 shell: bash306 shell: bash
307307
308 ## 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 upgrade
310 if: success() || failure() # run this step even if previous step failed
311 working-directory: ${{ matrix.mainnet_branch }}/tests
312 run: |
313 yarn install
314 yarn add mochawesome
315 node scripts/readyness.js
316 echo "Ready to start tests"
317 yarn polkadot-types
318 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-after-${NOW}
319 env:
320 RPC_URL: http://127.0.0.1:9933/
321
322 - name: Test Report After Node upgrade309 - name: Run tests after Node Parachain upgrade
323 uses: phoenix-actions/test-reporting@v8
324 id: test-report-after
325 if: success() || failure() # run this step even if previous step failed310 if: success() || failure() # run this step even if previous step failed
326 with:
327 name: Tests after node upgrade ${{ matrix.network }} # Name of the check run which will be created
328 path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-after-*.json # Path to test results311 working-directory: ${{ matrix.mainnet_branch }}/tests
329 reporter: mochawesome-json312 run: |
313 yarn install
314 yarn add mochawesome
315 node scripts/readyness.js
316 echo "Ready to start tests"
317 yarn polkadot-types
318 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/
321
322 # - name: Test Report After Node upgrade
323 # uses: phoenix-actions/test-reporting@v8
324 # id: test-report-after
325 # if: success() || failure() # run this step even if previous step failed
326 # with:
327 # name: Tests after node upgrade ${{ matrix.network }} # Name of the check run which will be created
328 # path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-after-*.json # Path to test results
329 # reporter: mochawesome-json
330 # fail-on-error: 'false'
331 # token: ${{ secrets.GITHUB_TOKEN }}
332332
333 # TODO uncomment thease steps after the merge333 # TODO uncomment thease steps after the merge
334 #- name: Run Parallel tests after Node Parachain upgrade334 #- name: Run Parallel tests after Node Parachain upgrade