git.delta.rocks / unique-network / refs/commits / 3cddb472af6f

difftreelog

Merge pull request #666 from UniqueNetwork/rapid-parallel-start-v2-docs

Alex2022-10-19parents: #a63e642 #8d84680.patch.diff
in: master
Rapid parallel start v2 docs

13 files changed

modified.github/workflows/ci-develop.ymldiffbeforeafterboth
1# Workflow which controls starts nested workflows.
1name: develop2name: develop
23
4# 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 ]
79
10#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: true
1114
15# List of a jobs included into Workflow.
12jobs:16jobs:
1317
14 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.yml
1721
1822
19 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.yml
2226
23 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.yml
26 secrets: inherit # pass all secrets30 secrets: inherit # pass all secrets from initial workflow to nested
2731
28 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.yml
31 secrets: inherit # pass all secrets35 secrets: inherit # pass all secrets from initial workflow to nested
32 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.yml
36 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.yml
40 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.yml
4448
45 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.yml
48 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.yml
5256
modified.github/workflows/ci-master.ymldiffbeforeafterboth
1# Workflow which controls starts nested workflows.
1name: master2name: master
23
4# 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 ]
79
10#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: true
1114
15# List of a jobs included into Workflow.
12jobs:16jobs:
1317
14 unit-test:18 unit-test:
2226
23 canary:27 canary:
24 uses: ./.github/workflows/canary.yml28 uses: ./.github/workflows/canary.yml
25 secrets: inherit # pass all secrets29 secrets: inherit # pass all secrets from initial workflow to nested
2630
27 xcm:31 xcm:
28 uses: ./.github/workflows/xcm.yml32 uses: ./.github/workflows/xcm.yml
29 secrets: inherit # pass all secrets33 secrets: inherit # pass all secrets from initial workflow to nested
3034
31 codestyle:35 codestyle:
32 uses: ./.github/workflows/codestyle_v2.yml36 uses: ./.github/workflows/codestyle_v2.yml
modified.github/workflows/codestyle_v2.ymldiffbeforeafterboth
1# Nested workflow for checks related to formatting Rust code
2
1name: cargo fmt3name: cargo fmt
24
5# Triger: only call from main workflow(re-usable workflows)
3on:6on:
4 workflow_call:7 workflow_call:
58
modified.github/workflows/dev-build-tests_v2.ymldiffbeforeafterboth
1# Integration test in --dev mode
2# https://cryptousetech.atlassian.net/browse/CI-12
1name: yarn test dev3name: yarn test dev
24
3# 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 branch
6 workflow_call:7 workflow_call:
78
89
modified.github/workflows/forkless-update-data_v2.ymldiffbeforeafterboth
1# Controls when the action will run.1# Forkless update with data replication
2# https://cryptousetech.atlassian.net/browse/CI-42
3
4# Triger: only call from main workflow(re-usable workflows)
2on:5on:
3 workflow_call:6 workflow_call:
47
58
6#Define Workflow variables9# A workflow run is made up of one or more jobs that can run sequentially or in parallel
7env:
8 REPO_URL: ${{ github.server_url }}/${{ github.repository }}
9
10# A workflow run is made up of one or more jobs that can run sequentially or in parallel
11jobs:10jobs:
1211
13 execution-marix:12 execution-marix:
164 if: always() # run this step always163 if: always() # run this step always
165 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 --volumes
165
166 - name: Remove builder cache
167 if: always() # run this step always
168 run: |
169 docker builder prune -f -a
170 docker system prune -f
171 docker image prune -f -a
166172
modified.github/workflows/forkless-update-nodata_v2.ymldiffbeforeafterboth
11# Forkless update without data replication
22# https://cryptousetech.atlassian.net/browse/CI-41
3# Controls when the action will run.3
4# Triger: only call from main workflow(re-usable workflows)
4on:5on:
5 workflow_call:6 workflow_call:
67
214 if: always() # run this step always215 if: always() # run this step always
215 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" down
217
218 - name: Remove builder cache
219 if: always() # run this step always
220 run: |
221 docker builder prune -f -a
222 docker system prune -f
223 docker image prune -f -a
216224
modified.github/workflows/forkless.ymldiffbeforeafterboth
1# Intermediate Nested Workflow for calling subworkflows as a parallel tasks.
2
1name: Nesting Forkless3name: Nesting Forkless
24
modified.github/workflows/market-test_v2.ymldiffbeforeafterboth
1#https://cryptousetech.atlassian.net/browse/CI-37
2# Nested workflow for lunching Market e2e tests from external repository https://github.com/UniqueNetwork/market-e2e-tests
3
1name: market api tests4name: market api tests
25
22 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"
2928
30 steps:29 steps:
31
189 docker builder prune -f186 docker builder prune -f
190 docker system prune -f187 docker system prune -f
191
192 - name: Clean Workspace
193 if: always()
194 uses: AutoModality/action-clean@v1.1.0
195188
196
197
modified.github/workflows/node-only-update_v2.ymldiffbeforeafterboth
1# https://cryptousetech.atlassian.net/browse/CI-85
2# Node only update with restart polkadot-launch process.
3
1name: nodes-only update4name: nodes-only update
25
3# 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 variables9
7env:10
8 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 parallel
9
10# A workflow run is made up of one or more jobs that can run sequentially or in parallel
11jobs:12jobs:
1213
13 nodes-execution-matrix:14 nodes-execution-matrix:
modified.github/workflows/node-only-update_v3.ymldiffbeforeafterboth
1# Test workflow for debug parallel and sequental tests in scope of execution time reducing.
1name: Parallele tests2name: Parallele tests
23
3# 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
modified.github/workflows/test_codestyle_v2.ymldiffbeforeafterboth
1# Yarn Eslint over tests
2#
1name: yarn eslint3name: yarn eslint
24
5# Triger: only call from main workflow(re-usable workflows)
3on:6on:
4 workflow_call:7 workflow_call:
58
modified.github/workflows/try-runtime_v2.ymldiffbeforeafterboth
1# Try-runtime checks
2# https://cryptousetech.atlassian.net/browse/CI-38
3
4# Triger: only call from main workflow(re-usable workflows)
1on:5on:
2 workflow_call:6 workflow_call:
37
67 if: always() # run this step always71 if: always() # run this step always
68 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" down
73
74 - name: Remove builder cache
75 if: always() # run this step always
76 run: |
77 docker builder prune -f -a
78 docker system prune -f
79 docker image prune -f -a
6980
modified.github/workflows/unit-test_v2.ymldiffbeforeafterboth
1# Re-Usable Workflow for lanching Unit tests
1name: unit tests2name: unit tests
23
3# 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 branch
6 workflow_call:7 workflow_call:
78
8# 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 parallel
50 if: always() # run this step always51 if: always() # run this step always
51 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" down
53
54 - name: Remove builder cache
55 if: always() # run this step always
56 run: |
57 docker builder prune -f -a
58 docker system prune -f
59 docker image prune -f -a
5260