difftreelog
ref v2
in: master
18 files changed
.docker/Dockerfile-try-runtime.j2diffbeforeafterbothno changes
.docker/docker-compose.tmp-try-runtime.j2diffbeforeafterboth223services:3services:4 try-runtime:4 try-runtime:5 build:5 image: uniquenetwork/tryruntime-{{ NETWORK }}-testnet-local:latest6 context: ../7 dockerfile: .docker/Dockerfile-try-runtime8 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-local13 image: try-runtime14 container_name: try-runtime15 expose:7 expose:16 - 99448 - 994417 - 99339 - 9933.docker/docker-compose.tmp-xcm-tests.j2diffbeforeafterboth223services: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 }}-local7 expose:7 expose:8 - 98448 - 98449 - 99339 - 9933.github/actions/prepare/action.ymldiffbeforeafterbothno changes
.github/workflows/ci-develop.ymldiffbeforeafterboth25 uses: ./.github/workflows/unit-test.yml25 uses: ./.github/workflows/unit-test.yml262627 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.yml30 secrets: inherit # pass all secrets from initial workflow to nested30 secrets: inherit # pass all secrets from initial workflow to nested313132 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.yml35 secrets: inherit # pass all secrets from initial workflow to nested35 secrets: inherit # pass all secrets from initial workflow to nested36 36 39 uses: ./.github/workflows/collator-selection.yml39 uses: ./.github/workflows/collator-selection.yml40 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.yml44 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.yml48 48 49 # integration:49 # integration:.github/workflows/codestyle.ymldiffbeforeafterboth13 steps:13 steps:14 - name: Clean Workspace14 - name: Clean Workspace15 uses: AutoModality/action-clean@v1.1.015 uses: AutoModality/action-clean@v1.1.016 - uses: actions/checkout@v316 - uses: actions/checkout@v3.1.017 with:17 with:18 ref: ${{ github.head_ref }} 18 ref: ${{ github.head_ref }} 19 - name: Install latest nightly19 - name: Install latest nightly20 uses: actions-rs/toolchain@v120 uses: dtolnay/rust-toolchain@nightly21 with:21 with:22 toolchain: nightly23 default: true24 target: wasm32-unknown-unknown22 targets: wasm32-unknown-unknown25 components: rustfmt, clippy23 components: rustfmt, clippy26 - name: Run cargo fmt24 - name: Run cargo fmt27 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 Workspace36 uses: AutoModality/action-clean@v1.1.034 uses: AutoModality/action-clean@v1.1.037 - uses: actions/checkout@v335 - uses: actions/checkout@v3.1.038 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.141 with:39 with:42 node-version: 1640 node-version: 1643 - name: Install modules41 - name: Install modules49 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.053 - name: Install substrate dependencies51 - name: Install substrate dependencies54 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-compiler55 - name: Install latest nightly53 - name: Install latest nightly56 uses: actions-rs/toolchain@v154 uses: dtolnay/rust-toolchain@nightly57 with:55 with:58 toolchain: nightly59 default: true60 target: wasm32-unknown-unknown56 targets: wasm32-unknown-unknown61 components: rustfmt, clippy57 components: rustfmt, clippy62 - name: Run cargo check58 - name: Run cargo check63 run: cargo clippy -- -Dwarnings59 run: cargo clippy -- -Dwarnings.github/workflows/execution-matrix.ymldiffbeforeafterboth24 uses: AutoModality/action-clean@v1.1.024 uses: AutoModality/action-clean@v1.1.0252526 # 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 it27 - uses: actions/checkout@v327 - uses: actions/checkout@v3.1.028 with:28 with:29 ref: ${{ github.head_ref }} #Checking out head commit29 ref: ${{ github.head_ref }} #Checking out head commit303031 - name: Read .env file31 - name: Read .env file32 uses: xom9ikk/dotenv@v232 uses: xom9ikk/dotenv@v2333334 - name: Create Execution matrix34 - name: Create Execution matrix35 uses: CertainLach/create-matrix-action@v335 uses: CertainLach/create-matrix-action@v436 id: create_matrix36 id: create_matrix37 with:37 with:38 matrix: |38 matrix: |.github/workflows/forkless-update-data.ymldiffbeforeafterboth23 uses: AutoModality/action-clean@v1.1.023 uses: AutoModality/action-clean@v1.1.0242425 # 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 it26 - uses: actions/checkout@v326 - uses: actions/checkout@v3.1.027 with:27 with:28 ref: ${{ github.head_ref }} #Checking out head commit28 ref: ${{ github.head_ref }} #Checking out head commit292930 - name: Read .env file30 - name: Read .env file31 uses: xom9ikk/dotenv@v231 uses: xom9ikk/dotenv@v2323233 - name: Create Execution matrix33 - name: Create Execution matrix34 uses: CertainLach/create-matrix-action@v334 uses: CertainLach/create-matrix-action@v435 id: create_matrix35 id: create_matrix36 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)}}535354 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.555556 steps:56 steps:57 - name: Clean Workspace57 - name: Clean Workspace58 uses: AutoModality/action-clean@v1.1.058 uses: AutoModality/action-clean@v1.1.0595960 # 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 it61 - uses: actions/checkout@v361 - uses: actions/checkout@v3.1.062 with:62 with:63 ref: ${{ github.head_ref }} #Checking out head commit63 ref: ${{ github.head_ref }} #Checking out head commit6464152152153 - name: Collect Docker Logs153 - name: Collect Docker Logs154 if: success() || failure()154 if: success() || failure()155 uses: jwalton/gh-docker-logs@v2.2.0155 uses: jwalton/gh-docker-logs@v2.2.1156 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'.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth22 uses: AutoModality/action-clean@v1.1.022 uses: AutoModality/action-clean@v1.1.0232324 # 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 it25 - uses: actions/checkout@v325 - uses: actions/checkout@v3.1.026 with:26 with:27 ref: ${{ github.head_ref }} #Checking out head commit27 ref: ${{ github.head_ref }} #Checking out head commit282829 - name: Read .env file29 - name: Read .env file30 uses: xom9ikk/dotenv@v230 uses: xom9ikk/dotenv@v2313132 - name: Create Execution matrix32 - name: Create Execution matrix33 uses: CertainLach/create-matrix-action@v333 uses: CertainLach/create-matrix-action@v434 id: create_matrix34 id: create_matrix35 with:35 with:36 matrix: |36 matrix: |494950 name: ${{ matrix.network }}-nodata50 name: ${{ matrix.network }}-nodata515152 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.535354 strategy:54 strategy:55 matrix:55 matrix:60 uses: AutoModality/action-clean@v1.1.060 uses: AutoModality/action-clean@v1.1.0616162 # 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 it63 - uses: actions/checkout@v363 - uses: actions/checkout@v3.1.064 with:64 with:65 ref: ${{ github.head_ref }} #Checking out head commit65 ref: ${{ github.head_ref }} #Checking out head commit6666100 - name: Show launch-config-forkless configuration100 - name: Show launch-config-forkless configuration101 run: cat .docker/launch-config-forkless-nodata.json101 run: cat .docker/launch-config-forkless-nodata.json102102103 - uses: actions/setup-node@v3103 - uses: actions/setup-node@v3.5.1104 with:104 with:105 node-version: 16105 node-version: 16106106156156157 - name: Collect Docker Logs157 - name: Collect Docker Logs158 if: success() || failure()158 if: success() || failure()159 uses: jwalton/gh-docker-logs@v2.2.0159 uses: jwalton/gh-docker-logs@v2.2.1160 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'167167168 - name: Run Parallel tests168 - name: Run Parallel tests169 working-directory: tests169 working-directory: tests170 run: |170 run: |171 yarn install171 yarn install172 yarn add mochawesome172 yarn add mochawesome173 node scripts/readyness.js173 ./scripts/wait_for_first_block.sh174 echo "Ready to start tests"174 echo "Ready to start tests"175 yarn polkadot-types175 yarn polkadot-types176 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/179179180 - name: Test Report Parallel180 - name: Test Report Parallel181 uses: phoenix-actions/test-reporting@v8181 uses: phoenix-actions/test-reporting@v10182 id: test-report-parallel182 id: test-report-parallel183 if: success() || failure() # run this step even if previous step failed183 if: success() || failure() # run this step even if previous step failed184 with:184 with:190 - name: Run Sequential tests190 - name: Run Sequential tests191 working-directory: tests191 working-directory: tests192 if: success() || failure()192 if: success() || failure()193 run: |193 run: |194 yarn install194 yarn install195 yarn add mochawesome195 yarn add mochawesome196 node scripts/readyness.js196 ./scripts/wait_for_first_block.sh197 echo "Ready to start tests"197 echo "Ready to start tests"198 yarn polkadot-types198 yarn polkadot-types199 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/202202203 - name: Test Report Sequential203 - name: Test Report Sequential204 uses: phoenix-actions/test-reporting@v8204 uses: phoenix-actions/test-reporting@v10205 id: test-report-sequential205 id: test-report-sequential206 if: success() || failure() # run this step even if previous step failed206 if: success() || failure() # run this step even if previous step failed207 with:207 with:.github/workflows/generate-execution-matrix.ymldiffbeforeafterboth28 uses: AutoModality/action-clean@v1.1.028 uses: AutoModality/action-clean@v1.1.0292930 # 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 it31 - uses: actions/checkout@v331 - uses: actions/checkout@v3.1.032 with:32 with:33 ref: ${{ github.head_ref }} #Checking out head commit33 ref: ${{ github.head_ref }} #Checking out head commit343435 - name: Read .env file35 - name: Read .env file36 uses: xom9ikk/dotenv@v236 uses: xom9ikk/dotenv@v2373738 - name: Create Execution matrix38 - name: Create Execution matrix39 uses: CertainLach/create-matrix-action@v339 uses: CertainLach/create-matrix-action@v440 id: create_matrix40 id: create_matrix41 with:41 with:42 matrix: |42 matrix: |.github/workflows/market-test.ymldiffbeforeafterboth181819 name: ${{ matrix.network }} 19 name: ${{ matrix.network }} 202021 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 commit373738 - name: Checkout Market e2e tests38 - name: Checkout Market e2e tests39 uses: actions/checkout@v339 uses: actions/checkout@v3.1.040 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-tests73 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.176 with:76 with:77 node-version: 16.1777 node-version: 16.17787893# working-directory: tests93# working-directory: tests94# run: |94# run: |95# yarn install95# yarn install96# node scripts/readyness.js96# ./scripts/wait_for_first_block.sh97# 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/.github/workflows/node-only-update.ymldiffbeforeafterboth25 uses: AutoModality/action-clean@v1.1.025 uses: AutoModality/action-clean@v1.1.0262627 # 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 it28 - uses: actions/checkout@v328 - uses: actions/checkout@v3.1.029 with:29 with:30 ref: ${{ github.head_ref }} #Checking out head commit30 ref: ${{ github.head_ref }} #Checking out head commit313132 - name: Read .env file32 - name: Read .env file33 uses: xom9ikk/dotenv@v233 uses: xom9ikk/dotenv@v2343435 - name: Create Execution matrix35 - name: Create Execution matrix36 uses: CertainLach/create-matrix-action@v336 uses: CertainLach/create-matrix-action@v437 id: create_matrix37 id: create_matrix38 with:38 with:39 matrix: |39 matrix: |525253 name: ${{ matrix.network }}53 name: ${{ matrix.network }}545455 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.565657 strategy:57 strategy:58 matrix:58 matrix:64 uses: AutoModality/action-clean@v1.1.064 uses: AutoModality/action-clean@v1.1.0656566 # 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 it67 - uses: actions/checkout@v367 - uses: actions/checkout@v3.1.068 with:68 with:69 ref: ${{ github.head_ref }} #Checking out head commit69 ref: ${{ github.head_ref }} #Checking out head commit7070104 - name: Show launch-config-forkless configuration104 - name: Show launch-config-forkless configuration105 run: cat .docker/launch-config-forkless-nodata.json105 run: cat .docker/launch-config-forkless-nodata.json106106107 - uses: actions/setup-node@v3107 - uses: actions/setup-node@v3.5.1108 with:108 with:109 node-version: 16109 node-version: 16110110166 - name: Run Parallel tests before Node Parachain upgrade166 - name: Run Parallel tests before Node Parachain upgrade167 working-directory: ${{ matrix.mainnet_branch }}/tests167 working-directory: ${{ matrix.mainnet_branch }}/tests168 if: success() || failure()168 if: success() || failure()169 run: |169 run: |170 yarn install170 yarn install171 yarn add mochawesome171 yarn add mochawesome172 node scripts/readyness.js172 ./scripts/wait_for_first_block.sh173 echo "Ready to start tests"173 echo "Ready to start tests"174 yarn polkadot-types174 yarn polkadot-types175 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/178178194 RPC_URL: http://127.0.0.1:9933/194 RPC_URL: http://127.0.0.1:9933/195195196 # - name: Upload Sequential Test Report Before Node upgrade196 # - name: Upload Sequential Test Report Before Node upgrade197 # uses: phoenix-actions/test-reporting@v8197 # uses: phoenix-actions/test-reporting@v10198 # id: test-sequential-report-before198 # id: test-sequential-report-before199 # if: success() || failure() # run this step even if previous step failed199 # if: success() || failure() # run this step even if previous step failed200 # with:200 # with:289 - name: Run Parallel tests after Node Parachain upgrade289 - name: Run Parallel tests after Node Parachain upgrade290 working-directory: ${{ matrix.mainnet_branch }}/tests290 working-directory: ${{ matrix.mainnet_branch }}/tests291 if: success() || failure() # run this step even if previous step failed291 if: success() || failure() # run this step even if previous step failed292 run: |292 run: |293 yarn install293 yarn install294 yarn add mochawesome294 yarn add mochawesome295 node scripts/readyness.js295 ./scripts/wait_for_first_block.sh296 echo "Ready to start tests"296 echo "Ready to start tests"297 yarn polkadot-types297 yarn polkadot-types298 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/301301302 #- name: Test Report Parallel After Node upgrade302 #- name: Test Report Parallel After Node upgrade303 # uses: phoenix-actions/test-reporting@v8303 # uses: phoenix-actions/test-reporting@v10304 # id: test-report-parallel-after304 # id: test-report-parallel-after305 # if: success() || failure() # run this step even if previous step failed305 # if: success() || failure() # run this step even if previous step failed306 # with:306 # with:317 RPC_URL: http://127.0.0.1:9933/317 RPC_URL: http://127.0.0.1:9933/318318319 #- name: Upload Sequential Test Report After Node upgrade319 #- name: Upload Sequential Test Report After Node upgrade320 # uses: phoenix-actions/test-reporting@v8320 # uses: phoenix-actions/test-reporting@v10321 # id: test-sequential-report-after321 # id: test-sequential-report-after322 # if: success() || failure() # run this step even if previous step failed322 # if: success() || failure() # run this step even if previous step failed323 # with:323 # with:.github/workflows/polkadot-types.ymldiffbeforeafterboth242425 name: ${{ matrix.network }}25 name: ${{ matrix.network }}262627 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.282829 strategy:29 strategy:30 matrix:30 matrix:66 - name: Build the stack66 - name: Build the stack67 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-orphans686869 - uses: actions/setup-node@v369 - uses: actions/setup-node@v3.5.170 with:70 with:71 node-version: 1671 node-version: 167272.github/workflows/testnet-build.ymldiffbeforeafterboth28 uses: AutoModality/action-clean@v1.1.028 uses: AutoModality/action-clean@v1.1.0292930 # 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 it31 - uses: actions/checkout@v331 - uses: actions/checkout@v3.1.032 with:32 with:33 ref: ${{ github.head_ref }} #Checking out head commit33 ref: ${{ github.head_ref }} #Checking out head commit343435 - name: Read .env file35 - name: Read .env file36 uses: xom9ikk/dotenv@v236 uses: xom9ikk/dotenv@v2373738 - name: Create Execution matrix38 - name: Create Execution matrix39 uses: fabiocaccamo/create-matrix-action@v239 uses: CertainLach/create-matrix-action@v440 id: create_matrix40 id: create_matrix41 with:41 with:42 matrix: |42 matrix: |535354 name: ${{ matrix.network }}54 name: ${{ matrix.network }}555556 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.575758 strategy:58 strategy:59 matrix:59 matrix:68 uses: AutoModality/action-clean@v1.1.068 uses: AutoModality/action-clean@v1.1.0696970 # 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 it71 - uses: actions/checkout@v371 - uses: actions/checkout@v3.1.072 with:72 with:73 ref: ${{ github.head_ref }} #Checking out head commit73 ref: ${{ github.head_ref }} #Checking out head commit7474.github/workflows/try-runtime.ymldiffbeforeafterboth21 uses: AutoModality/action-clean@v1.1.021 uses: AutoModality/action-clean@v1.1.0222223 # 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 it24 - uses: actions/checkout@v324 - uses: actions/checkout@v3.1.025 with:25 with:26 ref: ${{ github.head_ref }} #Checking out head commit26 ref: ${{ github.head_ref }} #Checking out head commit272728 - name: Read .env file28 - name: Read .env file29 uses: xom9ikk/dotenv@v229 uses: xom9ikk/dotenv@v2303031 - name: Create Execution matrix31 - name: Create Execution matrix32 uses: CertainLach/create-matrix-action@v332 uses: CertainLach/create-matrix-action@v433 id: create_matrix33 id: create_matrix34 with:34 with:35 matrix: |35 matrix: |434344 # The type of runner that the job will run on44 # The type of runner that the job will run on45 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.474748 name: ${{ matrix.network }}-try-runtime48 name: ${{ matrix.network }}-try-runtime49 strategy:49 strategy:56 uses: AutoModality/action-clean@v1.1.056 uses: AutoModality/action-clean@v1.1.0575758 # 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 it59 - uses: actions/checkout@v359 - uses: actions/checkout@v3.1.060 with:60 with:61 ref: ${{ github.head_ref }} #Checking out head commit61 ref: ${{ github.head_ref }} #Checking out head commit6262828283 - name: Collect Docker Logs83 - name: Collect Docker Logs84 if: success() || failure()84 if: success() || failure()85 uses: jwalton/gh-docker-logs@v2.2.085 uses: jwalton/gh-docker-logs@v2.2.186 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'.github/workflows/unit-test.ymldiffbeforeafterboth171718 name: ${{ github.base_ref }}18 name: ${{ github.base_ref }}191920 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.21222123 steps:22 steps:26 uses: AutoModality/action-clean@v1.1.025 uses: AutoModality/action-clean@v1.1.0272628 # 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 it29 - uses: actions/checkout@v328 - uses: actions/checkout@v3.1.030 with:29 with:31 ref: ${{ github.head_ref }} #Checking out head commit30 ref: ${{ github.head_ref }} #Checking out head commit3231.github/workflows/xcm.ymldiffbeforeafterboth28 uses: AutoModality/action-clean@v1.1.028 uses: AutoModality/action-clean@v1.1.0292930 # 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 it31 - uses: actions/checkout@v331 - uses: actions/checkout@v3.1.032 with:32 with:33 ref: ${{ github.head_ref }} #Checking out head commit33 ref: ${{ github.head_ref }} #Checking out head commit343435 - name: Read .env file35 - name: Read .env file36 uses: xom9ikk/dotenv@v236 uses: xom9ikk/dotenv@v2373738 - name: Create Execution matrix38 - name: Create Execution matrix39 uses: fabiocaccamo/create-matrix-action@v239 uses: CertainLach/create-matrix-action@v440 id: create_matrix40 id: create_matrix41 with:41 with:42 matrix: |42 matrix: |545455 name: ${{ matrix.network }}-build55 name: ${{ matrix.network }}-build565657 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.585859 strategy:59 strategy:60 matrix:60 matrix:69 uses: AutoModality/action-clean@v1.1.069 uses: AutoModality/action-clean@v1.1.0707071 # 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 it72 - uses: actions/checkout@v372 - uses: actions/checkout@v3.1.073 with:73 with:74 ref: ${{ github.head_ref }} #Checking out head commit74 ref: ${{ github.head_ref }} #Checking out head commit7576 # Prepare SHA 77 - name: Prepare SHA78 uses: ./.github/actions/prepare757976 - name: Read .env file80 - name: Read .env file77 uses: xom9ikk/dotenv@v281 uses: xom9ikk/dotenv@v282 username: ${{ secrets.CORE_DOCKERHUB_USERNAME }}86 username: ${{ secrets.CORE_DOCKERHUB_USERNAME }}83 password: ${{ secrets.CORE_DOCKERHUB_TOKEN }}87 password: ${{ secrets.CORE_DOCKERHUB_TOKEN }}848885 - name: Install jq89 # Check POLKADOT version and build it if it doesn't exist in repository86 run: sudo apt install jq -y8788 # Check POLKADOT version and build it if it doesn't exist in repository89 - name: Generate ENV related extend Dockerfile file for POLKADOT90 - name: Generate ENV related extend Dockerfile file for POLKADOT90 uses: cuchi/jinja2-action@v1.2.091 uses: cuchi/jinja2-action@v1.2.091 with:92 with:251 fi251 fi252 shell: bash252 shell: bash253253254 - name: Pull chainql docker image255 run: docker pull uniquenetwork/builder-chainql:latest254256255 - name: Generate ENV related extend launch-config file257 - name: Generate ENV related extend launch-config file256 uses: cuchi/jinja2-action@v1.2.0258 uses: cuchi/jinja2-action@v1.2.0284 run: cat .docker/Dockerfile-xcm.${{ matrix.network }}.yml286 run: cat .docker/Dockerfile-xcm.${{ matrix.network }}.yml285287286 - name: Run find-and-replace to remove slashes from branch name288 - name: Run find-and-replace to remove slashes from branch name287 uses: mad9000/actions-find-and-replace-string@2289 uses: mad9000/actions-find-and-replace-string@3288 id: branchname290 id: branchname289 with:291 with:290 source: ${{ github.head_ref }}292 source: ${{ github.head_ref }}291 find: '/'293 find: '/'292 replace: '-'294 replace: '-'293295294 - name: Pull chainql docker image296 - name: Set build SHA297 shell: bash295 run: docker pull uniquenetwork/builder-chainql:latest298 run: |299 echo "BUILD_SHA=${LAST_COMMIT_SHA:0:8}" >> $GITHUB_ENV296300297 - name: Build the stack301 - name: Build the stack298 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 .299303300 - name: Push docker image version304 - name: Push docker image version301 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_SHA302303 - name: Push docker image latest304 run: docker push uniquenetwork/xcm-${{ matrix.network }}-testnet-local:latest305306306 - name: Remove builder cache307 - name: Remove builder cache307 if: always() # run this step always308 if: always() # run this step always318319319 name: ${{ matrix.network }}-tests320 name: ${{ matrix.network }}-tests320321321 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.322323323 strategy:324 strategy:324 matrix:325 matrix:333 uses: AutoModality/action-clean@v1.1.0334 uses: AutoModality/action-clean@v1.1.0334335335 # 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 it336 - uses: actions/checkout@v3337 - uses: actions/checkout@v3.1.0337 with:338 with:338 ref: ${{ github.head_ref }} #Checking out head commit339 ref: ${{ github.head_ref }} #Checking out head commit340341 - name: Prepare342 uses: ./.github/actions/prepare343344 - name: Set build SHA345 shell: bash346 run: |347 echo "BUILD_SHA=${LAST_COMMIT_SHA:0:8}" >> $GITHUB_ENV348349 - name: Run find-and-replace to remove slashes from branch name350 uses: mad9000/actions-find-and-replace-string@2351 id: branchname352 with:353 source: ${{ github.head_ref }}354 find: '/'355 replace: '-'339356340 - name: Read .env file357 - name: Read .env file341 uses: xom9ikk/dotenv@v2358 uses: xom9ikk/dotenv@v2345 with:362 with:346 template: .docker/docker-compose.tmp-xcm-tests.j2363 template: .docker/docker-compose.tmp-xcm-tests.j2347 output_file: .docker/docker-compose.xcm-tests.${{ matrix.network }}.yml364 output_file: .docker/docker-compose.xcm-tests.${{ matrix.network }}.yml348 variables: |365 variables: |349 NETWORK=${{ matrix.network }}366 NETWORK=${{ matrix.network }}367 BUILD_TAG=${{ steps.branchname.outputs.value }}-$BUILD_SHA350368351 - name: Show build configuration369 - name: Show build configuration352 run: cat .docker/docker-compose.xcm-tests.${{ matrix.network }}.yml370 run: cat .docker/docker-compose.xcm-tests.${{ matrix.network }}.yml353371354 - uses: actions/setup-node@v3372 - uses: actions/setup-node@v3.5.1355 with:373 with:356 node-version: 16374 node-version: 16375376 - name: Log in to Docker Hub377 uses: docker/login-action@v2.0.0378 with:379 username: ${{ secrets.CORE_DOCKERHUB_USERNAME }}380 password: ${{ secrets.CORE_DOCKERHUB_TOKEN }}357381358 - name: Build the stack382 - name: Build the stack359 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 300360384361 # 🚀 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=160366 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 }}-local368 }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>&1371 }395 }372 function is_started {396 function is_started {373 if [ "$(check_container_status)" == "true" ]; then397 if [ "$(check_container_status)" == "true" ]; then374 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"* ]];then378 echo "🚀 POLKADOT LAUNCH COMPLETE 🚀"402 echo "🚀 POLKADOT LAUNCH COMPLETE 🚀"379 return 0403 return 0380 else404 else381 echo "Message not found in logs output, repeating..."405 echo "Message not found in logs output, repeating..."382 return 1406 return 1383 fi407 fi384 else408 else385 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 1388 fi412 fi389 echo "something goes wrong"413 echo "something goes wrong"390 exit 1414 exit 1391 }415 }392 while ! is_started; do416 while ! is_started; do393 echo "Waiting for special message in log files "417 echo "Waiting for special message in log files "394 sleep 30s418 sleep 30s395 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" ]; then398 continue422 continue399 else423 else400 break424 break401 fi425 fi402 done426 done403 echo "Halting script"427 echo "Halting script"404 exit 0428 exit 0405 shell: bash429 shell: bash406430407 - name: Run XCM tests 431 - name: Run XCM tests 408 working-directory: tests432 working-directory: tests409 run: |433 run: |410 yarn install434 yarn install411 yarn add mochawesome435 yarn add mochawesome412 node scripts/readyness.js436 ./scripts/wait_for_first_block.sh413 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/418442419 - name: XCM Test Report443 - name: XCM Test Report420 uses: phoenix-actions/test-reporting@v8444 uses: phoenix-actions/test-reporting@v10421 id: test-report445 id: test-report422 if: success() || failure() # run this step even if previous step failed446 if: success() || failure() # run this step even if previous step failed423 with:447 with:.github/workflows/yarn-dev.ymldiffbeforeafterboth181819 name: ${{ matrix.network }}19 name: ${{ matrix.network }}202021 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.222223 strategy:23 strategy:24 matrix:24 matrix:34 uses: AutoModality/action-clean@v1.1.034 uses: AutoModality/action-clean@v1.1.0353536 # 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 it37 - uses: actions/checkout@v337 - uses: actions/checkout@v3.1.038 with:38 with:39 ref: ${{ github.head_ref }} #Checking out head commit39 ref: ${{ github.head_ref }} #Checking out head commit404057 - name: Build the stack57 - name: Build the stack58 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-orphans595960 - uses: actions/setup-node@v360 - uses: actions/setup-node@v3.5.161 with:61 with:62 node-version: 1662 node-version: 16636364 - name: Run tests64 - name: Run tests65 working-directory: tests65 working-directory: tests66 run: |66 run: |67 yarn install67 yarn install68 yarn add mochawesome68 yarn add mochawesome69 node scripts/readyness.js69 ./scripts/wait_for_first_block.sh70 echo "Ready to start tests"70 echo "Ready to start tests"71 yarn polkadot-types71 yarn polkadot-types72 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/757576 - name: Test Report76 - name: Test Report77 uses: phoenix-actions/test-reporting@v877 uses: phoenix-actions/test-reporting@v1078 id: test-report78 id: test-report79 if: success() || failure() # run this step even if previous step failed79 if: success() || failure() # run this step even if previous step failed80 with:80 with:98 docker system prune -f98 docker system prune -f99 docker image prune -f -a99 docker image prune -f -a100100101 # check:102 # if: always()103 # runs-on: [self-hosted-ci]104 # needs:105 # - dev_build_int_tests106107 # steps:108 # - name: Install python3109 # uses: actions/setup-python@v4110 # with:111 # python-version: '3.10'112113 # - name: Decide whether the needed jobs succeeded or failed114 # uses: re-actors/alls-green@v1.2.2115 # with:116 # jobs: ${{ toJSON(needs) }}