Skip to content

Commit b360464

Browse files
danielfrankcomVictor Tsang
authored andcommitted
Limit cluster management job concurrency (#149)
Co-authored-by: Daniel Frankcom <frankcom@amazon.com>
1 parent c0aebf7 commit b360464

8 files changed

Lines changed: 48 additions & 0 deletions

.github/workflows/cpp-cm-integ-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ jobs:
7878
WITNESS_REGION: us-west-2
7979
run: |
8080
./example
81+
concurrency:
82+
# Ensure only 1 job mutates clusters in this account at a time.
83+
group: ${{ github.workflow }}
8184

8285
cleanup:
8386
if: always()
@@ -90,3 +93,6 @@ jobs:
9093
permissions:
9194
id-token: write
9295
contents: read
96+
concurrency:
97+
# Ensure only 1 job mutates clusters in this account at a time.
98+
group: ${{ github.workflow }}

.github/workflows/dotnet-cm-integ-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ jobs:
4848
actions: read
4949
checks: write
5050
pull-requests: write
51+
concurrency:
52+
# Ensure only 1 job mutates clusters in this account at a time.
53+
group: ${{ github.workflow }}
5154

5255
steps:
5356
- name: Checkout code
@@ -80,3 +83,6 @@ jobs:
8083
permissions:
8184
id-token: write
8285
contents: read
86+
concurrency:
87+
# Ensure only 1 job mutates clusters in this account at a time.
88+
group: ${{ github.workflow }}

.github/workflows/go-cm-integ-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ jobs:
9090
run: |
9191
go env -w GOPROXY=direct
9292
go test
93+
concurrency:
94+
# Ensure only 1 job mutates clusters in this account at a time.
95+
group: ${{ github.workflow }}
9396

9497
cleanup:
9598
if: always()
@@ -102,3 +105,6 @@ jobs:
102105
permissions:
103106
id-token: write
104107
contents: read
108+
concurrency:
109+
# Ensure only 1 job mutates clusters in this account at a time.
110+
group: ${{ github.workflow }}

.github/workflows/java-cm-integ-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ jobs:
5757
mvn initialize
5858
mvn clean compile assembly:single
5959
mvn test
60+
concurrency:
61+
# Ensure only 1 job mutates clusters in this account at a time.
62+
group: ${{ github.workflow }}
6063

6164
cleanup:
6265
if: always()
@@ -69,3 +72,6 @@ jobs:
6972
permissions:
7073
id-token: write
7174
contents: read
75+
concurrency:
76+
# Ensure only 1 job mutates clusters in this account at a time.
77+
group: ${{ github.workflow }}

.github/workflows/javascript-cm-integ-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ jobs:
5252
run: |
5353
npm install
5454
npm test
55+
concurrency:
56+
# Ensure only 1 job mutates clusters in this account at a time.
57+
group: ${{ github.workflow }}
5558

5659
cleanup:
5760
if: always()
@@ -64,3 +67,6 @@ jobs:
6467
permissions:
6568
id-token: write
6669
contents: read
70+
concurrency:
71+
# Ensure only 1 job mutates clusters in this account at a time.
72+
group: ${{ github.workflow }}

.github/workflows/python-cm-integ-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ jobs:
6565
pip list
6666
echo "$GITHUB_WORKSPACE" >> $GITHUB_PATH
6767
pytest -v test/
68+
concurrency:
69+
# Ensure only 1 job mutates clusters in this account at a time.
70+
group: ${{ github.workflow }}
6871

6972
cleanup:
7073
if: always()
@@ -77,3 +80,6 @@ jobs:
7780
permissions:
7881
id-token: write
7982
contents: read
83+
concurrency:
84+
# Ensure only 1 job mutates clusters in this account at a time.
85+
group: ${{ github.workflow }}

.github/workflows/ruby-cm-integ-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
run: |
5252
bundle install
5353
rspec
54+
concurrency:
55+
# Ensure only 1 job mutates clusters in this account at a time.
56+
group: ${{ github.workflow }}
5457

5558
cleanup:
5659
if: always()
@@ -63,3 +66,6 @@ jobs:
6366
permissions:
6467
id-token: write
6568
contents: read
69+
concurrency:
70+
# Ensure only 1 job mutates clusters in this account at a time.
71+
group: ${{ github.workflow }}

.github/workflows/rust-cm-integ-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ jobs:
6565
working-directory: ./rust/cluster_management
6666
run: |
6767
cargo test -- --nocapture
68+
concurrency:
69+
# Ensure only 1 job mutates clusters in this account at a time.
70+
group: ${{ github.workflow }}
6871

6972
cleanup:
7073
if: always()
@@ -77,3 +80,6 @@ jobs:
7780
permissions:
7881
id-token: write
7982
contents: read
83+
concurrency:
84+
# Ensure only 1 job mutates clusters in this account at a time.
85+
group: ${{ github.workflow }}

0 commit comments

Comments
 (0)