git.delta.rocks / unique-network / refs/commits / ab7da3bbb8df

difftreelog

add opal for xcm workflow

Konstantin Astakhov2022-08-30parent: #529b8ad.patch.diff
in: master

3 files changed

added.docker/xcm-config/launch-config-xcm-opal.jsondiffbeforeafterboth
--- /dev/null
+++ b/.docker/xcm-config/launch-config-xcm-opal.json
@@ -0,0 +1,134 @@
+{
+    "relaychain": {
+        "bin": "/polkadot/target/release/polkadot",
+        "chain": "westend-local",
+        "chainInitializer": [
+                "chainql",
+                "--tla-code=spec=import '${spec}'",
+                "5validators.jsonnet"
+            ],	
+        "nodes": [
+            {
+                "name": "alice",
+                "wsPort": 9844,
+                "rpcPort": 9843,
+                "port": 30444,
+                "flags": [
+                    "--unsafe-rpc-external",
+                    "--unsafe-ws-external",
+                    "-lparachain::candidate_validation=debug"
+                ]
+            },
+            {
+                "name": "bob",
+                "wsPort": 9855,
+                "rpcPort": 9854,
+                "port": 30555,
+                "flags": [
+                    "--unsafe-rpc-external",
+                    "--unsafe-ws-external",
+                    "-lparachain::candidate_validation=debug"
+                ]
+            },
+            {
+                "name": "charlie",
+                "wsPort": 9866,
+                "rpcPort": 9865,
+                "port": 30666,
+                "flags": [
+                    "--unsafe-rpc-external",
+                    "--unsafe-ws-external",
+                    "-lparachain::candidate_validation=debug"
+                ]
+            },
+            {
+                "name": "dave",
+                "wsPort": 9877,
+                "rpcPort": 9876,
+                "port": 30777,
+                "flags": [
+                    "--unsafe-rpc-external",
+                    "--unsafe-ws-external",
+                    "-lparachain::candidate_validation=debug"
+                ]
+            },
+            {
+                "name": "eve",
+                "wsPort": 9888,
+                "rpcPort": 9887,
+                "port": 30888,
+                "flags": [
+                    "--unsafe-rpc-external",
+                    "--unsafe-ws-external",
+                    "-lparachain::candidate_validation=debug"
+                ]
+            }
+
+        ],
+        "genesis": {
+            "runtime": {
+                "runtime_genesis_config": {
+                    "parachainsConfiguration": {
+                        "config": {
+                            "validation_upgrade_frequency": 1,
+                            "validation_upgrade_delay": 1
+                        }
+                    }
+                }
+            }
+        }
+    },
+    "parachains": [
+        {
+            "bin": "/unique-chain/target/release/unique-collator",
+            "id": "2095",
+            "balance": "1000000000000000000000000",
+            "nodes": [
+                {
+                    "port": 31200,
+                    "wsPort": 9944,
+                    "rpcPort": 9933,
+                    "name": "alice",
+                    "flags": [
+                       "--unsafe-rpc-external",
+                       "--unsafe-ws-external"
+		    ]
+                }
+            ]
+        },
+        {
+            "bin": "/cumulus/target/release/cumulus",
+            "id": "1000",
+            "chain": "westmint-local",
+            "balance": "1000000000000000000000000",
+            "nodes": [
+                {
+                    "wsPort": 9948,
+                    "port": 31204,
+                    "name": "alice",
+                    "flags": [
+                       "--unsafe-rpc-external",
+                       "--unsafe-ws-external"
+                    ]
+                }
+            ]
+        }
+    ],
+    "simpleParachains": [],
+    "hrmpChannels": [
+        {
+            "sender": 2095,
+            "recipient": 1000,
+            "maxCapacity": 8,
+            "maxMessageSize": 512
+        },
+        {
+            "sender": 1000,
+            "recipient": 2095,
+            "maxCapacity": 8,
+            "maxMessageSize": 512
+        }
+    ],
+    "finalization": false
+}
+
modified.envdiffbeforeafterboth
--- a/.env
+++ b/.env
@@ -2,10 +2,12 @@
 POLKADOT_BUILD_BRANCH=release-v0.9.27
 
 POLKADOT_MAINNET_BRANCH=release-v0.9.26
-UNIQUE_MAINNET_TAG=release-v927020
+UNIQUE_MAINNET_TAG=feature/multi-assets-redone
 
 KUSAMA_MAINNET_BRANCH=release-v0.9.26
-QUARTZ_MAINNET_TAG=release-v927020
+QUARTZ_MAINNET_TAG=feature/multi-assets-redone
+
+OPAL_MAINNET_TAG=feature/multi-assets-redone
 
 OPAL_REPLICA_FROM=wss://eu-ws-opal.unique.network:443
 QUARTZ_REPLICA_FROM=wss://eu-ws-quartz.unique.network:443
modified.github/workflows/xcm-testnet.ymldiffbeforeafterboth
before · .github/workflows/xcm-testnet.yml
1name: xcm testnet23# Controls when the action will run.4on:5 # Triggers the workflow on push or pull request events but only for the master branch6  pull_request:7    branches:8      - master9    types:10      - opened11      - reopened12      - synchronize   #commit(s) pushed to the pull request13      - ready_for_review1415  # Allows you to run this workflow manually from the Actions tab16  workflow_dispatch:1718#Define Workflow variables19env:20  REPO_URL: ${{ github.server_url }}/${{ github.repository }}2122concurrency:23  group: ${{ github.workflow }}-${{ github.ref }}24  cancel-in-progress: true2526# A workflow run is made up of one or more jobs that can run sequentially or in parallel27jobs:2829  prepare-execution-marix:3031    name: Prepare execution matrix3233    runs-on: XL234    outputs:35      matrix: ${{ steps.create_matrix.outputs.matrix }}3637    steps:3839      - name: Clean Workspace40        uses: AutoModality/action-clean@v1.1.04142      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it43      - uses: actions/checkout@v344        with:45          ref: ${{ github.head_ref }}  #Checking out head commit4647      - name: Read .env file48        uses: xom9ikk/dotenv@v1.0.24950      - name: Create Execution matrix51        uses: fabiocaccamo/create-matrix-action@v252        id: create_matrix53        with:54          matrix: |55            #            network {opal}, runtime {opal}, features {opal-runtime}, mainnet_branch {${{ env.QUARTZ_MAINNET_TAG }}}56            network {quartz}, runtime {quartz}, features {quartz-runtime}, mainnet_branch {${{ env.QUARTZ_MAINNET_TAG }}}57            network {unique}, runtime {unique}, features {unique-runtime}, mainnet_branch {${{ env.UNIQUE_MAINNET_TAG }}}5859  xcm-build:60    needs: prepare-execution-marix61    # The type of runner that the job will run on62    runs-on: [XL2]6364    timeout-minutes: 6006566    name: ${{ matrix.network }}6768    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.6970    strategy:71      matrix:72        include: ${{fromJson(needs.prepare-execution-marix.outputs.matrix)}}737475    steps:76      #- name: Skip if pull request is in Draft77        # `if: github.event.pull_request.draft == true` should be kept here, at78        # the step level, rather than at the job level. The latter is not79        # recommended because when the PR is moved from "Draft" to "Ready to80        # review" the workflow will immediately be passing (since it was skipped),81        # even though it hasn't actually ran, since it takes a few seconds for82        # the workflow to start. This is also disclosed in:83        # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/1784        # That scenario would open an opportunity for the check to be bypassed:85        # 1. Get your PR approved86        # 2. Move it to Draft87        # 3. Push whatever commits you want88        # 4. Move it to "Ready for review"; now the workflow is passing (it was89        #    skipped) and "Check reviews" is also passing (it won't be updated90        #    until the workflow is finished)91        #    if: github.event.pull_request.draft == true92        #run: exit 19394      - name: Clean Workspace95        uses: AutoModality/action-clean@v1.1.09697      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it98      - uses: actions/checkout@v399        with:100          ref: ${{ github.head_ref }}  #Checking out head commit101102      - name: Read .env file103        uses: xom9ikk/dotenv@v1.0.2104105      - name: Generate ENV related extend Dockerfile file106        uses: cuchi/jinja2-action@v1.2.0107        with:108          template: .docker/Dockerfile-xcm.j2109          output_file: .docker/Dockerfile-xcm.${{ matrix.network }}.yml110          variables: |111            RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}112            NETWORK=${{ matrix.network }}113            POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}114            POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}115            FEATURE=${{ matrix.features }}116            RUNTIME=${{ matrix.runtime }}117            BRANCH=${{ matrix.mainnet_branch }}118            ACALA_BUILD_BRANCH=${{ env.ACALA_BUILD_BRANCH }}119            MOONBEAM_BUILD_BRANCH=${{ env.MOONBEAM_BUILD_BRANCH }}120            CUMULUS_BUILD_BRANCH=${{ env.CUMULUS_BUILD_BRANCH }}121122      - name: Show build Dockerfile123        run: cat .docker/Dockerfile-xcm.${{ matrix.network }}.yml124125      - name: Show launch-config-xcm-${{ matrix.network }} configuration126        run: cat .docker/xcm-config/launch-config-xcm-${{ matrix.network }}.json127128      - name: Build the stack129        run: cd .docker/ && docker build --file ./Dockerfile-xcm.${{ matrix.network }}.yml --tag xcm-nodes-${{ matrix.network }} --tag uniquenetwork/xcm-${{ matrix.network }}-testnet-local:nightly-${{ github.head_ref }}-${{ github.sha }} --tag uniquenetwork/xcm-${{ matrix.network }}-testnet-local:latest .130131          #      - name: Collect Docker Logs132          #        if: success() || failure()133          #        uses: jwalton/gh-docker-logs@v2.2.0134          #        with:135          #          dest: './xcm-build-logs.${{ matrix.features }}'136          #          images: 'xcm-nodes-${{ matrix.network }}'137138          #      - name: Show docker logs139          #        if: success() || failure()140          #        run: cat './xcm-build-logs.${{ matrix.features }}/xcm-nodes-${{ matrix.network }}.log'141142      - name: Log in to Docker Hub143        uses: docker/login-action@v2.0.0144        with:145          username: ${{ secrets.CORE_DOCKERHUB_USERNAME }}146          password: ${{ secrets.CORE_DOCKERHUB_TOKEN }}147148      - name: Push docker version image 149        run: docker push uniquenetwork/xcm-${{ matrix.network }}-testnet-local:nightly-${{ github.head_ref }}-${{ github.sha }}150151      - name: Push docker image latest152        run: docker push uniquenetwork/xcm-${{ matrix.network }}-testnet-local:latest
after · .github/workflows/xcm-testnet.yml
1name: xcm testnet23# Controls when the action will run.4on:5 # Triggers the workflow on push or pull request events but only for the master branch6  pull_request:7    branches:8      - master9    types:10      - opened11      - reopened12      - synchronize   #commit(s) pushed to the pull request13      - ready_for_review1415  # Allows you to run this workflow manually from the Actions tab16  workflow_dispatch:1718#Define Workflow variables19env:20  REPO_URL: ${{ github.server_url }}/${{ github.repository }}2122concurrency:23  group: ${{ github.workflow }}-${{ github.ref }}24  cancel-in-progress: true2526# A workflow run is made up of one or more jobs that can run sequentially or in parallel27jobs:2829  prepare-execution-marix:3031    name: Prepare execution matrix3233    runs-on: XL234    outputs:35      matrix: ${{ steps.create_matrix.outputs.matrix }}3637    steps:3839      - name: Clean Workspace40        uses: AutoModality/action-clean@v1.1.04142      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it43      - uses: actions/checkout@v344        with:45          ref: ${{ github.head_ref }}  #Checking out head commit4647      - name: Read .env file48        uses: xom9ikk/dotenv@v1.0.24950      - name: Create Execution matrix51        uses: fabiocaccamo/create-matrix-action@v252        id: create_matrix53        with:54          matrix: |55            network {opal}, runtime {opal}, features {opal-runtime}, mainnet_branch {${{ env.QUARTZ_MAINNET_TAG }}}56            network {quartz}, runtime {quartz}, features {quartz-runtime}, mainnet_branch {${{ env.QUARTZ_MAINNET_TAG }}}57            network {unique}, runtime {unique}, features {unique-runtime}, mainnet_branch {${{ env.UNIQUE_MAINNET_TAG }}}5859  xcm-build:60    needs: prepare-execution-marix61    # The type of runner that the job will run on62    runs-on: [XL2]6364    timeout-minutes: 6006566    name: ${{ matrix.network }}6768    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.6970    strategy:71      matrix:72        include: ${{fromJson(needs.prepare-execution-marix.outputs.matrix)}}737475    steps:76      #- name: Skip if pull request is in Draft77        # `if: github.event.pull_request.draft == true` should be kept here, at78        # the step level, rather than at the job level. The latter is not79        # recommended because when the PR is moved from "Draft" to "Ready to80        # review" the workflow will immediately be passing (since it was skipped),81        # even though it hasn't actually ran, since it takes a few seconds for82        # the workflow to start. This is also disclosed in:83        # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/1784        # That scenario would open an opportunity for the check to be bypassed:85        # 1. Get your PR approved86        # 2. Move it to Draft87        # 3. Push whatever commits you want88        # 4. Move it to "Ready for review"; now the workflow is passing (it was89        #    skipped) and "Check reviews" is also passing (it won't be updated90        #    until the workflow is finished)91        #    if: github.event.pull_request.draft == true92        #run: exit 19394      - name: Clean Workspace95        uses: AutoModality/action-clean@v1.1.09697      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it98      - uses: actions/checkout@v399        with:100          ref: ${{ github.head_ref }}  #Checking out head commit101102      - name: Read .env file103        uses: xom9ikk/dotenv@v1.0.2104105      - name: Generate ENV related extend Dockerfile file106        uses: cuchi/jinja2-action@v1.2.0107        with:108          template: .docker/Dockerfile-xcm.j2109          output_file: .docker/Dockerfile-xcm.${{ matrix.network }}.yml110          variables: |111            RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}112            NETWORK=${{ matrix.network }}113            POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}114            POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}115            FEATURE=${{ matrix.features }}116            RUNTIME=${{ matrix.runtime }}117            BRANCH=${{ mainnet_branch }}118            ACALA_BUILD_BRANCH=${{ env.ACALA_BUILD_BRANCH }}119            MOONBEAM_BUILD_BRANCH=${{ env.MOONBEAM_BUILD_BRANCH }}120            CUMULUS_BUILD_BRANCH=${{ env.CUMULUS_BUILD_BRANCH }}121122      - name: Show build Dockerfile123        run: cat .docker/Dockerfile-xcm.${{ matrix.network }}.yml124125      - name: Show launch-config-xcm-${{ matrix.network }} configuration126        run: cat .docker/xcm-config/launch-config-xcm-${{ matrix.network }}.json127128      - name: Build the stack129        run: cd .docker/ && docker build --file ./Dockerfile-xcm.${{ matrix.network }}.yml --tag xcm-nodes-${{ matrix.network }} --tag uniquenetwork/xcm-${{ matrix.network }}-testnet-local:nightly-${{ mainnet_branch }}-${{ github.sha }} --tag uniquenetwork/xcm-${{ matrix.network }}-testnet-local:latest .130131          #      - name: Collect Docker Logs132          #        if: success() || failure()133          #        uses: jwalton/gh-docker-logs@v2.2.0134          #        with:135          #          dest: './xcm-build-logs.${{ matrix.features }}'136          #          images: 'xcm-nodes-${{ matrix.network }}'137138          #      - name: Show docker logs139          #        if: success() || failure()140          #        run: cat './xcm-build-logs.${{ matrix.features }}/xcm-nodes-${{ matrix.network }}.log'141142      - name: Log in to Docker Hub143        uses: docker/login-action@v2.0.0144        with:145          username: ${{ secrets.CORE_DOCKERHUB_USERNAME }}146          password: ${{ secrets.CORE_DOCKERHUB_TOKEN }}147148      - name: Push docker version image 149        run: docker push uniquenetwork/xcm-${{ matrix.network }}-testnet-local:nightly-${{ mainnet_branch }}-${{ github.sha }}150151      - name: Push docker image latest152        run: docker push uniquenetwork/xcm-${{ matrix.network }}-testnet-local:latest