fix: reduce integration test timeout to 5 minutes

Tests complete in ~7s. The 10-minute timeout was causing unnecessary
wait time on failures. Reduced Job activeDeadlineSeconds and kubectl
wait timeout to 300s.
This commit is contained in:
Celes Renata
2026-04-21 01:52:11 +00:00
parent 490d7a25a8
commit c166aafc40
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -427,11 +427,11 @@ envsubst < "$REPO_ROOT/infra/inttest/runner.yaml" \
| sed "s/:latest/:${IMAGE_TAG}/g" \ | sed "s/:latest/:${IMAGE_TAG}/g" \
| kubectl apply -n "$NAMESPACE" -f - | kubectl apply -n "$NAMESPACE" -f -
log "Waiting for test runner to complete (timeout: 600s) ..." log "Waiting for test runner to complete (timeout: 300s) ..."
# Use kubectl wait which handles condition matching reliably. # Use kubectl wait which handles condition matching reliably.
# Wait for Complete first; if that times out, check for Failed. # Wait for Complete first; if that times out, check for Failed.
JOB_DONE=false JOB_DONE=false
if kubectl wait --for=condition=complete job/inttest-runner -n "$NAMESPACE" --timeout=600s 2>/dev/null; then if kubectl wait --for=condition=complete job/inttest-runner -n "$NAMESPACE" --timeout=300s 2>/dev/null; then
log "Test runner completed successfully" log "Test runner completed successfully"
stage_end "integration_tests" "ok" stage_end "integration_tests" "ok"
JOB_DONE=true JOB_DONE=true
@@ -446,7 +446,7 @@ else
fi fi
fi fi
if [ "$JOB_DONE" = false ]; then if [ "$JOB_DONE" = false ]; then
log "Test runner timed out after 600s" log "Test runner timed out after 300s"
debug_pod_failure "inttest-runner" "app=inttest-runner" debug_pod_failure "inttest-runner" "app=inttest-runner"
stage_fail "integration_tests" stage_fail "integration_tests"
PIPELINE_EXIT_CODE=1 PIPELINE_EXIT_CODE=1
+1 -1
View File
@@ -21,7 +21,7 @@ metadata:
tier: testing tier: testing
app.kubernetes.io/part-of: stonks-oracle app.kubernetes.io/part-of: stonks-oracle
spec: spec:
activeDeadlineSeconds: 600 activeDeadlineSeconds: 300
backoffLimit: 0 backoffLimit: 0
template: template:
metadata: metadata: