Skip to content

Commit 7fa6656

Browse files
committed
add max parallel for matrix to reduce API issues
1 parent 091dae3 commit 7fa6656

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/ansible-test-sanity.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ name: Ansible Test - Sanity
66

77
on:
88
schedule:
9-
# This is 01:05 UTC, which is 3:05 AM in Prague/CEST
10-
- cron: '5 3 * * 1'
9+
# This is 02:37 UTC, which is 4:37 AM in Prague/CEST
10+
- cron: '37 2 * * 1'
1111

1212
pull_request:
1313
branches:
@@ -22,12 +22,19 @@ jobs:
2222
name: Sanity (Supported Ⓐ${{ matrix.ansible }})
2323
strategy:
2424
fail-fast: false # Disabled so we can see all failed combinations.
25+
26+
# Serialization: Only allow 2 jobs to run simultaneously.
27+
# This helps with throughput issues on GitHub Gateway servers.
28+
max-parallel: 2
29+
2530
# Define a build matrix to test compatibility across multiple Ansible versions.
2631
# Each version listed below will spawn a separate job that runs in parallel.
2732
matrix:
2833
ansible:
2934
- 'stable-2.18' # Python 3.11 - 3.13
3035
- 'stable-2.19' # Python 3.11 - 3.13
36+
- 'stable-2.20' # Python 3.12 - 3.14
37+
- 'stable-2.21' # Python 3.12 - 3.14
3138
- 'devel' # Test against the upcoming development version.
3239

3340
steps:
@@ -47,6 +54,11 @@ jobs:
4754
continue-on-error: true # This entire job is allowed to fail
4855
strategy:
4956
fail-fast: false # Disabled so we can see all failed combinations.
57+
58+
# Serialization: Only allow 2 jobs to run simultaneously.
59+
# This helps with throughput issues on GitHub Gateway servers.
60+
max-parallel: 2
61+
5062
# Define a build matrix to test compatibility across multiple Ansible versions.
5163
# Each version listed below will spawn a separate job that runs in parallel.
5264
matrix:

0 commit comments

Comments
 (0)