Skip to content

Commit c1eaa2c

Browse files
ptalgulk01claude
authored andcommitted
ci: raise e2e timeouts for the multi-node rollout test
TestMultiNodeRollout takes ~24 min on the bink runners, pushing the full suite past the previous 60m budget (k8s 1.35 died with panic: test timed out after 1h0m0s while two tests were still in flight). On EKS the suite now provisions five EC2 nodes across three tests, which does not reliably fit the old 30m either. e2e: 60m -> 90m, e2e-eks: 30m -> 60m. Co-Authored-By: Claude Code <noreply@anthropic.com> Signed-off-by: Prachiti Talgulkar <ptalgulk01@users.noreply.github.com>
1 parent b40a2e0 commit c1eaa2c

4 files changed

Lines changed: 19 additions & 11 deletions

File tree

‎Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ e2e: ## Run e2e tests (requires: make deploy-bink). V=1 for verbose. RUN=<regex>
117117
E2E_REGISTRY_USER=$(E2E_REGISTRY_USER) E2E_REGISTRY_PASSWORD=$(E2E_REGISTRY_PASSWORD) \
118118
$(if $(RELEASED_OPERATOR_TAG),E2E_OPERATOR_RELEASE_TAG=$(RELEASED_OPERATOR_TAG)) \
119119
$(if $(RELEASED_OPERATOR_IMG),E2E_OPERATOR_RELEASED_IMG=$(IMG_BINK_RELEASED)) \
120-
go test -timeout 60m -count=1 -parallel 2 $(if $(V),-v) $(if $(RUN),-run '$(RUN)') .
120+
go test -timeout 90m -count=1 -parallel 2 $(if $(V),-v) $(if $(RUN),-run '$(RUN)') .
121121

122122
# EKS e2e settings
123123
EKS_CLUSTER_NAME ?=
@@ -146,7 +146,7 @@ e2e-eks: ## Run e2e tests against EKS. V=1 for verbose. RUN=<regex> to filter.
146146
E2E_REGISTRY_USER="$(EKS_REGISTRY_USER)" \
147147
E2E_REGISTRY_PASSWORD="$(EKS_REGISTRY_PASSWORD)" \
148148
ARTIFACTS="$(ARTIFACTS)" \
149-
go test -timeout 30m -count=1 -parallel 2 $(if $(V),-v) $(if $(RUN),-run '$(RUN)') .
149+
go test -timeout 60m -count=1 -parallel 2 $(if $(V),-v) $(if $(RUN),-run '$(RUN)') .
150150

151151
##@ Build
152152

‎test/e2e/bootcnode_test.go‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,13 @@ func TestOperatorRestartResilience(t *testing.T) {
14321432
// cannot afford enough memory/CPU for multi-node scale testing.
14331433
func TestMultiNodeRollout(t *testing.T) {
14341434
e2eutil.Providers(t, "bink", "eks")
1435-
t.Parallel()
1435+
// Serial on bink: this pool's three nodes plus any concurrently
1436+
// running test's nodes contend for the GitHub runner's memory. On
1437+
// EKS the nodes are real cloud VMs, so the test stays parallel
1438+
// there to keep the suite's wall time down.
1439+
if e2eutil.ProviderName() != "bink" {
1440+
t.Parallel()
1441+
}
14361442
g := NewWithT(t)
14371443
g.SetDefaultEventuallyTimeout(pollTimeout)
14381444
g.SetDefaultEventuallyPollingInterval(pollInterval)

‎test/e2e/e2eutil/env.go‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,7 @@ func New(t *testing.T) *Env {
108108

109109
k8sClient := buildClient(t, kubeconfigPath)
110110

111-
providerName := os.Getenv("E2E_PROVIDER")
112-
if providerName == "" {
113-
providerName = "bink"
114-
}
111+
providerName := ProviderName()
115112

116113
var (
117114
provider NodeProvider

‎test/e2e/e2eutil/provider.go‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,20 @@ type NodeProvider interface {
1515
RemoveNode(ctx context.Context, nodeName string) error
1616
}
1717

18+
// ProviderName returns the active E2E_PROVIDER, defaulting to bink.
19+
func ProviderName() string {
20+
if p := os.Getenv("E2E_PROVIDER"); p != "" {
21+
return p
22+
}
23+
return "bink"
24+
}
25+
1826
// Providers skips the test if the current E2E_PROVIDER is not in the
1927
// supported list. Call at the top of each test function.
2028
func Providers(t *testing.T, supported ...string) {
2129
t.Helper()
2230

23-
provider := os.Getenv("E2E_PROVIDER")
24-
if provider == "" {
25-
provider = "bink"
26-
}
31+
provider := ProviderName()
2732
for _, s := range supported {
2833
if s == provider {
2934
return

0 commit comments

Comments
 (0)