Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 9c3253d

Browse files
larroymarcoabreu
authored andcommitted
[CI] Prevent timeouts when rebuilding containers with docker. (#13818)
* Prevent timeouts when rebuilding containers with docker. Increase timeout from 120 to 180 for pipelines * Increase docker cache timeout * Increase timeout also for docs * limit parallel builds to 10
1 parent 35c3383 commit 9c3253d

13 files changed

+15
-14
lines changed

ci/docker_cache.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
DOCKERHUB_LOGIN_NUM_RETRIES = 5
3838
DOCKERHUB_RETRY_SECONDS = 5
3939
DOCKER_CACHE_NUM_RETRIES = 3
40-
DOCKER_CACHE_TIMEOUT_MINS = 5
40+
DOCKER_CACHE_TIMEOUT_MINS = 15
41+
PARALLEL_BUILDS = 10
4142

4243

4344
def build_save_containers(platforms, registry, load_cache) -> int:
@@ -52,7 +53,7 @@ def build_save_containers(platforms, registry, load_cache) -> int:
5253
if len(platforms) == 0:
5354
return 0
5455

55-
platform_results = Parallel(n_jobs=len(platforms), backend="multiprocessing")(
56+
platform_results = Parallel(n_jobs=PARALLEL_BUILDS, backend="multiprocessing")(
5657
delayed(_build_save_container)(platform, registry, load_cache)
5758
for platform in platforms)
5859

ci/jenkins/Jenkinsfile_centos_cpu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// See documents at https://jenkins.io/doc/book/pipeline/jenkinsfile/
2222

2323
// timeout in minutes
24-
max_time = 120
24+
max_time = 180
2525

2626
node('utility') {
2727
// Loading the utilities requires a node context unfortunately

ci/jenkins/Jenkinsfile_centos_gpu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// See documents at https://jenkins.io/doc/book/pipeline/jenkinsfile/
2222

2323
// timeout in minutes
24-
max_time = 120
24+
max_time = 180
2525

2626
node('utility') {
2727
// Loading the utilities requires a node context unfortunately

ci/jenkins/Jenkinsfile_clang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// See documents at https://jenkins.io/doc/book/pipeline/jenkinsfile/
2222

2323
// timeout in minutes
24-
max_time = 120
24+
max_time = 180
2525

2626
node('utility') {
2727
// Loading the utilities requires a node context unfortunately

ci/jenkins/Jenkinsfile_edge

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// See documents at https://jenkins.io/doc/book/pipeline/jenkinsfile/
2222

2323
// timeout in minutes
24-
max_time = 120
24+
max_time = 180
2525

2626
node('utility') {
2727
// Loading the utilities requires a node context unfortunately

ci/jenkins/Jenkinsfile_miscellaneous

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// See documents at https://jenkins.io/doc/book/pipeline/jenkinsfile/
2222

2323
// timeout in minutes
24-
max_time = 120
24+
max_time = 180
2525

2626

2727
node('utility') {

ci/jenkins/Jenkinsfile_sanity

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// See documents at https://jenkins.io/doc/book/pipeline/jenkinsfile/
2222

2323
// timeout in minutes
24-
max_time = 120
24+
max_time = 180
2525

2626
node('utility') {
2727
// Loading the utilities requires a node context unfortunately

ci/jenkins/Jenkinsfile_unix_cpu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// See documents at https://jenkins.io/doc/book/pipeline/jenkinsfile/
2222

2323
// timeout in minutes
24-
max_time = 120
24+
max_time = 180
2525

2626
node('utility') {
2727
// Loading the utilities requires a node context unfortunately

ci/jenkins/Jenkinsfile_unix_gpu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// See documents at https://jenkins.io/doc/book/pipeline/jenkinsfile/
2222

2323
// timeout in minutes
24-
max_time = 120
24+
max_time = 180
2525

2626
node('utility') {
2727
// Loading the utilities requires a node context unfortunately

ci/jenkins/Jenkinsfile_website

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// See documents at https://jenkins.io/doc/book/pipeline/jenkinsfile/
2222

2323
// timeout in minutes
24-
max_time = 120
24+
max_time = 180
2525

2626
node('utility') {
2727
// Loading the utilities requires a node context unfortunately

0 commit comments

Comments
 (0)