git.delta.rocks / unique-network / refs/commits / 49760fdbb603

difftreelog

job concurency

Alexander Aksenov2022-08-17parent: #383bd14.patch.diff
in: master

7 files changed

modified.github/workflows/build-test-master.ymldiffbeforeafterboth
--- a/.github/workflows/build-test-master.yml
+++ b/.github/workflows/build-test-master.yml
@@ -27,6 +27,10 @@
     runs-on: [self-hosted-ci,large]
     timeout-minutes: 1380
 
+    concurrency: 
+      group: ${{ github.workflow }}-${{ github.ref }}
+      cancel-in-progress: true
+
     name: ${{ matrix.network }}
 
     continue-on-error: true         #Do not stop testing of matrix runs failed.
modified.github/workflows/codestyle.ymldiffbeforeafterboth
--- a/.github/workflows/codestyle.yml
+++ b/.github/workflows/codestyle.yml
@@ -13,6 +13,10 @@
 jobs:
   rustfmt:
     runs-on: self-hosted-ci
+    
+    concurrency: 
+      group: ${{ github.workflow }}-${{ github.ref }}
+      cancel-in-progress: true
 
     steps:
       - name: Skip if pull request is in Draft
@@ -47,6 +51,10 @@
   clippy:
     if: ${{ false }}
     runs-on: self-hosted-ci
+  
+    concurrency: 
+      group: ${{ github.workflow }}-${{ github.ref }}
+      cancel-in-progress: true
 
     steps:
       - name: Skip if pull request is in Draft
modified.github/workflows/fork-update-withdata.ymldiffbeforeafterboth
--- a/.github/workflows/fork-update-withdata.yml
+++ b/.github/workflows/fork-update-withdata.yml
@@ -27,6 +27,10 @@
     runs-on: [self-hosted-ci,large]
     timeout-minutes: 1380
 
+    concurrency: 
+      group: ${{ github.workflow }}-${{ github.ref }}
+      cancel-in-progress: true
+
     name: ${{ matrix.network }}
 
     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.
modified.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth
--- a/.github/workflows/forkless-update-nodata.yml
+++ b/.github/workflows/forkless-update-nodata.yml
@@ -29,6 +29,11 @@
     runs-on: self-hosted-ci
     outputs:
       matrix: ${{ steps.create_matrix.outputs.matrix }}
+
+    concurrency: 
+      group: ${{ github.workflow }}-${{ github.ref }}
+      cancel-in-progress: true
+
     steps:
       
       - name: Clean Workspace
@@ -57,6 +62,11 @@
     needs: prepare-execution-marix
     # The type of runner that the job will run on
     runs-on: [self-hosted-ci,medium]
+    
+    concurrency: 
+      group: ${{ github.workflow }}-${{ github.ref }}
+      cancel-in-progress: true
+
     timeout-minutes: 1380
 
     name: ${{ matrix.network }}
modified.github/workflows/node_build_test.ymldiffbeforeafterboth
before · .github/workflows/node_build_test.yml
1name: Yarn test dev23# 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      - develop9    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 }}2122# A workflow run is made up of one or more jobs that can run sequentially or in parallel23jobs:24  dev_build_test:25    # The type of runner that the job will run on26    runs-on: [self-hosted-ci,medium]27    timeout-minutes: 13802829    name: ${{ matrix.network }}3031    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.3233    strategy:34      matrix:35        include:36          - network: "Opal"37            features: "opal-runtime"38          - network: "Quartz"39            features: "quartz-runtime"40          - network: "Unique"41            features: "unique-runtime"4243    steps:44      - name: Skip if pull request is in Draft45        # `if: github.event.pull_request.draft == true` should be kept here, at46        # the step level, rather than at the job level. The latter is not47        # recommended because when the PR is moved from "Draft" to "Ready to48        # review" the workflow will immediately be passing (since it was skipped),49        # even though it hasn't actually ran, since it takes a few seconds for50        # the workflow to start. This is also disclosed in:51        # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/1752        # That scenario would open an opportunity for the check to be bypassed:53        # 1. Get your PR approved54        # 2. Move it to Draft55        # 3. Push whatever commits you want56        # 4. Move it to "Ready for review"; now the workflow is passing (it was57        #    skipped) and "Check reviews" is also passing (it won't be updated58        #    until the workflow is finished)59        if: github.event.pull_request.draft == true60        run: exit 16162      - name: Clean Workspace63        uses: AutoModality/action-clean@v1.1.06465      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it66      - uses: actions/checkout@v367        with:68          ref: ${{ github.head_ref }}  #Checking out head commit6970      - name: Read .env file71        uses: xom9ikk/dotenv@v1.0.27273      - name: Generate ENV related extend file for docker-compose74        uses: cuchi/jinja2-action@v1.2.075        with:76          template: .docker/docker-compose.tmp.j277          output_file: .docker/docker-compose.${{ matrix.network }}.yml78          variables: |79            REPO_URL=${{ github.server_url }}/${{ github.repository }}.git80            RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}81            POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}82            FEATURE=${{ matrix.features }}83            BRANCH=${{ github.head_ref }}8485      - name: Show build configuration86        run: cat .docker/docker-compose.${{ matrix.network }}.yml8788      - name: Build the stack89        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build9091      - uses: actions/setup-node@v392        with:93          node-version: 169495      - name: Run tests96        run: |97          cd tests98          yarn install99          yarn add mochawesome100          echo "Ready to start tests"101          node scripts/readyness.js102          NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}103        env:104          RPC_URL: http://127.0.0.1:9933/105106      - name: Test Report107        uses: phoenix-actions/test-reporting@v8108        id: test-report109        if: success() || failure()    # run this step even if previous step failed110        with:111          name: Tests ${{ matrix.network }}            # Name of the check run which will be created112          path: tests/mochawesome-report/test-*.json    # Path to test results113          reporter: mochawesome-json114          fail-on-error: 'false'115116      - name: Read output variables117        run: |118          echo "url is ${{ steps.test-report.outputs.runHtmlUrl }}"119120      - name: Stop running containers121        if: always()                   # run this step always122        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down
after · .github/workflows/node_build_test.yml
1name: Yarn test dev23# 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      - develop9    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 }}2122# A workflow run is made up of one or more jobs that can run sequentially or in parallel23jobs:24  dev_build_test:25    # The type of runner that the job will run on26    runs-on: [self-hosted-ci,medium]27    timeout-minutes: 13802829    concurrency: 30      group: ${{ github.workflow }}-${{ github.ref }}31      cancel-in-progress: true3233    name: ${{ matrix.network }}3435    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.3637    strategy:38      matrix:39        include:40          - network: "Opal"41            features: "opal-runtime"42          - network: "Quartz"43            features: "quartz-runtime"44          - network: "Unique"45            features: "unique-runtime"4647    steps:48      - name: Skip if pull request is in Draft49        # `if: github.event.pull_request.draft == true` should be kept here, at50        # the step level, rather than at the job level. The latter is not51        # recommended because when the PR is moved from "Draft" to "Ready to52        # review" the workflow will immediately be passing (since it was skipped),53        # even though it hasn't actually ran, since it takes a few seconds for54        # the workflow to start. This is also disclosed in:55        # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/1756        # That scenario would open an opportunity for the check to be bypassed:57        # 1. Get your PR approved58        # 2. Move it to Draft59        # 3. Push whatever commits you want60        # 4. Move it to "Ready for review"; now the workflow is passing (it was61        #    skipped) and "Check reviews" is also passing (it won't be updated62        #    until the workflow is finished)63        if: github.event.pull_request.draft == true64        run: exit 16566      - name: Clean Workspace67        uses: AutoModality/action-clean@v1.1.06869      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it70      - uses: actions/checkout@v371        with:72          ref: ${{ github.head_ref }}  #Checking out head commit7374      - name: Read .env file75        uses: xom9ikk/dotenv@v1.0.27677      - name: Generate ENV related extend file for docker-compose78        uses: cuchi/jinja2-action@v1.2.079        with:80          template: .docker/docker-compose.tmp.j281          output_file: .docker/docker-compose.${{ matrix.network }}.yml82          variables: |83            REPO_URL=${{ github.server_url }}/${{ github.repository }}.git84            RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}85            POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}86            FEATURE=${{ matrix.features }}87            BRANCH=${{ github.head_ref }}8889      - name: Show build configuration90        run: cat .docker/docker-compose.${{ matrix.network }}.yml9192      - name: Build the stack93        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build9495      - uses: actions/setup-node@v396        with:97          node-version: 169899      - name: Run tests100        run: |101          cd tests102          yarn install103          yarn add mochawesome104          echo "Ready to start tests"105          node scripts/readyness.js106          NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}107        env:108          RPC_URL: http://127.0.0.1:9933/109110      - name: Test Report111        uses: phoenix-actions/test-reporting@v8112        id: test-report113        if: success() || failure()    # run this step even if previous step failed114        with:115          name: Tests ${{ matrix.network }}            # Name of the check run which will be created116          path: tests/mochawesome-report/test-*.json    # Path to test results117          reporter: mochawesome-json118          fail-on-error: 'false'119120      - name: Read output variables121        run: |122          echo "url is ${{ steps.test-report.outputs.runHtmlUrl }}"123124      - name: Stop running containers125        if: always()                   # run this step always126        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down
modified.github/workflows/tests_codestyle.ymldiffbeforeafterboth
--- a/.github/workflows/tests_codestyle.yml
+++ b/.github/workflows/tests_codestyle.yml
@@ -14,6 +14,10 @@
   code_style:
     runs-on: self-hosted-ci
 
+    concurrency: 
+      group: ${{ github.workflow }}-${{ github.ref }}
+      cancel-in-progress: true
+
     steps:
       - name: Skip if pull request is in Draft
         # `if: github.event.pull_request.draft == true` should be kept here, at
modified.github/workflows/try-runtime.ymldiffbeforeafterboth
--- a/.github/workflows/try-runtime.yml
+++ b/.github/workflows/try-runtime.yml
@@ -25,6 +25,10 @@
     # The type of runner that the job will run on
     runs-on: self-hosted-ci
 
+    concurrency: 
+      group: ${{ github.workflow }}-${{ github.ref }}
+      cancel-in-progress: true
+
     name: ${{ matrix.network }} - Try-runtime
 
     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.