From ab969c164ed32473c9df1a6da2d86d188eafc973 Mon Sep 17 00:00:00 2001 From: Ali Syed Date: Tue, 3 Mar 2026 12:29:55 +0000 Subject: [PATCH] e2e: Increase GatewayClass acceptance timeout to 5m The 2-minute timeout was set for OSSM 2.x but the OSSM 3.0 installation pipeline takes longer, causing flaky "Waiting for controller" failures. Increase to 5 minutes to accommodate the full Istiod startup chain. Assisted with Claude --- test/e2e/util_gatewayapi_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/e2e/util_gatewayapi_test.go b/test/e2e/util_gatewayapi_test.go index 8c1f4d4ad6..e3557bda0f 100644 --- a/test/e2e/util_gatewayapi_test.go +++ b/test/e2e/util_gatewayapi_test.go @@ -593,8 +593,12 @@ func assertGatewayClassSuccessful(t *testing.T, name string) (*gatewayapiv1.Gate nsName := types.NamespacedName{Namespace: "", Name: name} recordedConditionMsg := "not found" - // Wait up to 2 minutes for the gateway class to be Accepted. - err := wait.PollUntilContextTimeout(context.Background(), 2*time.Second, 2*time.Minute, false, func(context context.Context) (bool, error) { + // Wait up to 5 minutes for the gateway class to be Accepted. + // The GatewayClass is accepted by Istiod, which requires the full + // OSSM installation pipeline to complete first: Subscription creation, + // OSSM operator installation, Istio CR creation, and Istiod deployment. + // This chain can take several minutes, especially on slower platforms. + err := wait.PollUntilContextTimeout(context.Background(), 2*time.Second, 5*time.Minute, false, func(context context.Context) (bool, error) { if err := kclient.Get(context, nsName, gwc); err != nil { t.Logf("Failed to get gatewayclass %s: %v; retrying...", name, err) return false, nil