Skip to content

Commit d7cbf18

Browse files
[FEATURE] Concurancy control for CI/CD
Changes in file .github/workflows/CI-BUILD.yml: * Added new concurancy group settings Changes in file .github/workflows/CI-CHGLOG.yml: * Added new concurancy group settings Changes in file .github/workflows/CI-DOCS.yml: * Added new concurancy group settings Changes in file .github/workflows/CI-MATs.yml: * Added new concurancy group settings Changes in file .github/workflows/Tests.yml: * Added new concurancy group settings * Added throttling limits Changes in file .github/workflows/bandit.yml: * Added new concurancy group settings Changes in file .github/workflows/codeql-analysis.yml: * Added new concurancy group settings Changes in file .github/workflows/flake8.yml: * Added new concurancy group settings Changes in file .github/workflows/makefile-lint.yml: * Added new concurancy group settings Changes in file .github/workflows/markdown-lint.yml: * Added new concurancy group settings Changes in file .github/workflows/scorecard.yml: * Added new concurancy group settings Changes in file .github/workflows/shellcheck.yml: * Added new concurancy group settings Changes in file .github/workflows/yaml-lint.yml: * Added new concurancy group settings
1 parent bcedff3 commit d7cbf18

File tree

13 files changed

+71
-1
lines changed

13 files changed

+71
-1
lines changed

.github/workflows/CI-BUILD.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on: # yamllint disable-line rule:truthy
1515
branches: ["**"] # matches any branch
1616
tags: ["v*"]
1717

18+
concurrency:
19+
group: Multicast-Builds
20+
cancel-in-progress: true
21+
1822
# Declare default permissions as none.
1923
permissions: {}
2024

.github/workflows/CI-CHGLOG.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ on: # yamllint disable-line rule:truthy
2121
types:
2222
- completed
2323

24+
concurrency:
25+
group: Multicast-Tests-Extras
26+
cancel-in-progress: false
27+
2428
# Declare default permissions as none.
2529
permissions: {}
2630

.github/workflows/CI-DOCS.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ run-name: Generate and lint documentation for ${{ github.ref_name }} by @${{ git
99
# Required Secrets:
1010
# - DOCS_BUILD_REF: Automatic
1111

12+
concurrency:
13+
group: Multicast-Documentation
14+
cancel-in-progress: false
15+
1216
# Declare default permissions as none.
1317
permissions: {}
1418

@@ -124,6 +128,7 @@ jobs:
124128
needs: [check_mats]
125129
runs-on: ${{ matrix.os }}
126130
strategy:
131+
max-parallel: 2
127132
matrix:
128133
os: [ubuntu-latest, macos-latest, windows-latest]
129134
python-version: ["${{ vars.PYTHON_OLD_MIN }}", "${{ vars.PYTHON_DEFAULT }}", "${{ vars.PYTHON_EXPERIMENTAL }}"]
@@ -200,6 +205,7 @@ jobs:
200205
actions: read
201206
contents: read
202207
pull-requests: read
208+
statuses: write
203209
checks: write
204210
needs: [check_mats, DOCS]
205211
environment: "Documentation"

.github/workflows/CI-MATs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ on: # yamllint disable-line rule:truthy
2525
types:
2626
- completed
2727

28+
concurrency:
29+
group: Multicast-M-A-Ts
30+
cancel-in-progress: false
31+
2832
# Declare default permissions as none.
2933
permissions: {}
3034

.github/workflows/Tests.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ on:
2222
types:
2323
- completed
2424

25+
concurrency:
26+
group: Multicast-Tests
27+
cancel-in-progress: false
28+
2529
# Declare default permissions as none.
2630
permissions: {}
2731

@@ -147,8 +151,12 @@ jobs:
147151
if: ${{ !cancelled() && (needs.check_mats.outputs.should_run == 'true') }}
148152
needs: [check_mats]
149153
runs-on: ${{ matrix.os }}
154+
concurrency:
155+
group: Multicast-Tests-Coverage
156+
cancel-in-progress: false
150157
timeout-minutes: 10
151158
strategy:
159+
max-parallel: 3
152160
matrix:
153161
os: [ubuntu-latest, macos-latest, windows-latest]
154162
python-version: ["${{ vars.PYTHON_OLD_MIN }}", "${{ vars.PYTHON_OLD_EXTRA }}", "${{ vars.PYTHON_DEFAULT }}", "${{ vars.PYTHON_EXPERIMENTAL }}"]
@@ -414,8 +422,12 @@ jobs:
414422
if: ${{ !cancelled() && (needs.check_mats.outputs.should_run == 'true') }}
415423
needs: [check_mats]
416424
runs-on: ${{ matrix.os }}
425+
concurrency:
426+
group: Multicast-Tests-Doctests
427+
cancel-in-progress: false
417428
timeout-minutes: 10
418429
strategy:
430+
max-parallel: 3
419431
matrix:
420432
os: [ubuntu-latest, macos-latest, windows-latest]
421433
python-version: ["${{ vars.PYTHON_OLD_MIN }}", "${{ vars.PYTHON_OLD_EXTRA }}", "${{ vars.PYTHON_DEFAULT }}", "${{ vars.PYTHON_EXPERIMENTAL }}"]
@@ -809,8 +821,12 @@ jobs:
809821
if: ${{ success() }}
810822
needs: [check_mats, COVERAGE, DOCTESTS]
811823
runs-on: ${{ matrix.os }}
824+
concurrency:
825+
group: Multicast-Tests-Integration
826+
cancel-in-progress: false
812827
timeout-minutes: 10
813828
strategy:
829+
max-parallel: 4
814830
matrix:
815831
os: [ubuntu-latest, macos-latest]
816832
python-version: ["${{ vars.PYTHON_OLD_MIN }}", "${{ vars.PYTHON_OLD_EXTRA }}", "${{ vars.PYTHON_DEFAULT }}", "${{ vars.PYTHON_EXPERIMENTAL }}"]
@@ -1297,8 +1313,12 @@ jobs:
12971313
defaults:
12981314
run:
12991315
shell: bash
1300-
timeout-minutes: 10
1316+
concurrency:
1317+
group: Multicast-Tests-Extras
1318+
cancel-in-progress: false
1319+
timeout-minutes: 5
13011320
strategy:
1321+
max-parallel: 1
13021322
matrix:
13031323
os: [ubuntu-latest]
13041324
python-version: ["${{ vars.PYTHON_OLD_MIN }}", "${{ vars.PYTHON_OLD_EXTRA }}", "${{ vars.PYTHON_DEFAULT }}", "${{ vars.PYTHON_EXPERIMENTAL }}"]

.github/workflows/bandit.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on: # yamllint disable-line rule:truthy
1818
# The branches below must be a subset of the branches above
1919
branches: ["main", "master", "stable", "feature-*", "patch-*", "HOTFIX-*"]
2020

21+
concurrency:
22+
group: Multicast-CodeQL
23+
cancel-in-progress: false
24+
2125
permissions: {}
2226

2327
jobs:

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ on: # yamllint disable-line rule:truthy
2020
schedule:
2121
- cron: '17 5 * * 1'
2222

23+
concurrency:
24+
group: Multicast-CodeQL
25+
cancel-in-progress: false
26+
2327
permissions: {}
2428

2529
jobs:

.github/workflows/flake8.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
name: Flake8 Analysis
33
on: [push, pull_request]
44

5+
concurrency:
6+
group: Multicast-CodeQL
7+
cancel-in-progress: false
8+
59
permissions: {} # Setting default permissions to none for enhanced security
610

711
jobs:

.github/workflows/makefile-lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ on: # yamllint disable-line rule:truthy
2222
pull_request:
2323
branches: ["main", "master", "stable", "feature-*", "patch-*", "HOTFIX-*"]
2424

25+
concurrency:
26+
group: Multicast-Lint
27+
cancel-in-progress: false
28+
2529
permissions: {} # Setting default permissions to none for enhanced security
2630

2731
jobs:

.github/workflows/markdown-lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on: # yamllint disable-line rule:truthy
77
pull_request:
88
branches: ["main", "master", "stable", "feature-*", "patch-*", "HOTFIX-*"]
99

10+
concurrency:
11+
group: Multicast-Lint
12+
cancel-in-progress: false
13+
1014
permissions: {} # Setting default permissions to none for enhanced security
1115

1216
jobs:

0 commit comments

Comments
 (0)