git.delta.rocks / unique-network / refs/commits / 4f6ef612fc53

difftreelog

Merge branch 'develop' into CI-43-try-runtime

Alexander Aksenov2022-08-18parents: #d49036f #032326e.patch.diff
in: master

10 files changed

modified.docker/Dockerfile-try-runtimediffbeforeafterboth
3434
35ARG PROFILE=release35ARG PROFILE=release
36ARG FEATURE=36ARG FEATURE=
37ARG REPO_URL=
38ARG BRANCH=
39ARG FORK_FROM=37ARG FORK_FROM=
4038
39COPY . /unique_parachain
41WORKDIR /unique_parachain40WORKDIR /unique_parachain
4241
4342
44RUN echo "Requested features: $FEATURE\n" && \43RUN echo "Requested features: $FEATURE\n" && \
45 echo "Fork from: $FORK_FROM\n" && \44 echo "Fork from: $FORK_FROM\n" && \
46 echo "Repositry URL: $REPO_URL\n" && \
47 echo "Branch: $BRANCH\n" && \
48 git clone $REPO_URL -b $BRANCH . && \
49 cargo run --features=$FEATURE --release -- try-runtime on-runtime-upgrade live --uri $FORK_FROM45 cargo run --features=$FEATURE --release -- try-runtime on-runtime-upgrade live --uri $FORK_FROM
50 46
modified.docker/docker-compose.try-runtime.j2diffbeforeafterboth
5 build:5 build:
6 args:6 args:
7 - "RUST_TOOLCHAIN={{ RUST_TOOLCHAIN }}"7 - "RUST_TOOLCHAIN={{ RUST_TOOLCHAIN }}"
8 - "BRANCH={{ BRANCH }}"
9 - "REPO_URL={{ REPO_URL }}"
10 - "FEATURE={{ FEATURE }}"8 - "FEATURE={{ FEATURE }}"
11 - "FORK_FROM={{ FORK_FROM }}"9 - "FORK_FROM={{ FORK_FROM }}"
1210
modified.github/workflows/build-test-master.ymldiffbeforeafterboth
1name: MASTER - Build & Test1name: Yarn test para
22
3# Controls when the action will run.3# Controls when the action will run.
4on:4on:
19env:19env:
20 REPO_URL: ${{ github.server_url }}/${{ github.repository }}20 REPO_URL: ${{ github.server_url }}/${{ github.repository }}
21
22concurrency:
23 group: ${{ github.workflow }}-${{ github.ref }}
24 cancel-in-progress: true
2125
22# A workflow run is made up of one or more jobs that can run sequentially or in parallel26# A workflow run is made up of one or more jobs that can run sequentially or in parallel
23jobs:27jobs:
2428
25 master-build-and-test:29 master-build-and-test:
26 # The type of runner that the job will run on30 # The type of runner that the job will run on
27 runs-on: self-hosted-ci31 runs-on: [self-hosted-ci,large]
2832 timeout-minutes: 1380
2933
30 name: ${{ matrix.network }} - Build and Test34 name: ${{ matrix.network }}
3135
32 continue-on-error: true #Do not stop testing of matrix runs failed.36 continue-on-error: true #Do not stop testing of matrix runs failed.
3337
modified.github/workflows/codestyle.ymldiffbeforeafterboth
10 - synchronize10 - synchronize
11 - ready_for_review11 - ready_for_review
12
13concurrency:
14 group: ${{ github.workflow }}-${{ github.ref }}
15 cancel-in-progress: true
1216
13jobs:17jobs:
14 rustfmt:18 rustfmt:
modified.github/workflows/fork-update-withdata.ymldiffbeforeafterboth
1name: Fork Parachain update with data1name: Upgrade replica
22
3# Controls when the action will run.3# Controls when the action will run.
4on:4on:
19env:19env:
20 REPO_URL: ${{ github.server_url }}/${{ github.repository }}20 REPO_URL: ${{ github.server_url }}/${{ github.repository }}
21
22concurrency:
23 group: ${{ github.workflow }}-${{ github.ref }}
24 cancel-in-progress: true
2125
22# A workflow run is made up of one or more jobs that can run sequentially or in parallel26# A workflow run is made up of one or more jobs that can run sequentially or in parallel
23jobs:27jobs:
2428
25 fork-update-withdata:29 fork-update-withdata:
26 # The type of runner that the job will run on30 # The type of runner that the job will run on
27 runs-on: self-hosted-ci31 runs-on: [self-hosted-ci,large]
32 timeout-minutes: 1380
2833
29 name: ${{ matrix.network }} Fork Parachain with data34 name: ${{ matrix.network }}
3035
31 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.36 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.
3237
modified.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth
1name: Forkless Parachain update with no data1name: Upgrade nodata
22
3# Controls when the action will run.3# Controls when the action will run.
4on:4on:
19env:19env:
20 REPO_URL: ${{ github.server_url }}/${{ github.repository }}20 REPO_URL: ${{ github.server_url }}/${{ github.repository }}
21
22concurrency:
23 group: ${{ github.workflow }}-${{ github.ref }}
24 cancel-in-progress: true
2125
22# A workflow run is made up of one or more jobs that can run sequentially or in parallel26# A workflow run is made up of one or more jobs that can run sequentially or in parallel
23jobs:27jobs:
56 forkless-update-nodata:61 forkless-update-nodata:
57 needs: prepare-execution-marix62 needs: prepare-execution-marix
58 # The type of runner that the job will run on63 # The type of runner that the job will run on
59 runs-on: self-hosted-ci64 runs-on: [self-hosted-ci,medium]
65
66
67
68 timeout-minutes: 1380
6069
61 name: ${{ matrix.network }} - Forkless Parachain Upgrade NO data70 name: ${{ matrix.network }}
6271
63 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.72 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.
6473
modified.github/workflows/node_build_test.ymldiffbeforeafterboth
1name: Develop - Build & test1name: Yarn test dev
22
3# Controls when the action will run.3# Controls when the action will run.
4on:4on:
19env:19env:
20 REPO_URL: ${{ github.server_url }}/${{ github.repository }}20 REPO_URL: ${{ github.server_url }}/${{ github.repository }}
21
22concurrency:
23 group: ${{ github.workflow }}-${{ github.ref }}
24 cancel-in-progress: true
2125
22# A workflow run is made up of one or more jobs that can run sequentially or in parallel26# A workflow run is made up of one or more jobs that can run sequentially or in parallel
23jobs:27jobs:
24 dev_build_test:28 dev_build_test:
25 # The type of runner that the job will run on29 # The type of runner that the job will run on
26 runs-on: self-hosted-ci30 runs-on: [self-hosted-ci,medium]
31 timeout-minutes: 1380
2732
28 name: Build Container, Spin it Up an test33 name: ${{ matrix.network }}
2934
30 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.35 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.
3136
modified.github/workflows/tests_codestyle.ymldiffbeforeafterboth
10 - synchronize10 - synchronize
11 - ready_for_review11 - ready_for_review
12
13concurrency:
14 group: ${{ github.workflow }}-${{ github.ref }}
15 cancel-in-progress: true
1216
13jobs:17jobs:
14 code_style:18 code_style:
modified.github/workflows/try-runtime.ymldiffbeforeafterboth
1name: Try Runtime1name: try-runtime
22
3# Controls when the action will run.3# Controls when the action will run.
4on:4on:
19env:19env:
20 REPO_URL: ${{ github.server_url }}/${{ github.repository }}20 REPO_URL: ${{ github.server_url }}/${{ github.repository }}
21
22concurrency:
23 group: ${{ github.workflow }}-${{ github.ref }}
24 cancel-in-progress: true
2125
22# A workflow run is made up of one or more jobs that can run sequentially or in parallel26# A workflow run is made up of one or more jobs that can run sequentially or in parallel
23jobs:27jobs:
24 try-runtime:28 try-runtime:
25 # The type of runner that the job will run on29 # The type of runner that the job will run on
26 runs-on: self-hosted-ci30 runs-on: self-hosted-ci
2731
28 name: ${{ matrix.network }} - Try-runtime32 name: ${{ matrix.network }}
2933
30 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.34 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.
3135
32 strategy:36 strategy:
33 matrix:37 matrix:
34 include:38 include:
35 - network: Opal39 - network: opal
36 features: try-runtime,opal-runtime40 features: try-runtime,opal-runtime
37 fork_from_address: wss://eu-ws-opal.unique.network:44341 fork_from_address: wss://eu-ws-opal.unique.network:443
38 - network: Quartz42 - network: quartz
39 features: try-runtime,quartz-runtime43 features: try-runtime,quartz-runtime
40 fork_from_address: wss://eu-ws-quartz.unique.network:44344 fork_from_address: wss://eu-ws-quartz.unique.network:443
41 - network: Unique45 - network: unique
42 features: try-runtime,unique-runtime46 features: try-runtime,unique-runtime
43 fork_from_address: wss://eu-ws.unique.network:44347 fork_from_address: wss://eu-ws.unique.network:443
4448
78 with:82 with:
79 template: .docker/docker-compose.try-runtime.j283 template: .docker/docker-compose.try-runtime.j2
80 output_file: .docker/docker-compose.try-runtime.${{ matrix.network }}.yml84 output_file: .docker/docker-compose.try-runtime.${{ matrix.network }}.yml
81 variables: |85 variables: |
82 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git86 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
83 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}87 FEATURE=${{ matrix.features }}
84 FEATURE=${{ matrix.features }}
85 BRANCH=${{ github.head_ref }}88 FORK_FROM=${{ matrix.fork_from_address }}
86 FORK_FROM=${{ matrix.fork_from_address }}
8789
88 - name: Show build configuration90 - name: Show build configuration
89 run: cat .docker/docker-compose.try-runtime.${{ matrix.network }}.yml91 run: cat .docker/docker-compose.try-runtime.${{ matrix.network }}.yml
90
9192
92 - name: Build the stack93 - name: Build the stack
93 run: docker-compose -f ".docker/docker-compose-try-runtime.yml" -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" up -d --build --force-recreate --timeout 30094 run: docker-compose -f ".docker/docker-compose-try-runtime.yml" -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" up -d --build --force-recreate --timeout 300 --remove-orphans
94
95
96 - name: Collect Docker Logs
97 if: success() || failure()
98 uses: jwalton/gh-docker-logs@v2.2.0
99 with:
100 dest: './try-runtime-logs.${{ matrix.features }}'
101 images: 'try-runtime'
102
103 - name: Tar logs
104 if: success() || failure()
105 run: tar cvzf ./try-runtime-logs.${{ matrix.features }}.tgz ./try-runtime-logs.${{ matrix.features }}
106
107 - name: Upload logs to GitHub
108 if: success() || failure()
109 uses: actions/upload-artifact@master
110 with:
111 name: try-runtime-logs.${{ matrix.features }}.tgz
112 path: ./try-runtime-logs.${{ matrix.features }}.tgz
11395
114 - name: Stop running containers96 - name: Stop running containers
115 if: always() # run this step always97 if: always() # run this step always
modifiednode/cli/Cargo.tomldiffbeforeafterboth
266266
267[dependencies.opal-runtime]267[dependencies.opal-runtime]
268path = '../../runtime/opal'268path = '../../runtime/opal'
269optional = true
269270
270[dependencies.up-data-structs]271[dependencies.up-data-structs]
271path = "../../primitives/data-structs"272path = "../../primitives/data-structs"
320rmrk-rpc = { path = "../../primitives/rmrk-rpc" }321rmrk-rpc = { path = "../../primitives/rmrk-rpc" }
321322
322[features]323[features]
323default = []324default = ["opal-runtime"]
324runtime-benchmarks = [325runtime-benchmarks = [
325 'unique-runtime?/runtime-benchmarks',326 'unique-runtime?/runtime-benchmarks',
326 'quartz-runtime?/runtime-benchmarks',327 'quartz-runtime?/runtime-benchmarks',
327 'opal-runtime/runtime-benchmarks',328 'opal-runtime/runtime-benchmarks',
328 'polkadot-service/runtime-benchmarks',329 'polkadot-service/runtime-benchmarks',
329]330]
330try-runtime = []331try-runtime = [
332 'unique-runtime?/try-runtime',
333 'quartz-runtime?/try-runtime',
334 'opal-runtime?/try-runtime',
335]
331336