difftreelog
Merge pull request #666 from UniqueNetwork/rapid-parallel-start-v2-docs
in: master
Rapid parallel start v2 docs
13 files changed
.github/workflows/ci-develop.ymldiffbeforeafterboth1# Workflow which controls starts nested workflows.1name: develop2name: develop234# Triger: PR at 'develop' branch with following types of events.3on:5on:4 pull_request:6 pull_request:5 branches: [ 'develop' ]7 branches: [ 'develop' ]6 types: [ opened, reopened, synchronize, ready_for_review, converted_to_draft ]8 types: [ opened, reopened, synchronize, ready_for_review, converted_to_draft ]7910#Concurency group for control execution queue over github runners.8concurrency:11concurrency:9 group: ${{ github.workflow }}-${{ github.head_ref }}12 group: ${{ github.workflow }}-${{ github.head_ref }}10 cancel-in-progress: true13 cancel-in-progress: true111415# List of a jobs included into Workflow.12jobs:16jobs:131714 yarn-test-dev:18 yarn-test-dev:15 if: github.event.pull_request.draft == false19 if: github.event.pull_request.draft == false # Conditional check for draft per job.16 uses: ./.github/workflows/dev-build-tests_v2.yml20 uses: ./.github/workflows/dev-build-tests_v2.yml1721182219 unit-test:23 unit-test:20 if: github.event.pull_request.draft == false24 if: github.event.pull_request.draft == false # Conditional check for draft per job.21 uses: ./.github/workflows/unit-test_v2.yml25 uses: ./.github/workflows/unit-test_v2.yml222623 canary:27 canary:24 if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'canary')) }}28 if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'canary')) }} # Conditional check for draft & labels per job.25 uses: ./.github/workflows/canary.yml29 uses: ./.github/workflows/canary.yml26 secrets: inherit # pass all secrets30 secrets: inherit # pass all secrets from initial workflow to nested273128 xcm:32 xcm:29 if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'xcm')) }}33 if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'xcm')) }} # Conditional check for draft & labels per job.30 uses: ./.github/workflows/xcm.yml34 uses: ./.github/workflows/xcm.yml31 secrets: inherit # pass all secrets35 secrets: inherit # pass all secrets from initial workflow to nested32 36 33 forkless:37 forkless:34 if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'forkless')) }}38 if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'forkless')) }} # Conditional check for draft & labels per job.35 uses: ./.github/workflows/forkless.yml39 uses: ./.github/workflows/forkless.yml36 40 37 node-only-update:41 node-only-update:38 if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'forkless')) }}42 if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'forkless')) }} # Conditional check for draft & labels per job.39 uses: ./.github/workflows/node-only-update_v2.yml43 uses: ./.github/workflows/node-only-update_v2.yml40 44 41 parallel_and_sequential_tests:45 parallel_and_sequential_tests:42 if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'para')) }}46 if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'para')) }} # Conditional check for draft & labels per job.43 uses: ./.github/workflows/node-only-update_v3.yml47 uses: ./.github/workflows/node-only-update_v3.yml444845 codestyle:49 codestyle:46 if: github.event.pull_request.draft == false50 if: github.event.pull_request.draft == false # Conditional check for draft per job.47 uses: ./.github/workflows/codestyle_v2.yml51 uses: ./.github/workflows/codestyle_v2.yml48 52 49 yarn_eslint:53 yarn_eslint:50 if: github.event.pull_request.draft == false54 if: github.event.pull_request.draft == false # Conditional check for draft per job.51 uses: ./.github/workflows/test_codestyle_v2.yml55 uses: ./.github/workflows/test_codestyle_v2.yml5256.github/workflows/ci-master.ymldiffbeforeafterboth1# Workflow which controls starts nested workflows.1name: master2name: master234# Triger: PR at 'master' branch with following types of events.3on:5on:4 pull_request:6 pull_request:5 branches: [ 'master' ]7 branches: [ 'master' ]6 types: [ opened, reopened, synchronize, ready_for_review ]8 types: [ opened, reopened, synchronize, ready_for_review ]7910#Concurency group for control execution queue over github runners.8concurrency:11concurrency:9 group: ${{ github.workflow }}-${{ github.head_ref }}12 group: ${{ github.workflow }}-${{ github.head_ref }}10 cancel-in-progress: true13 cancel-in-progress: true111415# List of a jobs included into Workflow.12jobs:16jobs:131714 unit-test:18 unit-test:222623 canary:27 canary:24 uses: ./.github/workflows/canary.yml28 uses: ./.github/workflows/canary.yml25 secrets: inherit # pass all secrets29 secrets: inherit # pass all secrets from initial workflow to nested263027 xcm:31 xcm:28 uses: ./.github/workflows/xcm.yml32 uses: ./.github/workflows/xcm.yml29 secrets: inherit # pass all secrets33 secrets: inherit # pass all secrets from initial workflow to nested303431 codestyle:35 codestyle:32 uses: ./.github/workflows/codestyle_v2.yml36 uses: ./.github/workflows/codestyle_v2.yml.github/workflows/codestyle_v2.ymldiffbeforeafterboth1# Nested workflow for checks related to formatting Rust code 21name: cargo fmt3name: cargo fmt245# Triger: only call from main workflow(re-usable workflows)3on:6on:4 workflow_call:7 workflow_call:58.github/workflows/dev-build-tests_v2.ymldiffbeforeafterboth1# Integration test in --dev mode2# https://cryptousetech.atlassian.net/browse/CI-121name: yarn test dev3name: yarn test dev243# Controls when the action will run.5# Triger: only call from main workflow(re-usable workflows)4on:6on:5 # Triggers the workflow on push or pull request events but only for the master branch6 workflow_call:7 workflow_call:7889.github/workflows/forkless-update-data_v2.ymldiffbeforeafterboth1# Controls when the action will run.1# Forkless update with data replication2# https://cryptousetech.atlassian.net/browse/CI-4234# Triger: only call from main workflow(re-usable workflows)2on:5on:3 workflow_call:6 workflow_call:47586#Define Workflow variables9# A workflow run is made up of one or more jobs that can run sequentially or in parallel7env:8 REPO_URL: ${{ github.server_url }}/${{ github.repository }}910# A workflow run is made up of one or more jobs that can run sequentially or in parallel11jobs:10jobs:121113 execution-marix:12 execution-marix:164 if: always() # run this step always163 if: always() # run this step always165 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down --volumes164 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down --volumes165 166 - name: Remove builder cache167 if: always() # run this step always168 run: |169 docker builder prune -f -a170 docker system prune -f171 docker image prune -f -a166172.github/workflows/forkless-update-nodata_v2.ymldiffbeforeafterboth11# Forkless update without data replication22# https://cryptousetech.atlassian.net/browse/CI-413# Controls when the action will run.34# Triger: only call from main workflow(re-usable workflows)4on:5on:5 workflow_call:6 workflow_call:67214 if: always() # run this step always215 if: always() # run this step always215 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down216 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down217 218 - name: Remove builder cache219 if: always() # run this step always220 run: |221 docker builder prune -f -a222 docker system prune -f223 docker image prune -f -a216224.github/workflows/forkless.ymldiffbeforeafterboth1# Intermediate Nested Workflow for calling subworkflows as a parallel tasks.21name: Nesting Forkless3name: Nesting Forkless24.github/workflows/market-test_v2.ymldiffbeforeafterboth1#https://cryptousetech.atlassian.net/browse/CI-372# Nested workflow for lunching Market e2e tests from external repository https://github.com/UniqueNetwork/market-e2e-tests31name: market api tests4name: market api tests2522 include:25 include:23 - network: "opal"26 - network: "opal"24 features: "opal-runtime"27 features: "opal-runtime"25# - network: "quartz"26# features: "quartz-runtime"27# - network: "unique"28# features: "unique-runtime"292830 steps:29 steps:31189 docker builder prune -f186 docker builder prune -f190 docker system prune -f187 docker system prune -f191192 - name: Clean Workspace193 if: always()194 uses: AutoModality/action-clean@v1.1.0195188196197.github/workflows/node-only-update_v2.ymldiffbeforeafterboth1# https://cryptousetech.atlassian.net/browse/CI-852# Node only update with restart polkadot-launch process.31name: nodes-only update4name: nodes-only update253# Controls when the action will run.6# Triger: only call from main workflow(re-usable workflows)4on:7on:5 workflow_call:8 workflow_call:6#Define Workflow variables97env:108 REPO_URL: ${{ github.server_url }}/${{ github.repository }}11# A workflow run is made up of one or more jobs that can run sequentially or in parallel910# A workflow run is made up of one or more jobs that can run sequentially or in parallel11jobs:12jobs:121313 nodes-execution-matrix:14 nodes-execution-matrix:.github/workflows/node-only-update_v3.ymldiffbeforeafterboth1# Test workflow for debug parallel and sequental tests in scope of execution time reducing.1name: Parallele tests2name: Parallele tests233# Controls when the action will run.4# Triger: only call from main workflow(re-usable workflows)4on:5on:5 workflow_call:6 workflow_call:6#Define Workflow variables7#Define Workflow variables.github/workflows/test_codestyle_v2.ymldiffbeforeafterboth1# Yarn Eslint over tests2#1name: yarn eslint3name: yarn eslint245# Triger: only call from main workflow(re-usable workflows)3on:6on:4 workflow_call:7 workflow_call:58.github/workflows/try-runtime_v2.ymldiffbeforeafterboth1# Try-runtime checks2# https://cryptousetech.atlassian.net/browse/CI-3834# Triger: only call from main workflow(re-usable workflows)1on:5on:2 workflow_call:6 workflow_call:3767 if: always() # run this step always71 if: always() # run this step always68 run: docker-compose -f ".docker/docker-compose-try-runtime.yml" -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" down72 run: docker-compose -f ".docker/docker-compose-try-runtime.yml" -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" down73 74 - name: Remove builder cache75 if: always() # run this step always76 run: |77 docker builder prune -f -a78 docker system prune -f79 docker image prune -f -a6980.github/workflows/unit-test_v2.ymldiffbeforeafterboth1# Re-Usable Workflow for lanching Unit tests1name: unit tests2name: unit tests233# Controls when the action will run.4# Controls when the action will run.5# Triger: only call from main workflow(re-usable workflows)4on:6on:5 # Triggers the workflow on push or pull request events but only for the master branch6 workflow_call:7 workflow_call:788# A workflow run is made up of one or more jobs that can run sequentially or in parallel9# A workflow run is made up of one or more jobs that can run sequentially or in parallel50 if: always() # run this step always51 if: always() # run this step always51 run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.unit.yml" down52 run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.unit.yml" down53 54 - name: Remove builder cache55 if: always() # run this step always56 run: |57 docker builder prune -f -a58 docker system prune -f59 docker image prune -f -a5260