From 62fc26f4414000cdbcb5d30ba452377dda6d87ce Mon Sep 17 00:00:00 2001 From: Malte Sander Date: Mon, 7 Sep 2026 10:32:01 +0200 Subject: [PATCH] fix(test): add datahub install helm and kuttl timeouts. --- .../03-install-datahub.yaml.j2 | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/templates/kuttl/data-hub-resource-info/03-install-datahub.yaml.j2 b/tests/templates/kuttl/data-hub-resource-info/03-install-datahub.yaml.j2 index 484d3bb6..f8a4fd37 100644 --- a/tests/templates/kuttl/data-hub-resource-info/03-install-datahub.yaml.j2 +++ b/tests/templates/kuttl/data-hub-resource-info/03-install-datahub.yaml.j2 @@ -2,11 +2,21 @@ apiVersion: kuttl.dev/v1beta1 kind: TestStep commands: - # The chart runs a `datahub-system-update` bootstrap job (creates the MySQL schema and - # the OpenSearch indices) before GMS starts; 03-assert waits for GMS to become ready. + # The chart installs its bootstrap jobs (MySQL schema, Kafka topics, OpenSearch indices, + # `datahub-system-update`) as Helm hooks, so `helm install` only returns once all of them + # have run; 03-assert then waits for GMS to become ready. + # + # Two timeouts are needed here: + # * `--timeout` is Helm's wait per individual hook. The default (5m) is not enough for + # the system-update job on a contended cluster. + # * `timeout` is kuttl's budget for the whole command, so it has to cover all hooks + # together. It is kept above Helm's so a stuck hook fails with Helm's error message + # instead of kuttl killing the process. - script: >- helm install datahub datahub --namespace $NAMESPACE --version {{ test_scenario['values']['data-hub'] }} --repo https://helm.datahubproject.io --values 03_datahub-values.yaml + --timeout 10m + timeout: 1200