difftreelog
change concurency scope
in: master
7 files changed
.github/workflows/build-test-master.ymldiffbeforeafterboth1name: Yarn test para23# 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 }}2122# A workflow run is made up of one or more jobs that can run sequentially or in parallel23jobs:2425 master-build-and-test:26 # The type of runner that the job will run on27 runs-on: [self-hosted-ci,large]28 timeout-minutes: 13802930 concurrency: 31 group: ${{ github.workflow }}-${{ github.ref }}32 cancel-in-progress: true3334 name: ${{ matrix.network }}3536 continue-on-error: true #Do not stop testing of matrix runs failed.3738 strategy:39 matrix:40 include:41 - network: "Opal"42 features: "opal-runtime"43 - network: "Quartz"44 features: "quartz-runtime"45 - network: "Unique"46 features: "unique-runtime"4748 steps:49 - name: Skip if pull request is in Draft50 # `if: github.event.pull_request.draft == true` should be kept here, at51 # the step level, rather than at the job level. The latter is not52 # recommended because when the PR is moved from "Draft" to "Ready to53 # review" the workflow will immediately be passing (since it was skipped),54 # even though it hasn't actually ran, since it takes a few seconds for55 # the workflow to start. This is also disclosed in:56 # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/1757 # That scenario would open an opportunity for the check to be bypassed:58 # 1. Get your PR approved59 # 2. Move it to Draft60 # 3. Push whatever commits you want61 # 4. Move it to "Ready for review"; now the workflow is passing (it was62 # skipped) and "Check reviews" is also passing (it won't be updated63 # until the workflow is finished)64 if: github.event.pull_request.draft == true65 run: exit 16667 - name: Clean Workspace68 uses: AutoModality/action-clean@v1.1.06970 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it71 - uses: actions/checkout@v372 with:73 ref: ${{ github.head_ref }}7475 - name: Read .env file76 uses: xom9ikk/dotenv@v1.0.27778 - name: Generate ENV related extend file for docker-compose79 uses: cuchi/jinja2-action@v1.2.080 with:81 template: .docker/docker-compose.tmp-master.j282 output_file: .docker/docker-compose.${{ matrix.network }}.yml83 variables: |84 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git85 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}86 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}87 FEATURE=${{ matrix.features }}88 BRANCH=${{ github.head_ref }}8990 - name: Show build configuration91 run: cat .docker/docker-compose.${{ matrix.network }}.yml9293 - name: Build the stack94 run: docker-compose -f ".docker/docker-compose-master.yml" -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build9596 - uses: actions/setup-node@v397 with:98 node-version: 1699100 - name: Run tests101 run: |102 cd tests103 yarn install104 yarn add mochawesome105 echo "Ready to start tests"106 node scripts/readyness.js107 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}108 env:109 RPC_URL: http://127.0.0.1:9933/110111 - name: Test Report112 uses: phoenix-actions/test-reporting@v8113 id: test-report114 if: success() || failure() # run this step even if previous step failed115 with:116 name: Tests ${{ matrix.network }} # Name of the check run which will be created117 path: tests/mochawesome-report/test-*.json # Path to test results118 reporter: mochawesome-json119 fail-on-error: 'false'120121 - name: Read output variables122 run: |123 echo "url is ${{ steps.test-report.outputs.runHtmlUrl }}"124125 - name: Stop running containers126 if: always() # run this step always127 run: docker-compose -f ".docker/docker-compose-master.yml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down.github/workflows/codestyle.ymldiffbeforeafterboth--- a/.github/workflows/codestyle.yml
+++ b/.github/workflows/codestyle.yml
@@ -10,13 +10,13 @@
- synchronize
- ready_for_review
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
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
@@ -51,11 +51,7 @@
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
# `if: github.event.pull_request.draft == true` should be kept here, at
.github/workflows/fork-update-withdata.ymldiffbeforeafterboth--- a/.github/workflows/fork-update-withdata.yml
+++ b/.github/workflows/fork-update-withdata.yml
@@ -19,6 +19,10 @@
env:
REPO_URL: ${{ github.server_url }}/${{ github.repository }}
+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:
@@ -26,10 +30,6 @@
# The type of runner that the job will run on
runs-on: [self-hosted-ci,large]
timeout-minutes: 1380
-
- concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
name: ${{ matrix.network }}
.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth--- a/.github/workflows/forkless-update-nodata.yml
+++ b/.github/workflows/forkless-update-nodata.yml
@@ -19,6 +19,10 @@
env:
REPO_URL: ${{ github.server_url }}/${{ github.repository }}
+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:
@@ -29,10 +33,6 @@
runs-on: self-hosted-ci
outputs:
matrix: ${{ steps.create_matrix.outputs.matrix }}
-
- concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
steps:
@@ -63,9 +63,7 @@
# 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
.github/workflows/node_build_test.ymldiffbeforeafterboth--- a/.github/workflows/node_build_test.yml
+++ b/.github/workflows/node_build_test.yml
@@ -19,16 +19,16 @@
env:
REPO_URL: ${{ github.server_url }}/${{ github.repository }}
+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:
dev_build_test:
# The type of runner that the job will run on
runs-on: [self-hosted-ci,medium]
timeout-minutes: 1380
-
- concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
name: ${{ matrix.network }}
.github/workflows/tests_codestyle.ymldiffbeforeafterboth--- a/.github/workflows/tests_codestyle.yml
+++ b/.github/workflows/tests_codestyle.yml
@@ -10,13 +10,13 @@
- synchronize
- ready_for_review
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
jobs:
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
.github/workflows/try-runtime.ymldiffbeforeafterboth--- a/.github/workflows/try-runtime.yml
+++ b/.github/workflows/try-runtime.yml
@@ -19,17 +19,17 @@
env:
REPO_URL: ${{ github.server_url }}/${{ github.repository }}
+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:
try-runtime:
# 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
+
+ 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.