git.delta.rocks / unique-network / refs/commits / 724fceb01bc3

difftreelog

ref v2

Konstantin Astakhov2023-01-20parent: #ba41614.patch.diff
in: master

18 files changed

added.docker/Dockerfile-try-runtime.j2diffbeforeafterboth

no changes

modified.docker/docker-compose.tmp-try-runtime.j2diffbeforeafterboth
22
3services:3services:
4 try-runtime:4 try-runtime:
5 build:5 image: uniquenetwork/tryruntime-{{ NETWORK }}-testnet-local:latest
6 context: ../
7 dockerfile: .docker/Dockerfile-try-runtime
8 args:
9 - "RUST_TOOLCHAIN={{ RUST_TOOLCHAIN }}"
10 - "NETWORK={{ NETWORK }}"
11 - "REPLICA_FROM={{ REPLICA_FROM }}"
12 - "WASM_NAME={{ WASM_NAME }}" 6 container_name: tryruntime-{{ NETWORK }}-testnet-local
13 image: try-runtime
14 container_name: try-runtime
15 expose:7 expose:
16 - 99448 - 9944
17 - 99339 - 9933
modified.docker/docker-compose.tmp-xcm-tests.j2diffbeforeafterboth
22
3services:3services:
4 xcm_nodes:4 xcm_nodes:
5 image: uniquenetwork/xcm-{{ NETWORK }}-testnet-local:latest5 image: uniquenetwork/ci-xcm-local:{{ NETWORK }}-{{ BUILD_TAG }}
6 container_name: xcm-{{ NETWORK }}-testnet-local6 container_name: xcm-{{ NETWORK }}-local
7 expose:7 expose:
8 - 98448 - 9844
9 - 99339 - 9933
added.github/actions/prepare/action.ymldiffbeforeafterboth

no changes

modified.github/workflows/ci-develop.ymldiffbeforeafterboth
25 uses: ./.github/workflows/unit-test.yml25 uses: ./.github/workflows/unit-test.yml
2626
27 canary:27 canary:
28 if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'canary')) }} # Conditional check for draft & labels per job.28 if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-canary')) }} # Conditional check for draft & labels per job.
29 uses: ./.github/workflows/canary.yml29 uses: ./.github/workflows/canary.yml
30 secrets: inherit # pass all secrets from initial workflow to nested30 secrets: inherit # pass all secrets from initial workflow to nested
3131
32 xcm:32 xcm:
33 if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'xcm')) }} # Conditional check for draft & labels per job.33 if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-xcm')) }} # Conditional check for draft & labels per job.
34 uses: ./.github/workflows/xcm.yml34 uses: ./.github/workflows/xcm.yml
35 secrets: inherit # pass all secrets from initial workflow to nested35 secrets: inherit # pass all secrets from initial workflow to nested
36 36
39 uses: ./.github/workflows/collator-selection.yml39 uses: ./.github/workflows/collator-selection.yml
40 40
41 forkless:41 forkless:
42 if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'forkless')) }} # Conditional check for draft & labels per job.42 if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-forkless')) }} # Conditional check for draft & labels per job.
43 uses: ./.github/workflows/forkless.yml43 uses: ./.github/workflows/forkless.yml
44 44
45 node-only-update:45 node-only-update:
46 if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'node-only-update')) }} # Conditional check for draft & labels per job.46 if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'CI-node-only-update')) }} # Conditional check for draft & labels per job.
47 uses: ./.github/workflows/node-only-update.yml47 uses: ./.github/workflows/node-only-update.yml
48 48
49 # integration:49 # integration:
modified.github/workflows/codestyle.ymldiffbeforeafterboth
13 steps:13 steps:
14 - name: Clean Workspace14 - name: Clean Workspace
15 uses: AutoModality/action-clean@v1.1.015 uses: AutoModality/action-clean@v1.1.0
16 - uses: actions/checkout@v316 - uses: actions/checkout@v3.1.0
17 with:17 with:
18 ref: ${{ github.head_ref }} 18 ref: ${{ github.head_ref }}
19 - name: Install latest nightly19 - name: Install latest nightly
20 uses: actions-rs/toolchain@v120 uses: dtolnay/rust-toolchain@nightly
21 with:21 with:
22 toolchain: nightly
23 default: true
24 target: wasm32-unknown-unknown22 targets: wasm32-unknown-unknown
25 components: rustfmt, clippy23 components: rustfmt, clippy
26 - name: Run cargo fmt24 - name: Run cargo fmt
27 run: cargo fmt -- --check # In that mode it returns only exit code.25 run: cargo fmt -- --check # In that mode it returns only exit code.
34 steps:32 steps:
35 - name: Clean Workspace33 - name: Clean Workspace
36 uses: AutoModality/action-clean@v1.1.034 uses: AutoModality/action-clean@v1.1.0
37 - uses: actions/checkout@v335 - uses: actions/checkout@v3.1.0
38 with:36 with:
39 ref: ${{ github.head_ref }} 37 ref: ${{ github.head_ref }}
40 - uses: actions/setup-node@v338 - uses: actions/setup-node@v3.5.1
41 with:39 with:
42 node-version: 1640 node-version: 16
43 - name: Install modules41 - name: Install modules
49 if: ${{ false }}47 if: ${{ false }}
50 runs-on: [ self-hosted-ci ]48 runs-on: [ self-hosted-ci ]
51 steps:49 steps:
52 - uses: actions/checkout@v350 - uses: actions/checkout@v3.1.0
53 - name: Install substrate dependencies51 - name: Install substrate dependencies
54 run: sudo apt install -y libssl-dev pkg-config libclang-dev clang protobuf-compiler52 run: sudo apt install -y libssl-dev pkg-config libclang-dev clang protobuf-compiler
55 - name: Install latest nightly53 - name: Install latest nightly
56 uses: actions-rs/toolchain@v154 uses: dtolnay/rust-toolchain@nightly
57 with:55 with:
58 toolchain: nightly
59 default: true
60 target: wasm32-unknown-unknown56 targets: wasm32-unknown-unknown
61 components: rustfmt, clippy57 components: rustfmt, clippy
62 - name: Run cargo check58 - name: Run cargo check
63 run: cargo clippy -- -Dwarnings59 run: cargo clippy -- -Dwarnings
modified.github/workflows/execution-matrix.ymldiffbeforeafterboth
24 uses: AutoModality/action-clean@v1.1.024 uses: AutoModality/action-clean@v1.1.0
2525
26 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it26 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
27 - uses: actions/checkout@v327 - uses: actions/checkout@v3.1.0
28 with:28 with:
29 ref: ${{ github.head_ref }} #Checking out head commit29 ref: ${{ github.head_ref }} #Checking out head commit
3030
31 - name: Read .env file31 - name: Read .env file
32 uses: xom9ikk/dotenv@v232 uses: xom9ikk/dotenv@v2
3333
34 - name: Create Execution matrix34 - name: Create Execution matrix
35 uses: CertainLach/create-matrix-action@v335 uses: CertainLach/create-matrix-action@v4
36 id: create_matrix36 id: create_matrix
37 with:37 with:
38 matrix: |38 matrix: |
modified.github/workflows/forkless-update-data.ymldiffbeforeafterboth
23 uses: AutoModality/action-clean@v1.1.023 uses: AutoModality/action-clean@v1.1.0
2424
25 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it25 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26 - uses: actions/checkout@v326 - uses: actions/checkout@v3.1.0
27 with:27 with:
28 ref: ${{ github.head_ref }} #Checking out head commit28 ref: ${{ github.head_ref }} #Checking out head commit
2929
30 - name: Read .env file30 - name: Read .env file
31 uses: xom9ikk/dotenv@v231 uses: xom9ikk/dotenv@v2
3232
33 - name: Create Execution matrix33 - name: Create Execution matrix
34 uses: CertainLach/create-matrix-action@v334 uses: CertainLach/create-matrix-action@v4
35 id: create_matrix35 id: create_matrix
36 with:36 with:
37 matrix: |37 matrix: |
51 matrix:51 matrix:
52 include: ${{fromJson(needs.execution-marix.outputs.matrix)}}52 include: ${{fromJson(needs.execution-marix.outputs.matrix)}}
5353
54 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.54 continue-on-error: false #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.
5555
56 steps:56 steps:
57 - name: Clean Workspace57 - name: Clean Workspace
58 uses: AutoModality/action-clean@v1.1.058 uses: AutoModality/action-clean@v1.1.0
5959
60 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it60 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
61 - uses: actions/checkout@v361 - uses: actions/checkout@v3.1.0
62 with:62 with:
63 ref: ${{ github.head_ref }} #Checking out head commit63 ref: ${{ github.head_ref }} #Checking out head commit
6464
152152
153 - name: Collect Docker Logs153 - name: Collect Docker Logs
154 if: success() || failure()154 if: success() || failure()
155 uses: jwalton/gh-docker-logs@v2.2.0155 uses: jwalton/gh-docker-logs@v2.2.1
156 with:156 with:
157 dest: './forkless-parachain-upgrade-data-logs.${{ matrix.features }}'157 dest: './forkless-parachain-upgrade-data-logs.${{ matrix.features }}'
158 images: 'node-parachain'158 images: 'node-parachain'
modified.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth
22 uses: AutoModality/action-clean@v1.1.022 uses: AutoModality/action-clean@v1.1.0
2323
24 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it24 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
25 - uses: actions/checkout@v325 - uses: actions/checkout@v3.1.0
26 with:26 with:
27 ref: ${{ github.head_ref }} #Checking out head commit27 ref: ${{ github.head_ref }} #Checking out head commit
2828
29 - name: Read .env file29 - name: Read .env file
30 uses: xom9ikk/dotenv@v230 uses: xom9ikk/dotenv@v2
3131
32 - name: Create Execution matrix32 - name: Create Execution matrix
33 uses: CertainLach/create-matrix-action@v333 uses: CertainLach/create-matrix-action@v4
34 id: create_matrix34 id: create_matrix
35 with:35 with:
36 matrix: |36 matrix: |
4949
50 name: ${{ matrix.network }}-nodata50 name: ${{ matrix.network }}-nodata
5151
52 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.52 continue-on-error: false #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.
5353
54 strategy:54 strategy:
55 matrix:55 matrix:
60 uses: AutoModality/action-clean@v1.1.060 uses: AutoModality/action-clean@v1.1.0
6161
62 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it62 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
63 - uses: actions/checkout@v363 - uses: actions/checkout@v3.1.0
64 with:64 with:
65 ref: ${{ github.head_ref }} #Checking out head commit65 ref: ${{ github.head_ref }} #Checking out head commit
6666
100 - name: Show launch-config-forkless configuration100 - name: Show launch-config-forkless configuration
101 run: cat .docker/launch-config-forkless-nodata.json101 run: cat .docker/launch-config-forkless-nodata.json
102102
103 - uses: actions/setup-node@v3103 - uses: actions/setup-node@v3.5.1
104 with:104 with:
105 node-version: 16105 node-version: 16
106106
156156
157 - name: Collect Docker Logs157 - name: Collect Docker Logs
158 if: success() || failure()158 if: success() || failure()
159 uses: jwalton/gh-docker-logs@v2.2.0159 uses: jwalton/gh-docker-logs@v2.2.1
160 with:160 with:
161 dest: './forkless-parachain-upgrade-nodata-logs.${{ matrix.features }}'161 dest: './forkless-parachain-upgrade-nodata-logs.${{ matrix.features }}'
162 images: 'node-parachain'162 images: 'node-parachain'
167167
168 - name: Run Parallel tests168 - name: Run Parallel tests
169 working-directory: tests169 working-directory: tests
170 run: |170 run: |
171 yarn install171 yarn install
172 yarn add mochawesome172 yarn add mochawesome
173 node scripts/readyness.js173 ./scripts/wait_for_first_block.sh
174 echo "Ready to start tests"174 echo "Ready to start tests"
175 yarn polkadot-types175 yarn polkadot-types
176 NOW=$(date +%s) && yarn testParallel --reporter mochawesome --reporter-options reportFilename=test-parallel-${NOW}176 NOW=$(date +%s) && yarn testParallel --reporter mochawesome --reporter-options reportFilename=test-parallel-${NOW}
177 env:177 env:
178 RPC_URL: http://127.0.0.1:9933/178 RPC_URL: http://127.0.0.1:9933/
179179
180 - name: Test Report Parallel180 - name: Test Report Parallel
181 uses: phoenix-actions/test-reporting@v8181 uses: phoenix-actions/test-reporting@v10
182 id: test-report-parallel182 id: test-report-parallel
183 if: success() || failure() # run this step even if previous step failed183 if: success() || failure() # run this step even if previous step failed
184 with:184 with:
190 - name: Run Sequential tests190 - name: Run Sequential tests
191 working-directory: tests191 working-directory: tests
192 if: success() || failure()192 if: success() || failure()
193 run: |193 run: |
194 yarn install194 yarn install
195 yarn add mochawesome195 yarn add mochawesome
196 node scripts/readyness.js196 ./scripts/wait_for_first_block.sh
197 echo "Ready to start tests"197 echo "Ready to start tests"
198 yarn polkadot-types198 yarn polkadot-types
199 NOW=$(date +%s) && yarn testSequential --reporter mochawesome --reporter-options reportFilename=test-sequential-${NOW}199 NOW=$(date +%s) && yarn testSequential --reporter mochawesome --reporter-options reportFilename=test-sequential-${NOW}
200 env:200 env:
201 RPC_URL: http://127.0.0.1:9933/201 RPC_URL: http://127.0.0.1:9933/
202202
203 - name: Test Report Sequential203 - name: Test Report Sequential
204 uses: phoenix-actions/test-reporting@v8204 uses: phoenix-actions/test-reporting@v10
205 id: test-report-sequential205 id: test-report-sequential
206 if: success() || failure() # run this step even if previous step failed206 if: success() || failure() # run this step even if previous step failed
207 with:207 with:
modified.github/workflows/generate-execution-matrix.ymldiffbeforeafterboth
28 uses: AutoModality/action-clean@v1.1.028 uses: AutoModality/action-clean@v1.1.0
2929
30 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it30 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
31 - uses: actions/checkout@v331 - uses: actions/checkout@v3.1.0
32 with:32 with:
33 ref: ${{ github.head_ref }} #Checking out head commit33 ref: ${{ github.head_ref }} #Checking out head commit
3434
35 - name: Read .env file35 - name: Read .env file
36 uses: xom9ikk/dotenv@v236 uses: xom9ikk/dotenv@v2
3737
38 - name: Create Execution matrix38 - name: Create Execution matrix
39 uses: CertainLach/create-matrix-action@v339 uses: CertainLach/create-matrix-action@v4
40 id: create_matrix40 id: create_matrix
41 with:41 with:
42 matrix: |42 matrix: |
modified.github/workflows/market-test.ymldiffbeforeafterboth
1818
19 name: ${{ matrix.network }} 19 name: ${{ matrix.network }}
2020
21 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.21 continue-on-error: false #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.
22 22
23 strategy:23 strategy:
24 matrix:24 matrix:
36 ref: ${{ github.head_ref }} #Checking out head commit36 ref: ${{ github.head_ref }} #Checking out head commit
3737
38 - name: Checkout Market e2e tests38 - name: Checkout Market e2e tests
39 uses: actions/checkout@v339 uses: actions/checkout@v3.1.0
40 with:40 with:
41 repository: 'UniqueNetwork/market-e2e-tests'41 repository: 'UniqueNetwork/market-e2e-tests'
42 ssh-key: ${{ secrets.GH_PAT }}42 ssh-key: ${{ secrets.GH_PAT }}
72 working-directory: qa-tests72 working-directory: qa-tests
73 run: docker-compose -f ".docker/docker-compose.market.yml" -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build --remove-orphans --force-recreate node-parachain 73 run: docker-compose -f ".docker/docker-compose.market.yml" -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build --remove-orphans --force-recreate node-parachain
74 74
75 - uses: actions/setup-node@v375 - uses: actions/setup-node@v3.5.1
76 with:76 with:
77 node-version: 16.1777 node-version: 16.17
7878
93# working-directory: tests93# working-directory: tests
94# run: |94# run: |
95# yarn install95# yarn install
96# node scripts/readyness.js96# ./scripts/wait_for_first_block.sh
97# echo "Ready to start tests"97# echo "Ready to start tests"
98# env:98# env:
99# RPC_URL: http://127.0.0.1:9933/99# RPC_URL: http://127.0.0.1:9933/
modified.github/workflows/node-only-update.ymldiffbeforeafterboth
25 uses: AutoModality/action-clean@v1.1.025 uses: AutoModality/action-clean@v1.1.0
2626
27 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it27 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
28 - uses: actions/checkout@v328 - uses: actions/checkout@v3.1.0
29 with:29 with:
30 ref: ${{ github.head_ref }} #Checking out head commit30 ref: ${{ github.head_ref }} #Checking out head commit
3131
32 - name: Read .env file32 - name: Read .env file
33 uses: xom9ikk/dotenv@v233 uses: xom9ikk/dotenv@v2
3434
35 - name: Create Execution matrix35 - name: Create Execution matrix
36 uses: CertainLach/create-matrix-action@v336 uses: CertainLach/create-matrix-action@v4
37 id: create_matrix37 id: create_matrix
38 with:38 with:
39 matrix: |39 matrix: |
5252
53 name: ${{ matrix.network }}53 name: ${{ matrix.network }}
5454
55 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.55 continue-on-error: false #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.
5656
57 strategy:57 strategy:
58 matrix:58 matrix:
64 uses: AutoModality/action-clean@v1.1.064 uses: AutoModality/action-clean@v1.1.0
6565
66 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it66 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
67 - uses: actions/checkout@v367 - uses: actions/checkout@v3.1.0
68 with:68 with:
69 ref: ${{ github.head_ref }} #Checking out head commit69 ref: ${{ github.head_ref }} #Checking out head commit
7070
104 - name: Show launch-config-forkless configuration104 - name: Show launch-config-forkless configuration
105 run: cat .docker/launch-config-forkless-nodata.json105 run: cat .docker/launch-config-forkless-nodata.json
106106
107 - uses: actions/setup-node@v3107 - uses: actions/setup-node@v3.5.1
108 with:108 with:
109 node-version: 16109 node-version: 16
110110
166 - name: Run Parallel tests before Node Parachain upgrade166 - name: Run Parallel tests before Node Parachain upgrade
167 working-directory: ${{ matrix.mainnet_branch }}/tests167 working-directory: ${{ matrix.mainnet_branch }}/tests
168 if: success() || failure()168 if: success() || failure()
169 run: |169 run: |
170 yarn install170 yarn install
171 yarn add mochawesome171 yarn add mochawesome
172 node scripts/readyness.js172 ./scripts/wait_for_first_block.sh
173 echo "Ready to start tests"173 echo "Ready to start tests"
174 yarn polkadot-types174 yarn polkadot-types
175 NOW=$(date +%s) && yarn testParallel --reporter mochawesome --reporter-options reportFilename=test-parallel-${NOW}175 NOW=$(date +%s) && yarn testParallel --reporter mochawesome --reporter-options reportFilename=test-parallel-${NOW}
176 env:176 env:
177 RPC_URL: http://127.0.0.1:9933/177 RPC_URL: http://127.0.0.1:9933/
178178
194 RPC_URL: http://127.0.0.1:9933/194 RPC_URL: http://127.0.0.1:9933/
195195
196 # - name: Upload Sequential Test Report Before Node upgrade196 # - name: Upload Sequential Test Report Before Node upgrade
197 # uses: phoenix-actions/test-reporting@v8197 # uses: phoenix-actions/test-reporting@v10
198 # id: test-sequential-report-before198 # id: test-sequential-report-before
199 # if: success() || failure() # run this step even if previous step failed199 # if: success() || failure() # run this step even if previous step failed
200 # with:200 # with:
289 - name: Run Parallel tests after Node Parachain upgrade289 - name: Run Parallel tests after Node Parachain upgrade
290 working-directory: ${{ matrix.mainnet_branch }}/tests290 working-directory: ${{ matrix.mainnet_branch }}/tests
291 if: success() || failure() # run this step even if previous step failed291 if: success() || failure() # run this step even if previous step failed
292 run: |292 run: |
293 yarn install293 yarn install
294 yarn add mochawesome294 yarn add mochawesome
295 node scripts/readyness.js295 ./scripts/wait_for_first_block.sh
296 echo "Ready to start tests"296 echo "Ready to start tests"
297 yarn polkadot-types297 yarn polkadot-types
298 NOW=$(date +%s) && yarn testParallel --reporter mochawesome --reporter-options reportFilename=test-parallel-${NOW}298 NOW=$(date +%s) && yarn testParallel --reporter mochawesome --reporter-options reportFilename=test-parallel-${NOW}
299 env:299 env:
300 RPC_URL: http://127.0.0.1:9933/300 RPC_URL: http://127.0.0.1:9933/
301301
302 #- name: Test Report Parallel After Node upgrade302 #- name: Test Report Parallel After Node upgrade
303 # uses: phoenix-actions/test-reporting@v8303 # uses: phoenix-actions/test-reporting@v10
304 # id: test-report-parallel-after304 # id: test-report-parallel-after
305 # if: success() || failure() # run this step even if previous step failed305 # if: success() || failure() # run this step even if previous step failed
306 # with:306 # with:
317 RPC_URL: http://127.0.0.1:9933/317 RPC_URL: http://127.0.0.1:9933/
318318
319 #- name: Upload Sequential Test Report After Node upgrade319 #- name: Upload Sequential Test Report After Node upgrade
320 # uses: phoenix-actions/test-reporting@v8320 # uses: phoenix-actions/test-reporting@v10
321 # id: test-sequential-report-after321 # id: test-sequential-report-after
322 # if: success() || failure() # run this step even if previous step failed322 # if: success() || failure() # run this step even if previous step failed
323 # with:323 # with:
modified.github/workflows/polkadot-types.ymldiffbeforeafterboth
2424
25 name: ${{ matrix.network }}25 name: ${{ matrix.network }}
2626
27 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.27 continue-on-error: false #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.
2828
29 strategy:29 strategy:
30 matrix:30 matrix:
66 - name: Build the stack66 - name: Build the stack
67 run: docker-compose -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build --remove-orphans67 run: docker-compose -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build --remove-orphans
6868
69 - uses: actions/setup-node@v369 - uses: actions/setup-node@v3.5.1
70 with:70 with:
71 node-version: 1671 node-version: 16
7272
modified.github/workflows/testnet-build.ymldiffbeforeafterboth
28 uses: AutoModality/action-clean@v1.1.028 uses: AutoModality/action-clean@v1.1.0
2929
30 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it30 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
31 - uses: actions/checkout@v331 - uses: actions/checkout@v3.1.0
32 with:32 with:
33 ref: ${{ github.head_ref }} #Checking out head commit33 ref: ${{ github.head_ref }} #Checking out head commit
3434
35 - name: Read .env file35 - name: Read .env file
36 uses: xom9ikk/dotenv@v236 uses: xom9ikk/dotenv@v2
3737
38 - name: Create Execution matrix38 - name: Create Execution matrix
39 uses: fabiocaccamo/create-matrix-action@v239 uses: CertainLach/create-matrix-action@v4
40 id: create_matrix40 id: create_matrix
41 with:41 with:
42 matrix: |42 matrix: |
5353
54 name: ${{ matrix.network }}54 name: ${{ matrix.network }}
5555
56 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.56 continue-on-error: false #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.
5757
58 strategy:58 strategy:
59 matrix:59 matrix:
68 uses: AutoModality/action-clean@v1.1.068 uses: AutoModality/action-clean@v1.1.0
6969
70 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it70 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
71 - uses: actions/checkout@v371 - uses: actions/checkout@v3.1.0
72 with:72 with:
73 ref: ${{ github.head_ref }} #Checking out head commit73 ref: ${{ github.head_ref }} #Checking out head commit
7474
modified.github/workflows/try-runtime.ymldiffbeforeafterboth
21 uses: AutoModality/action-clean@v1.1.021 uses: AutoModality/action-clean@v1.1.0
2222
23 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it23 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24 - uses: actions/checkout@v324 - uses: actions/checkout@v3.1.0
25 with:25 with:
26 ref: ${{ github.head_ref }} #Checking out head commit26 ref: ${{ github.head_ref }} #Checking out head commit
2727
28 - name: Read .env file28 - name: Read .env file
29 uses: xom9ikk/dotenv@v229 uses: xom9ikk/dotenv@v2
3030
31 - name: Create Execution matrix31 - name: Create Execution matrix
32 uses: CertainLach/create-matrix-action@v332 uses: CertainLach/create-matrix-action@v4
33 id: create_matrix33 id: create_matrix
34 with:34 with:
35 matrix: |35 matrix: |
4343
44 # The type of runner that the job will run on44 # The type of runner that the job will run on
45 runs-on: [self-hosted-ci]45 runs-on: [self-hosted-ci]
46 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.46 continue-on-error: false #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.
4747
48 name: ${{ matrix.network }}-try-runtime48 name: ${{ matrix.network }}-try-runtime
49 strategy:49 strategy:
56 uses: AutoModality/action-clean@v1.1.056 uses: AutoModality/action-clean@v1.1.0
5757
58 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it58 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
59 - uses: actions/checkout@v359 - uses: actions/checkout@v3.1.0
60 with:60 with:
61 ref: ${{ github.head_ref }} #Checking out head commit61 ref: ${{ github.head_ref }} #Checking out head commit
6262
8282
83 - name: Collect Docker Logs83 - name: Collect Docker Logs
84 if: success() || failure()84 if: success() || failure()
85 uses: jwalton/gh-docker-logs@v2.2.085 uses: jwalton/gh-docker-logs@v2.2.1
86 with:86 with:
87 dest: './try-runtime-logs.${{ matrix.network }}'87 dest: './try-runtime-logs.${{ matrix.network }}'
88 images: 'try-runtime'88 images: 'try-runtime'
modified.github/workflows/unit-test.ymldiffbeforeafterboth
1717
18 name: ${{ github.base_ref }}18 name: ${{ github.base_ref }}
1919
20 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.20 continue-on-error: false #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.
21
2221
23 steps:22 steps:
26 uses: AutoModality/action-clean@v1.1.025 uses: AutoModality/action-clean@v1.1.0
2726
28 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it27 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
29 - uses: actions/checkout@v328 - uses: actions/checkout@v3.1.0
30 with:29 with:
31 ref: ${{ github.head_ref }} #Checking out head commit30 ref: ${{ github.head_ref }} #Checking out head commit
3231
modified.github/workflows/xcm.ymldiffbeforeafterboth
28 uses: AutoModality/action-clean@v1.1.028 uses: AutoModality/action-clean@v1.1.0
2929
30 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it30 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
31 - uses: actions/checkout@v331 - uses: actions/checkout@v3.1.0
32 with:32 with:
33 ref: ${{ github.head_ref }} #Checking out head commit33 ref: ${{ github.head_ref }} #Checking out head commit
3434
35 - name: Read .env file35 - name: Read .env file
36 uses: xom9ikk/dotenv@v236 uses: xom9ikk/dotenv@v2
3737
38 - name: Create Execution matrix38 - name: Create Execution matrix
39 uses: fabiocaccamo/create-matrix-action@v239 uses: CertainLach/create-matrix-action@v4
40 id: create_matrix40 id: create_matrix
41 with:41 with:
42 matrix: |42 matrix: |
5454
55 name: ${{ matrix.network }}-build55 name: ${{ matrix.network }}-build
5656
57 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.57 continue-on-error: false #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.
5858
59 strategy:59 strategy:
60 matrix:60 matrix:
69 uses: AutoModality/action-clean@v1.1.069 uses: AutoModality/action-clean@v1.1.0
7070
71 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it71 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
72 - uses: actions/checkout@v372 - uses: actions/checkout@v3.1.0
73 with:73 with:
74 ref: ${{ github.head_ref }} #Checking out head commit74 ref: ${{ github.head_ref }} #Checking out head commit
75
76 # Prepare SHA
77 - name: Prepare SHA
78 uses: ./.github/actions/prepare
7579
76 - name: Read .env file80 - name: Read .env file
77 uses: xom9ikk/dotenv@v281 uses: xom9ikk/dotenv@v2
82 username: ${{ secrets.CORE_DOCKERHUB_USERNAME }}86 username: ${{ secrets.CORE_DOCKERHUB_USERNAME }}
83 password: ${{ secrets.CORE_DOCKERHUB_TOKEN }}87 password: ${{ secrets.CORE_DOCKERHUB_TOKEN }}
8488
85 - name: Install jq89 # Check POLKADOT version and build it if it doesn't exist in repository
86 run: sudo apt install jq -y
87
88 # Check POLKADOT version and build it if it doesn't exist in repository
89 - name: Generate ENV related extend Dockerfile file for POLKADOT90 - name: Generate ENV related extend Dockerfile file for POLKADOT
90 uses: cuchi/jinja2-action@v1.2.091 uses: cuchi/jinja2-action@v1.2.0
91 with:92 with:
251 fi251 fi
252 shell: bash252 shell: bash
253253
254 - name: Pull chainql docker image
255 run: docker pull uniquenetwork/builder-chainql:latest
254256
255 - name: Generate ENV related extend launch-config file257 - name: Generate ENV related extend launch-config file
256 uses: cuchi/jinja2-action@v1.2.0258 uses: cuchi/jinja2-action@v1.2.0
284 run: cat .docker/Dockerfile-xcm.${{ matrix.network }}.yml286 run: cat .docker/Dockerfile-xcm.${{ matrix.network }}.yml
285287
286 - name: Run find-and-replace to remove slashes from branch name288 - name: Run find-and-replace to remove slashes from branch name
287 uses: mad9000/actions-find-and-replace-string@2289 uses: mad9000/actions-find-and-replace-string@3
288 id: branchname290 id: branchname
289 with:291 with:
290 source: ${{ github.head_ref }}292 source: ${{ github.head_ref }}
291 find: '/'293 find: '/'
292 replace: '-'294 replace: '-'
293295
294 - name: Pull chainql docker image296 - name: Set build SHA
297 shell: bash
295 run: docker pull uniquenetwork/builder-chainql:latest298 run: |
299 echo "BUILD_SHA=${LAST_COMMIT_SHA:0:8}" >> $GITHUB_ENV
296300
297 - name: Build the stack301 - name: Build the stack
298 run: cd .docker/ && docker build --no-cache --file ./Dockerfile-xcm.${{ matrix.network }}.yml --tag uniquenetwork/xcm-${{ matrix.network }}-testnet-local:nightly-${{ steps.branchname.outputs.value }}-${{ github.sha }} --tag uniquenetwork/xcm-${{ matrix.network }}-testnet-local:latest .302 run: cd .docker/ && docker build --no-cache --file ./Dockerfile-xcm.${{ matrix.network }}.yml --tag uniquenetwork/ci-xcm-local:${{ matrix.network }}-${{ steps.branchname.outputs.value }}-$BUILD_SHA .
299303
300 - name: Push docker image version304 - name: Push docker image version
301 run: docker push uniquenetwork/xcm-${{ matrix.network }}-testnet-local:nightly-${{ steps.branchname.outputs.value }}-${{ github.sha }}305 run: docker push uniquenetwork/ci-xcm-local:${{ matrix.network }}-${{ steps.branchname.outputs.value }}-$BUILD_SHA
302
303 - name: Push docker image latest
304 run: docker push uniquenetwork/xcm-${{ matrix.network }}-testnet-local:latest
305306
306 - name: Remove builder cache307 - name: Remove builder cache
307 if: always() # run this step always308 if: always() # run this step always
318319
319 name: ${{ matrix.network }}-tests320 name: ${{ matrix.network }}-tests
320321
321 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.322 continue-on-error: false #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.
322323
323 strategy:324 strategy:
324 matrix:325 matrix:
333 uses: AutoModality/action-clean@v1.1.0334 uses: AutoModality/action-clean@v1.1.0
334335
335 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it336 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
336 - uses: actions/checkout@v3337 - uses: actions/checkout@v3.1.0
337 with:338 with:
338 ref: ${{ github.head_ref }} #Checking out head commit339 ref: ${{ github.head_ref }} #Checking out head commit
340
341 - name: Prepare
342 uses: ./.github/actions/prepare
343
344 - name: Set build SHA
345 shell: bash
346 run: |
347 echo "BUILD_SHA=${LAST_COMMIT_SHA:0:8}" >> $GITHUB_ENV
348
349 - name: Run find-and-replace to remove slashes from branch name
350 uses: mad9000/actions-find-and-replace-string@2
351 id: branchname
352 with:
353 source: ${{ github.head_ref }}
354 find: '/'
355 replace: '-'
339356
340 - name: Read .env file357 - name: Read .env file
341 uses: xom9ikk/dotenv@v2358 uses: xom9ikk/dotenv@v2
345 with:362 with:
346 template: .docker/docker-compose.tmp-xcm-tests.j2363 template: .docker/docker-compose.tmp-xcm-tests.j2
347 output_file: .docker/docker-compose.xcm-tests.${{ matrix.network }}.yml364 output_file: .docker/docker-compose.xcm-tests.${{ matrix.network }}.yml
348 variables: |365 variables: |
349 NETWORK=${{ matrix.network }}366 NETWORK=${{ matrix.network }}
367 BUILD_TAG=${{ steps.branchname.outputs.value }}-$BUILD_SHA
350368
351 - name: Show build configuration369 - name: Show build configuration
352 run: cat .docker/docker-compose.xcm-tests.${{ matrix.network }}.yml370 run: cat .docker/docker-compose.xcm-tests.${{ matrix.network }}.yml
353371
354 - uses: actions/setup-node@v3372 - uses: actions/setup-node@v3.5.1
355 with:373 with:
356 node-version: 16374 node-version: 16
375
376 - name: Log in to Docker Hub
377 uses: docker/login-action@v2.0.0
378 with:
379 username: ${{ secrets.CORE_DOCKERHUB_USERNAME }}
380 password: ${{ secrets.CORE_DOCKERHUB_TOKEN }}
357381
358 - name: Build the stack382 - name: Build the stack
359 run: docker-compose -f ".docker/docker-compose.xcm-tests.${{ matrix.network }}.yml" up -d --remove-orphans --force-recreate --timeout 300383 run: docker-compose -f ".docker/docker-compose.xcm-tests.${{ matrix.network }}.yml" up -d --remove-orphans --force-recreate --timeout 300
360384
361 # 🚀 POLKADOT LAUNCH COMPLETE 🚀385 # 🚀 POLKADOT LAUNCH COMPLETE 🚀
362 - name: Check if docker logs consist messages related to testing of xcm tests 386 - name: Check if docker logs consist messages related to testing of xcm tests
363 if: success()387 if: success()
364 run: |388 run: |
365 counter=160389 counter=160
366 function check_container_status {390 function check_container_status {
367 docker inspect -f {{.State.Running}} xcm-${{ matrix.network }}-testnet-local391 docker inspect -f {{.State.Running}} xcm-${{ matrix.network }}-local
368 }392 }
369 function do_docker_logs {393 function do_docker_logs {
370 docker logs --details xcm-${{ matrix.network }}-testnet-local 2>&1394 docker logs --details xcm-${{ matrix.network }}-local 2>&1
371 }395 }
372 function is_started {396 function is_started {
373 if [ "$(check_container_status)" == "true" ]; then397 if [ "$(check_container_status)" == "true" ]; then
374 echo "Container: xcm-${{ matrix.network }}-testnet-local RUNNING";398 echo "Container: xcm-${{ matrix.network }}-local RUNNING";
375 echo "Check Docker logs"399 echo "Check Docker logs"
376 DOCKER_LOGS=$(do_docker_logs)400 DOCKER_LOGS=$(do_docker_logs)
377 if [[ ${DOCKER_LOGS} = *"POLKADOT LAUNCH COMPLETE"* ]];then401 if [[ ${DOCKER_LOGS} = *"POLKADOT LAUNCH COMPLETE"* ]];then
378 echo "🚀 POLKADOT LAUNCH COMPLETE 🚀"402 echo "🚀 POLKADOT LAUNCH COMPLETE 🚀"
379 return 0403 return 0
380 else404 else
381 echo "Message not found in logs output, repeating..."405 echo "Message not found in logs output, repeating..."
382 return 1406 return 1
383 fi407 fi
384 else408 else
385 echo "Container xcm-${{ matrix.network }}-testnet-local NOT RUNNING"409 echo "Container xcm-${{ matrix.network }}-local NOT RUNNING"
386 echo "Halting all future checks"410 echo "Halting all future checks"
387 exit 1411 exit 1
388 fi412 fi
389 echo "something goes wrong"413 echo "something goes wrong"
390 exit 1414 exit 1
391 }415 }
392 while ! is_started; do416 while ! is_started; do
393 echo "Waiting for special message in log files "417 echo "Waiting for special message in log files "
394 sleep 30s418 sleep 30s
395 counter=$(( $counter - 1 ))419 counter=$(( $counter - 1 ))
396 echo "Counter: $counter"420 echo "Counter: $counter"
397 if [ "$counter" -gt "0" ]; then421 if [ "$counter" -gt "0" ]; then
398 continue422 continue
399 else423 else
400 break424 break
401 fi425 fi
402 done426 done
403 echo "Halting script"427 echo "Halting script"
404 exit 0428 exit 0
405 shell: bash429 shell: bash
406430
407 - name: Run XCM tests 431 - name: Run XCM tests
408 working-directory: tests432 working-directory: tests
409 run: |433 run: |
410 yarn install434 yarn install
411 yarn add mochawesome435 yarn add mochawesome
412 node scripts/readyness.js436 ./scripts/wait_for_first_block.sh
413 echo "Ready to start tests"437 echo "Ready to start tests"
414 yarn polkadot-types 438 yarn polkadot-types
415 NOW=$(date +%s) && yarn ${{ matrix.runtest }} --reporter mochawesome --reporter-options reportFilename=test-${NOW}439 NOW=$(date +%s) && yarn ${{ matrix.runtest }} --reporter mochawesome --reporter-options reportFilename=test-${NOW}
416 env:440 env:
417 RPC_URL: http://127.0.0.1:9933/441 RPC_URL: http://127.0.0.1:9933/
418442
419 - name: XCM Test Report443 - name: XCM Test Report
420 uses: phoenix-actions/test-reporting@v8444 uses: phoenix-actions/test-reporting@v10
421 id: test-report445 id: test-report
422 if: success() || failure() # run this step even if previous step failed446 if: success() || failure() # run this step even if previous step failed
423 with:447 with:
modified.github/workflows/yarn-dev.ymldiffbeforeafterboth
1818
19 name: ${{ matrix.network }}19 name: ${{ matrix.network }}
2020
21 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.21 continue-on-error: false #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.
2222
23 strategy:23 strategy:
24 matrix:24 matrix:
34 uses: AutoModality/action-clean@v1.1.034 uses: AutoModality/action-clean@v1.1.0
3535
36 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it36 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
37 - uses: actions/checkout@v337 - uses: actions/checkout@v3.1.0
38 with:38 with:
39 ref: ${{ github.head_ref }} #Checking out head commit39 ref: ${{ github.head_ref }} #Checking out head commit
4040
57 - name: Build the stack57 - name: Build the stack
58 run: docker-compose -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build --remove-orphans58 run: docker-compose -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build --remove-orphans
5959
60 - uses: actions/setup-node@v360 - uses: actions/setup-node@v3.5.1
61 with:61 with:
62 node-version: 1662 node-version: 16
6363
64 - name: Run tests64 - name: Run tests
65 working-directory: tests65 working-directory: tests
66 run: |66 run: |
67 yarn install67 yarn install
68 yarn add mochawesome68 yarn add mochawesome
69 node scripts/readyness.js69 ./scripts/wait_for_first_block.sh
70 echo "Ready to start tests"70 echo "Ready to start tests"
71 yarn polkadot-types71 yarn polkadot-types
72 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}72 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}
73 env:73 env:
74 RPC_URL: http://127.0.0.1:9933/74 RPC_URL: http://127.0.0.1:9933/
7575
76 - name: Test Report76 - name: Test Report
77 uses: phoenix-actions/test-reporting@v877 uses: phoenix-actions/test-reporting@v10
78 id: test-report78 id: test-report
79 if: success() || failure() # run this step even if previous step failed79 if: success() || failure() # run this step even if previous step failed
80 with:80 with:
98 docker system prune -f98 docker system prune -f
99 docker image prune -f -a99 docker image prune -f -a
100100
101 # check:
102 # if: always()
103 # runs-on: [self-hosted-ci]
104 # needs:
105 # - dev_build_int_tests
106
107 # steps:
108 # - name: Install python3
109 # uses: actions/setup-python@v4
110 # with:
111 # python-version: '3.10'
112
113 # - name: Decide whether the needed jobs succeeded or failed
114 # uses: re-actors/alls-green@v1.2.2
115 # with:
116 # jobs: ${{ toJSON(needs) }}