Skip to content

Commit db7416e

Browse files
committed
increase timeout to 2h in ci scripts
1 parent 0ed7394 commit db7416e

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

scripts/ci_e2e_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ test_controller_image() {
210210
CERT_ID3="1001570b-1779-40c3-9b49-9a9a41e30058"
211211
CERTIFICATE_ARNS=${CERTIFICATE_ARNS:-"${CERTIFICATE_ARN_PREFIX}/${CERT_ID1},${CERTIFICATE_ARN_PREFIX}/${CERT_ID2},${CERTIFICATE_ARN_PREFIX}/${CERT_ID3}"}
212212

213-
ginkgo -v -r test/e2e -- \
213+
ginkgo -v -r test/e2e -timeout 2h -- \
214214
--kubeconfig=${CLUSTER_KUBECONFIG} \
215215
--cluster-name=${CLUSTER_NAME} \
216216
--aws-region=${AWS_REGION} \

scripts/run-e2e-test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ function run_ginkgo_test() {
166166
local focus=$1
167167
echo "Starting the ginkgo tests from generated ginkgo test binaries with focus: $focus"
168168
if [ "$IP_FAMILY" == "IPv4" ]; then
169-
(CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo --no-color $EXTRA_GINKGO_FLAGS --focus="$focus" -v --timeout 60m --fail-on-pending $GINKGO_TEST_BUILD/ingress.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --test-image-registry=$TEST_IMAGE_REGISTRY --ip-family=$IP_FAMILY || TEST_RESULT=fail)
170-
(CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo --no-color $EXTRA_GINKGO_FLAGS --focus="$focus" -v --timeout 60m --fail-on-pending $GINKGO_TEST_BUILD/service.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --test-image-registry=$TEST_IMAGE_REGISTRY --ip-family=$IP_FAMILY || TEST_RESULT=fail)
169+
(CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo --no-color $EXTRA_GINKGO_FLAGS --focus="$focus" -v --timeout 2h --fail-on-pending $GINKGO_TEST_BUILD/ingress.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --test-image-registry=$TEST_IMAGE_REGISTRY --ip-family=$IP_FAMILY || TEST_RESULT=fail)
170+
(CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo --no-color $EXTRA_GINKGO_FLAGS --focus="$focus" -v --timeout 2h --fail-on-pending $GINKGO_TEST_BUILD/service.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --test-image-registry=$TEST_IMAGE_REGISTRY --ip-family=$IP_FAMILY || TEST_RESULT=fail)
171171
elif [ "$IP_FAMILY" == "IPv6" ]; then
172-
(CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo --no-color $EXTRA_GINKGO_FLAGS --focus="$focus" --skip="instance" -v --timeout 60m --fail-on-pending $GINKGO_TEST_BUILD/ingress.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --test-image-registry=$TEST_IMAGE_REGISTRY --ip-family=$IP_FAMILY || TEST_RESULT=fail)
173-
(CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo --no-color $EXTRA_GINKGO_FLAGS --focus="$focus" --skip="instance" -v --timeout 60m --fail-on-pending $GINKGO_TEST_BUILD/service.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --test-image-registry=$TEST_IMAGE_REGISTRY --ip-family=$IP_FAMILY || TEST_RESULT=fail)
172+
(CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo --no-color $EXTRA_GINKGO_FLAGS --focus="$focus" --skip="instance" -v --timeout 2h --fail-on-pending $GINKGO_TEST_BUILD/ingress.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --test-image-registry=$TEST_IMAGE_REGISTRY --ip-family=$IP_FAMILY || TEST_RESULT=fail)
173+
(CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo --no-color $EXTRA_GINKGO_FLAGS --focus="$focus" --skip="instance" -v --timeout 2h --fail-on-pending $GINKGO_TEST_BUILD/service.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --test-image-registry=$TEST_IMAGE_REGISTRY --ip-family=$IP_FAMILY || TEST_RESULT=fail)
174174
else
175175
echo "Invalid IP_FAMILY input, choose from IPv4 or IPv6 only"
176176
fi

test/e2e/service/nlb_instance_target_test.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ package service
33
import (
44
"context"
55
"fmt"
6-
"strings"
7-
"time"
8-
96
awssdk "github.com/aws/aws-sdk-go/aws"
107
. "github.com/onsi/ginkgo/v2"
118
. "github.com/onsi/gomega"
129
corev1 "k8s.io/api/core/v1"
1310
"sigs.k8s.io/aws-load-balancer-controller/test/framework/http"
1411
"sigs.k8s.io/aws-load-balancer-controller/test/framework/utils"
12+
"strings"
1513
)
1614

1715
var _ = Describe("test k8s service reconciled by the aws load balancer controller", func() {
@@ -312,7 +310,12 @@ var _ = Describe("test k8s service reconciled by the aws load balancer controlle
312310
"deregistration_delay.timeout_seconds": "120",
313311
})
314312
}, utils.PollTimeoutShort, utils.PollIntervalMedium).Should(BeTrue())
315-
time.Sleep(30 * time.Second)
313+
By("waiting for target group targets to be healthy", func() {
314+
nodeList, err := stack.GetWorkerNodes(ctx, tf)
315+
Expect(err).ToNot(HaveOccurred())
316+
err = waitUntilTargetsAreHealthy(ctx, tf, lbARN, len(nodeList))
317+
Expect(err).NotTo(HaveOccurred())
318+
})
316319
})
317320
})
318321
})

0 commit comments

Comments
 (0)