git.delta.rocks / unique-network / refs/commits / 1c95a0f36699

difftreelog

fix CI workflow (C) Alexander Aksenov

Daniel Shiposha2022-10-05parent: #d9f54e3.patch.diff
in: master

2 files changed

modified.github/workflows/market-test_v2.ymldiffbeforeafterboth
1010
11 market_test:11 market_test:
12 # The type of runner that the job will run on12 # The type of runner that the job will run on
13 runs-on: [self-hosted-ci,large]13 runs-on: [self-hosted-ci,medium]
14 timeout-minutes: 138014 timeout-minutes: 180
1515
16 name: ${{ matrix.network }} 16 name: ${{ matrix.network }}
1717
97 yarn install97 yarn install
98 node scripts/readyness.js98 node scripts/readyness.js
99 echo "Ready to start tests"99 echo "Ready to start tests"
100 env:
101 RPC_URL: http://127.0.0.1:9933/
100102
101 - name: Show content of .env file and Generate accounts103 - name: Show content of .env file and Generate accounts
102 working-directory: qa-tests104 working-directory: qa-tests
modified.github/workflows/node-only-update_v2.ymldiffbeforeafterboth
--- a/.github/workflows/node-only-update_v2.yml
+++ b/.github/workflows/node-only-update_v2.yml
@@ -156,8 +156,15 @@
           exit 0
         shell: bash
 
+      - name: Checkout at '${{ matrix.mainnet_branch }}' branch
+        uses: actions/checkout@master
+        with:
+          ref: ${{ matrix.mainnet_branch }}  #Checking out head commit
+          path: ${{ matrix.mainnet_branch }}
+
+
       - name: Run tests before Node Parachain upgrade
-        working-directory: tests
+        working-directory: ${{ matrix.mainnet_branch }}/tests
         run: |
           yarn install
           yarn add mochawesome
@@ -173,11 +180,11 @@
         if: success() || failure()    # run this step even if previous step failed
         with:
           name: Tests before node upgrade ${{ matrix.network }}            # Name of the check run which will be created
-          path: tests/mochawesome-report/test-before-*.json    # Path to test results
+          path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-before-*.json    # Path to test results
           reporter: mochawesome-json
           fail-on-error: 'false'
 
-      - name: Send SIGUSR1 to polkadotlaunch process
+      - name: Send SIGUSR1 to polkadot-launch process
         if: success() || failure()
         run: |
           #Get PID of polkadot-launch
@@ -185,6 +192,7 @@
           echo "Polkadot-launch PID: $PID"
           #Send SIGUSR1 signal to $PID
           docker exec node-parachain kill -SIGUSR1 ${PID}
+          echo "SIGUSR1 sent to Polkadot-launch PID: $PID"
 
       #  🌗 All parachain collators restarted with the new binaries.
       - name: Check if docker logs consist messages related to testing of Node Parachain Upgrade.
@@ -233,7 +241,8 @@
         shell: bash
 
       - name: Run tests after Node Parachain upgrade
-        working-directory: tests
+        if: success()
+        working-directory: ${{ matrix.mainnet_branch }}/tests
         run: |
           yarn install
           yarn add mochawesome
@@ -250,7 +259,7 @@
         if: success() || failure()    # run this step even if previous step failed
         with:
           name: Tests after node upgrade ${{ matrix.network }}            # Name of the check run which will be created
-          path: tests/mochawesome-report/test-after-*.json    # Path to test results
+          path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-after-*.json    # Path to test results
           reporter: mochawesome-json
           fail-on-error: 'false'