Skip to content

Commit

Permalink
Extend timeout again to manage ASO throttling issues (#1252)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannah38 authored Jul 9, 2024
1 parent 11639f5 commit 38d88d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/uk/gov/hmcts/contino/Helm.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion test/uk/gov/hmcts/contino/HelmTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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")
})
}
Expand Down

0 comments on commit 38d88d1

Please sign in to comment.