From 38d88d1e7b25f23d73b217fe927ee1730b9ced15 Mon Sep 17 00:00:00 2001 From: Hannah Smith <13995068+hannah38@users.noreply.github.com> Date: Tue, 9 Jul 2024 11:18:26 +0100 Subject: [PATCH] Extend timeout again to manage ASO throttling issues (#1252) --- src/uk/gov/hmcts/contino/Helm.groovy | 2 +- test/uk/gov/hmcts/contino/HelmTest.groovy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uk/gov/hmcts/contino/Helm.groovy b/src/uk/gov/hmcts/contino/Helm.groovy index a76e1ac71a..e99111484c 100644 --- a/src/uk/gov/hmcts/contino/Helm.groovy +++ b/src/uk/gov/hmcts/contino/Helm.groovy @@ -119,7 +119,7 @@ class Helm { this.steps.writeFile file: 'aks-debug-info.sh', text: this.steps.libraryResource('uk/gov/hmcts/helm/aks-debug-info.sh') this.steps.sh ("chmod +x aks-debug-info.sh") - def optionsStr = (options + ["--install", "--wait", "--timeout 1000s"]).join(' ') + def optionsStr = (options + ["--install", "--wait", "--timeout 1250s"]).join(' ') def valuesStr = "${' -f ' + values.flatten().join(' -f ')}" steps.sh(label: "helm upgrade", script: "helm upgrade ${releaseName} ${this.chartLocation} ${valuesStr} ${optionsStr} || ./aks-debug-info.sh ${releaseName} ${this.namespace} ") this.steps.sh 'rm aks-debug-info.sh' diff --git a/test/uk/gov/hmcts/contino/HelmTest.groovy b/test/uk/gov/hmcts/contino/HelmTest.groovy index 070c1dd950..dd46f4de3e 100644 --- a/test/uk/gov/hmcts/contino/HelmTest.groovy +++ b/test/uk/gov/hmcts/contino/HelmTest.groovy @@ -49,7 +49,7 @@ class HelmTest extends Specification { then: 1 * steps.sh({it.containsKey('script') && - it.get('script').contains("helm upgrade ${CHART}-pr-1 ${CHART_PATH} -f val1 -f val2 --namespace cnp --install --wait --timeout 1000s") && + it.get('script').contains("helm upgrade ${CHART}-pr-1 ${CHART_PATH} -f val1 -f val2 --namespace cnp --install --wait --timeout 1250s") && it.get('script').contains("|| ./aks-debug-info.sh ${CHART}-pr-1 cnp") }) }