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

difftreelog

remove depricated workflows. change branch for canary tests

Alexander Aksenov2022-09-12parent: #e4516e4.patch.diff
in: master

3 files changed

deleted.github/workflows/codestyle.ymldiffbeforeafterboth
--- a/.github/workflows/codestyle.yml
+++ /dev/null
@@ -1,89 +0,0 @@
-name: cargo fmt
-
-on:
-  pull_request:
-    branches:
-      - develop
-    types:
-      - opened
-      - reopened
-      - synchronize
-      - ready_for_review
-
-concurrency: 
-  group: ${{ github.workflow }}-${{ github.head_ref }}
-  cancel-in-progress: true
-
-jobs:
-  rustfmt:
-    runs-on: self-hosted-ci
-
-    steps:
-      - name: Skip if pull request is in Draft
-        # `if: github.event.pull_request.draft == true` should be kept here, at
-        # the step level, rather than at the job level. The latter is not
-        # recommended because when the PR is moved from "Draft" to "Ready to
-        # review" the workflow will immediately be passing (since it was skipped),
-        # even though it hasn't actually ran, since it takes a few seconds for
-        # the workflow to start. This is also disclosed in:
-        # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/17
-        # That scenario would open an opportunity for the check to be bypassed:
-        # 1. Get your PR approved
-        # 2. Move it to Draft
-        # 3. Push whatever commits you want
-        # 4. Move it to "Ready for review"; now the workflow is passing (it was
-        #    skipped) and "Check reviews" is also passing (it won't be updated
-        #    until the workflow is finished)
-        if: github.event.pull_request.draft == true
-        run: exit 1
-
-      - uses: actions/checkout@v3
-      - name: Install latest nightly
-        uses: actions-rs/toolchain@v1
-        with:
-            toolchain: nightly
-            default: true
-            target: wasm32-unknown-unknown
-            components: rustfmt, clippy 
-      - name: Run cargo fmt
-        run: cargo fmt -- --check   # In that mode it returns only exit code.
-      - name: Cargo fmt state
-        if: success()
-        run: echo "Nothing to do. Command 'cargo fmt -- --check' returned exit code 0."
-
-
-  clippy:
-    if: ${{ false }}
-    runs-on: self-hosted-ci
-      
-    steps:
-      - name: Skip if pull request is in Draft
-        # `if: github.event.pull_request.draft == true` should be kept here, at
-        # the step level, rather than at the job level. The latter is not
-        # recommended because when the PR is moved from "Draft" to "Ready to
-        # review" the workflow will immediately be passing (since it was skipped),
-        # even though it hasn't actually ran, since it takes a few seconds for
-        # the workflow to start. This is also disclosed in:
-        # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/17
-        # That scenario would open an opportunity for the check to be bypassed:
-        # 1. Get your PR approved
-        # 2. Move it to Draft
-        # 3. Push whatever commits you want
-        # 4. Move it to "Ready for review"; now the workflow is passing (it was
-        #    skipped) and "Check reviews" is also passing (it won't be updated
-        #    until the workflow is finished)
-        if: github.event.pull_request.draft == true
-        run: exit 1
-        
-      - uses: actions/checkout@v3
-      - name: Install substrate dependencies
-        run: sudo apt-get install libssl-dev pkg-config libclang-dev clang
-      - name: Install latest nightly
-        uses: actions-rs/toolchain@v1
-        with:
-            toolchain: nightly
-            default: true
-            target: wasm32-unknown-unknown
-            components: rustfmt, clippy
-      - name: Run cargo check
-        run: cargo clippy -- -Dwarnings
deleted.github/workflows/market-test.ymldiffbeforeafterboth
--- a/.github/workflows/market-test.yml
+++ /dev/null
@@ -1,227 +0,0 @@
-name: market api tests
-
-# Controls when the action will run.
-on:
- # Triggers the workflow on push or pull request events but only for the master branch
-  pull_request:
-    branches:
-      - master
-    types:
-      - opened
-      - reopened
-      - synchronize   #commit(s) pushed to the pull request
-      - ready_for_review
-
-  # Allows you to run this workflow manually from the Actions tab
-  workflow_dispatch:
-
-
-concurrency:
-  group: ${{ github.workflow }}-${{ github.ref }}
-  cancel-in-progress: true
-
-# A workflow run is made up of one or more jobs that can run sequentially or in parallel
-jobs:
-
-  market_test:
-    # The type of runner that the job will run on
-    runs-on: [self-hosted-ci,large]
-    timeout-minutes: 1380
-    
-    strategy:
-      matrix:
-        include:
-          - network: "opal"
-            features: "opal-runtime"
-          - network: "quartz"
-            features: "quartz-runtime"
-          - network: "unique"
-            features: "unique-runtime"
-
-    name: draft job
-
-    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.
-
-
-    steps:
-#      - name: Skip if pull request is in Draft
-        # `if: github.event.pull_request.draft == true` should be kept here, at
-        # the step level, rather than at the job level. The latter is not
-        # recommended because when the PR is moved from "Draft" to "Ready to
-        # review" the workflow will immediately be passing (since it was skipped),
-        # even though it hasn't actually ran, since it takes a few seconds for
-        # the workflow to start. This is also disclosed in:
-        # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/17
-        # That scenario would open an opportunity for the check to be bypassed:
-        # 1. Get your PR approved
-        # 2. Move it to Draft
-        # 3. Push whatever commits you want
-        # 4. Move it to "Ready for review"; now the workflow is passing (it was
-        #    skipped) and "Check reviews" is also passing (it won't be updated
-        #    until the workflow is finished)
-#        if: github.event.pull_request.draft == true
-#        run: exit 1
-
-      - name: Clean Workspace
-        uses: AutoModality/action-clean@v1.1.0
-
-      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
-      - name: Checkout master repo
-        uses: actions/checkout@master
-        with:
-          ref: ${{ github.head_ref }}  #Checking out head commit
-
-      - name: Checkout Market e2e tests
-        uses: actions/checkout@v3
-        with:
-          repository: 'UniqueNetwork/market-e2e-tests'
-          ssh-key: '${{ secrets.GH_PAT }}'
-          path: 'qa-tests'
-          ref: 'QA-65_maxandreev'
-
-      - name: Read .env file
-        uses: xom9ikk/dotenv@v1.0.2
-      
-      - name: Copy qa-tests/.env.example to qa-tests/.env
-        working-directory: qa-tests
-        run: cp .env.docker .env
-
-      - name: Show content of qa-test/.env
-        working-directory: qa-tests
-        run: cat .env
-
-      - name: Read qa -test .env file
-        uses: xom9ikk/dotenv@v1.0.2
-        with:
-          path: qa-tests/
-        
-      - name: Generate ENV related extend file for docker-compose
-        uses: cuchi/jinja2-action@v1.2.0
-        with:
-          template: qa-tests/.docker/docker-compose.tmp-market.j2
-          output_file: qa-tests/.docker/docker-compose.${{ matrix.network }}.yml
-          variables: |
-            REPO_URL=${{ github.server_url }}/${{ github.repository }}.git
-            RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
-            POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}
-            FEATURE=${{ matrix.features }}
-            BRANCH=${{ github.head_ref }}
-
-
-      - name: Show build configuration
-        working-directory: qa-tests
-        run: cat .docker/docker-compose.${{ matrix.network }}.yml
-
-      - name: Start node-parachain
-        working-directory: qa-tests
-        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 
-
-      - name: Start nonce-app
-        working-directory: qa-tests
-        run: docker-compose -f ".docker/docker-compose.market.yml" up -d --build --remove-orphans --force-recreate nonce-app 
-     
-      - uses: actions/setup-node@v3
-        with:
-          node-version: 16
-
-      - name: Setup TypeScript
-        working-directory: qa-tests
-        run: |
-          npm install
-          npm install -g ts-node
-
-      - name: Copy qa-tests/.env.example to qa-tests/.env
-        working-directory: qa-tests
-        run: | 
-          rm -rf .env
-          cp .env.example .env
-      
-     
-      - name: Show content of qa-test/.env
-        working-directory: qa-tests
-        run: cat .env
-
-
-      - name: Read qa -test .env file
-        uses: xom9ikk/dotenv@v1.0.2
-        with:
-          path: qa-tests/
-
-      - name: Generate accounts
-        working-directory: qa-tests
-        run: ts-node ./src/scripts/create-market-accounts.ts
-
-      - name: Deploy contracts
-        run: |
-          cd qa-tests
-          ts-node ./src/scripts/deploy-contract.ts
-
-      - name: Import test data
-        working-directory: qa-tests
-        run: ts-node ./src/scripts/create-test-collections.ts
-
-      - name: Show content of qa-test .env
-        working-directory: qa-tests
-        run: cat .env
-
-      - name: Copy qa-tests/.env.example to qa-tests/.env
-        working-directory: qa-tests
-        run: |
-          rm -rf .env.docker
-          cp .env .env.docker
-          sed -i '/UNIQUE_WS_ENDPOINT/c UNIQUE_WS_ENDPOINT=ws://node-parachain:9944' .env.docker
-
-      - name: Read qa -test .env file
-        uses: xom9ikk/dotenv@v1.0.2
-        with:
-          path: qa-tests/
-
-      - name: local-market:start
-        run: docker-compose -f "qa-tests/.docker/docker-compose.market.yml" -f "qa-tests/.docker/docker-compose.${{ matrix.network }}.yml" up -d --build
-
-      - name: Wait for market readyness
-        working-directory: qa-tests
-        run: src/scripts/wait-market-ready.sh
-        shell: bash
-
-      - name: Install dependecies
-        working-directory: qa-tests
-        run: |
-          npm ci
-          npm install -D @playwright/test
-          npx playwright install-deps
-          npx playwright install
-          
-      - name: 
-        working-directory: qa-tests
-        run: |
-          npx playwright test --workers=8 --quiet .*.api.test.ts --reporter=github --config playwright.config.ts
-
-      - name: Show env variables
-        if: success() || failure()
-        run: printenv
-
-      - name: look up for report
-        if: success() || failure()
-        run: |
-          ls -la 
-          ls -la qa-tests/
-
-
-      - name: Stop running containers
-        if: always()                   # run this step always
-        run: docker-compose -f "qa-tests/.docker/docker-compose.market.yml" -f "qa-tests/.docker/docker-compose.${{ matrix.network }}.yml" down --volumes
-
-      - name: Remove builder cache
-        if: always()                   # run this step always
-        run: |
-          docker builder prune -f
-          docker system prune -f
-
-      - name: Clean Workspace
-        if: always()
-        uses: AutoModality/action-clean@v1.1.0
-
-
-
-
modified.github/workflows/market-test_v2.ymldiffbeforeafterboth
before · .github/workflows/market-test_v2.yml
1name: market api tests23# Controls when the action will run.4on:5  workflow_call:678# A workflow run is made up of one or more jobs that can run sequentially or in parallel9jobs:1011  market_test:12    # The type of runner that the job will run on13    runs-on: [self-hosted-ci,large]14    timeout-minutes: 13801516    name: ${{ matrix.network }}    1718    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.19    20    strategy:21      matrix:22        include:23          - network: "opal"24            features: "opal-runtime"25#          - network: "quartz"26#            features: "quartz-runtime"27#          - network: "unique"28#            features: "unique-runtime"2930    steps:313233      - name: Clean Workspace34        uses: AutoModality/action-clean@v1.1.03536      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it37      - name: Checkout master repo38        uses: actions/checkout@master39        with:40          ref: ${{ github.head_ref }}  #Checking out head commit4142      - name: Checkout Market e2e tests43        uses: actions/checkout@v344        with:45          repository: 'UniqueNetwork/market-e2e-tests'46          ssh-key: ${{ secrets.GH_PAT }}47          path: 'qa-tests'48          ref: 'ci_test_v2'4950      - name: Read .env file51        uses: xom9ikk/dotenv@v1.0.252      53      - name: Copy qa-tests/.env.example to qa-tests/.env54        working-directory: qa-tests55        run: cp .env.docker .env56        57      - name: Generate ENV related extend file for docker-compose58        uses: cuchi/jinja2-action@v1.2.059        with:60          template: qa-tests/.docker/docker-compose.tmp-market.j261          output_file: qa-tests/.docker/docker-compose.${{ matrix.network }}.yml62          variables: |63            REPO_URL=${{ github.server_url }}/${{ github.repository }}.git64            RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}65            POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}66            FEATURE=${{ matrix.features }}67            BRANCH=${{ github.head_ref }}686970      - name: Show build configuration71        working-directory: qa-tests72        run: cat .docker/docker-compose.${{ matrix.network }}.yml7374      - name: Start node-parachain75        working-directory: qa-tests76        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 77     78      - uses: actions/setup-node@v379        with:80          node-version: 16.178182      - name: Setup TypeScript83        working-directory: qa-tests84        run: |85          npm install -g ts-node86          npm install8788      - name: Copy qa-tests/.env.docker to qa-tests/.env89        working-directory: qa-tests90        run: | 91          rm -rf .env92          cp .env.docker .env9394      - name: Wait for chain up and running95        working-directory: tests96        run: |97          yarn install98          node scripts/readyness.js99          echo "Ready to start tests"100101      - name: Show content of .env file and Generate accounts102        working-directory: qa-tests103        run: |104          cat .env105          ts-node ./src/scripts/create-market-accounts.ts106107      - name: Copy qa-tests/.env to qa-tests/.env.docker108        working-directory: qa-tests109        run: | 110          rm -rf .env.docker111          cp .env .env.docker112113      - name: Get chain logs114        if: always()                   # run this step always115        run: |116          docker exec node-parachain cat /polkadot-launch/9944.log117          docker exec node-parachain cat /polkadot-launch/9945.log118          docker exec node-parachain cat /polkadot-launch/alice.log119          docker exec node-parachain cat /polkadot-launch/eve.log120          docker exec node-parachain cat /polkadot-launch/dave.log121          docker exec node-parachain cat /polkadot-launch/charlie.log122   123      - name: Deploy contracts124        run: |125          cd qa-tests126          ts-node ./src/scripts/deploy-contract.ts127128      - name: Timeout for debug129        if: failure()130        run: sleep 300s131132      - name: Import test data133        working-directory: qa-tests134        run: ts-node ./src/scripts/create-test-collections.ts135136      - name: Show content of qa-test .env137        working-directory: qa-tests138        run: cat .env139140      - name: Read qa -test .env file Before market start141        uses: xom9ikk/dotenv@v1.0.2142        with:143          path: qa-tests/144145146      - name: local-market:start147        run: docker-compose -f "qa-tests/.docker/docker-compose.market.yml" -f "qa-tests/.docker/docker-compose.${{ matrix.network }}.yml" up -d --build148149      - name: Wait for market readyness150        working-directory: qa-tests151        run: src/scripts/wait-market-ready.sh152        shell: bash153154      - name: Install dependecies155        working-directory: qa-tests156        run: |157          npm ci158          npm install -D @playwright/test159          npx playwright install-deps160          npx playwright install161162      - name: Show content of qa-test .env163        working-directory: qa-tests164        run: cat .env165          166      - name: Test API interface167        working-directory: qa-tests168        run: |169          npx playwright test --workers=8 --quiet .*.api.test.ts --reporter=github --config playwright.config.ts170171      - name: Timeout for debug172        if: failure()173        run: sleep 300s174175      - name: Stop running containers176        if: always()                   # run this step always177        run: docker-compose -f "qa-tests/.docker/docker-compose.market.yml" -f "qa-tests/.docker/docker-compose.${{ matrix.network }}.yml" down --volumes178#        run: docker-compose -f "qa-tests/.docker/docker-compose.market.yml" -f "qa-tests/.docker/docker-compose.${{ matrix.network }}.yml" down179180      - name: Remove builder cache181        if: always()                   # run this step always182        run: |183          docker builder prune -f184          docker system prune -f185186      - name: Clean Workspace187        if: always()188        uses: AutoModality/action-clean@v1.1.0189190191192
after · .github/workflows/market-test_v2.yml
1name: market api tests23# Controls when the action will run.4on:5  workflow_call:678# A workflow run is made up of one or more jobs that can run sequentially or in parallel9jobs:1011  market_test:12    # The type of runner that the job will run on13    runs-on: [self-hosted-ci,large]14    timeout-minutes: 13801516    name: ${{ matrix.network }}    1718    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.19    20    strategy:21      matrix:22        include:23          - network: "opal"24            features: "opal-runtime"25          - network: "quartz"26            features: "quartz-runtime"27          - network: "unique"28            features: "unique-runtime"2930    steps:313233      - name: Clean Workspace34        uses: AutoModality/action-clean@v1.1.03536      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it37      - name: Checkout master repo38        uses: actions/checkout@master39        with:40          ref: ${{ github.head_ref }}  #Checking out head commit4142      - name: Checkout Market e2e tests43        uses: actions/checkout@v344        with:45          repository: 'UniqueNetwork/market-e2e-tests'46          ssh-key: ${{ secrets.GH_PAT }}47          path: 'qa-tests'48          ref: 'master'4950      - name: Read .env file51        uses: xom9ikk/dotenv@v1.0.252      53      - name: Copy qa-tests/.env.example to qa-tests/.env54        working-directory: qa-tests55        run: cp .env.docker .env56        57      - name: Generate ENV related extend file for docker-compose58        uses: cuchi/jinja2-action@v1.2.059        with:60          template: qa-tests/.docker/docker-compose.tmp-market.j261          output_file: qa-tests/.docker/docker-compose.${{ matrix.network }}.yml62          variables: |63            REPO_URL=${{ github.server_url }}/${{ github.repository }}.git64            RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}65            POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}66            FEATURE=${{ matrix.features }}67            BRANCH=${{ github.head_ref }}686970      - name: Show build configuration71        working-directory: qa-tests72        run: cat .docker/docker-compose.${{ matrix.network }}.yml7374      - name: Start node-parachain75        working-directory: qa-tests76        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 77     78      - uses: actions/setup-node@v379        with:80          node-version: 16.178182      - name: Setup TypeScript83        working-directory: qa-tests84        run: |85          npm install -g ts-node86          npm install8788      - name: Copy qa-tests/.env.docker to qa-tests/.env89        working-directory: qa-tests90        run: | 91          rm -rf .env92          cp .env.docker .env9394      - name: Wait for chain up and running95        working-directory: tests96        run: |97          yarn install98          node scripts/readyness.js99          echo "Ready to start tests"100101      - name: Show content of .env file and Generate accounts102        working-directory: qa-tests103        run: |104          cat .env105          ts-node ./src/scripts/create-market-accounts.ts106107      - name: Copy qa-tests/.env to qa-tests/.env.docker108        working-directory: qa-tests109        run: | 110          rm -rf .env.docker111          cp .env .env.docker112113      - name: Get chain logs114        if: always()                   # run this step always115        run: |116          docker exec node-parachain cat /polkadot-launch/9944.log117          docker exec node-parachain cat /polkadot-launch/9945.log118          docker exec node-parachain cat /polkadot-launch/alice.log119          docker exec node-parachain cat /polkadot-launch/eve.log120          docker exec node-parachain cat /polkadot-launch/dave.log121          docker exec node-parachain cat /polkadot-launch/charlie.log122   123      - name: Deploy contracts124        run: |125          cd qa-tests126          ts-node ./src/scripts/deploy-contract.ts127128      - name: Timeout for debug129        if: failure()130        run: sleep 300s131132      - name: Import test data133        working-directory: qa-tests134        run: ts-node ./src/scripts/create-test-collections.ts135136      - name: Show content of qa-test .env137        working-directory: qa-tests138        run: cat .env139140      - name: Read qa -test .env file Before market start141        uses: xom9ikk/dotenv@v1.0.2142        with:143          path: qa-tests/144145146      - name: local-market:start147        run: docker-compose -f "qa-tests/.docker/docker-compose.market.yml" -f "qa-tests/.docker/docker-compose.${{ matrix.network }}.yml" up -d --build148149      - name: Wait for market readyness150        working-directory: qa-tests151        run: src/scripts/wait-market-ready.sh152        shell: bash153154      - name: Install dependecies155        working-directory: qa-tests156        run: |157          npm ci158          npm install -D @playwright/test159          npx playwright install-deps160          npx playwright install161162      - name: Show content of qa-test .env163        working-directory: qa-tests164        run: cat .env165          166      - name: Test API interface167        working-directory: qa-tests168        run: |169          npx playwright test --workers=8 --quiet .*.api.test.ts --reporter=github --config playwright.config.ts170171      - name: Timeout for debug172        if: failure()173        run: sleep 300s174175      - name: Stop running containers176        if: always()                   # run this step always177        run: docker-compose -f "qa-tests/.docker/docker-compose.market.yml" -f "qa-tests/.docker/docker-compose.${{ matrix.network }}.yml" down --volumes178179      - name: Remove builder cache180        if: always()                   # run this step always181        run: |182          docker builder prune -f183          docker system prune -f184185      - name: Clean Workspace186        if: always()187        uses: AutoModality/action-clean@v1.1.0188189190191