git.delta.rocks / unique-network / refs/commits / 8fce67681f3f

difftreelog

Test node update only fix.

Alexander Aksenov2022-10-06parent: #5f8c947.patch.diff
in: master

1 file changed

modified.github/workflows/node-only-update_v2.ymldiffbeforeafterboth
165165
166 - name: Run tests before Node Parachain upgrade166 - name: Run tests before Node Parachain upgrade
167 working-directory: ${{ matrix.mainnet_branch }}/tests167 working-directory: ${{ matrix.mainnet_branch }}/tests
168 run: |168 run: |
169 yarn install169 yarn install
170 yarn add mochawesome170 yarn add mochawesome
171 echo "Ready to start tests"171 echo "Ready to start tests"
172 yarn polkadot-types172 yarn polkadot-types
173 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-before-${NOW}173 NOW=$(date +%s) && yarn testConnection --reporter mochawesome --reporter-options reportFilename=test-${NOW}
174 env:174 env:
175 RPC_URL: http://127.0.0.1:9933/175 RPC_URL: http://127.0.0.1:9933/
176176
180 if: success() || failure() # run this step even if previous step failed180 if: success() || failure() # run this step even if previous step failed
181 with:181 with:
182 name: Tests before node upgrade ${{ matrix.network }} # Name of the check run which will be created182 name: Tests before node upgrade ${{ matrix.network }} # Name of the check run which will be created
183 path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-before-*.json # Path to test results183 path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-*.json # Path to test results
184 reporter: mochawesome-json184 reporter: mochawesome-json
185 fail-on-error: 'false'185 fail-on-error: 'false'
186186
187 - name: Send SIGUSR1 to polkadot-launch process187 - name: Send SIGUSR1 to polkadotlaunch process
188 if: success() || failure()188 if: success() || failure()
189 run: |189 run: |
190 #Get PID of polkadot-launch190 ContainerID=$(docker ps -aqf "name=node-parachain")
191 PID=$(docker exec node-parachain pidof 'polkadot-launch')191 PID=$(docker exec node-parachain pidof 'polkadot-launch')
192 echo "Polkadot-launch PID: $PID"192 echo "Polkadot-launch PID: $PID"
193 #Send SIGUSR1 signal to $PID193 docker exec node-parachain kill -SIGUSR1 ${PID}
194 docker exec node-parachain kill -SIGUSR1 ${PID}194 echo "SIGUSR1 sent to Polkadot-launch PID: $PID"
195 echo "SIGUSR1 sent to Polkadot-launch PID: $PID"195 docker logs ${ContainerID}
196196
197 # 🌗 All parachain collators restarted with the new binaries.197 - name: Get chain logs
198 if: always() # run this step always
199 run: |
200 docker exec node-parachain cat /polkadot-launch/9944.log
201 docker exec node-parachain cat /polkadot-launch/9945.log
202 docker exec node-parachain cat /polkadot-launch/alice.log
203 docker exec node-parachain cat /polkadot-launch/eve.log
204 docker exec node-parachain cat /polkadot-launch/dave.log
205 docker exec node-parachain cat /polkadot-launch/charlie.log
206
198 - name: Check if docker logs consist messages related to testing of Node Parachain Upgrade.207 - name: Check if docker logs consist messages related to testing of Node Parachain Upgrade.
199 if: success()208 if: success()
241 shell: bash250 shell: bash
242251
243 - name: Run tests after Node Parachain upgrade252 - name: Run tests after Node Parachain upgrade
244 if: success()
245 working-directory: ${{ matrix.mainnet_branch }}/tests253 working-directory: tests
246 run: |254 run: |
247 yarn install255 yarn install
248 yarn add mochawesome256 yarn add mochawesome
249 node scripts/readyness.js257 node scripts/readyness.js
250 echo "Ready to start tests"258 echo "Ready to start tests"
251 yarn polkadot-types259 yarn polkadot-types
252 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-after-${NOW}260 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}
253 env:261 env:
254 RPC_URL: http://127.0.0.1:9933/262 RPC_URL: http://127.0.0.1:9933/
255263
259 if: success() || failure() # run this step even if previous step failed267 if: success() || failure() # run this step even if previous step failed
260 with:268 with:
261 name: Tests after node upgrade ${{ matrix.network }} # Name of the check run which will be created269 name: Tests after node upgrade ${{ matrix.network }} # Name of the check run which will be created
262 path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-after-*.json # Path to test results270 path: tests/mochawesome-report/test-*.json # Path to test results
263 reporter: mochawesome-json271 reporter: mochawesome-json
264 fail-on-error: 'false'272 fail-on-error: 'false'
265273