Skip to content

Commit 04e6a79

Browse files
committed
Throttle large parallel fan-out with throttle categoy
Wrap the main tls-testing parallel fan-out in the mbetls-parallel-limit throttle category. This applies to both PR and release job paths and is intended to reduce queue pressure from very large numbers of EC2-backed node() branches entering the queue at once. This is a workaround to limit controller-side scheduling contention until the underlying CloudBees/Jenkins issue is better understood. Signed-off-by: Saheer Babu <saheer.babu@arm.com>
1 parent 42e4cf8 commit 04e6a79

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎vars/mbedtls.groovy‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ void run_tls_tests(Collection<BranchInfo> infos) {
4242

4343
jobs.failFast = false
4444
analysis.record_inner_timestamps('main', 'run_pr_job') {
45-
parallel jobs
45+
throttle(['mbetls-parallel-limit']) {
46+
parallel jobs
47+
}
4648
}
4749
} catch (err) {
4850
def failed_names = infos.collectMany({ info -> info.failed_builds}).sort().join(" ")
@@ -217,7 +219,9 @@ void run_release_job(Collection<String> tls_branches, Collection<String> tf_psa_
217219
jobs = common.wrap_report_errors(jobs)
218220
jobs.failFast = false
219221
analysis.record_inner_timestamps('main', 'run_release_job') {
220-
parallel jobs
222+
throttle(['mbetls-parallel-limit']) {
223+
parallel jobs
224+
}
221225
}
222226
}
223227
}

0 commit comments

Comments
 (0)