Skip to content

Commit 58b1044

Browse files
committed
Rename E2E_PRINT_COORDINATOR_LOGS
Signed-off-by: Revital Sur <eres@il.ibm.com>
1 parent f77c75b commit 58b1044

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

Makefile.coord.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ endif
116116
# Env vars forwarded into the e2e test container.
117117
E2E_ENV_VARS = COORDINATOR_IMAGE VLLM_IMAGE EPP_IMAGE VLLM_RENDER_IMAGE VLLM_RENDER_PORT \
118118
E2E_GATEWAY_PORT E2E_KEEP_CLUSTER_ON_FAILURE \
119-
E2E_PRINT_COORDINATOR_LOGS K8S_CONTEXT READY_TIMEOUT MODEL_NAME
119+
E2E_PRINT_LOGS K8S_CONTEXT READY_TIMEOUT MODEL_NAME
120120
BUILDER_E2E_ENV_FLAGS = $(foreach v,$(E2E_ENV_VARS),$(if $($(v)),-e '$(v)=$($(v))'))
121121
ifneq ($(filter command line environment,$(origin NAMESPACE)),)
122122
BUILDER_E2E_ENV_FLAGS += -e NAMESPACE=$(NAMESPACE)

README.coord.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ kubectl --context kind-e2e-coordinator-tests get pods
341341
|---|---|---|
342342
| `E2E_KEEP_CLUSTER_ON_FAILURE` | `false` | Preserve the Kind cluster when the suite fails |
343343
| `E2E_GATEWAY_PORT` | `30080` | Host port mapped to the gateway NodePort |
344-
| `E2E_PRINT_COORDINATOR_LOGS` | `false` | Print coordinator pod logs during the run |
344+
| `E2E_PRINT_LOGS` | `false` | Print all pod logs (coordinator, EPPs, Envoy, workers) for every spec, not just on failure |
345345
| `CONTAINER_RUNTIME` | `docker` | Container runtime used to load images into Kind (`docker` or `podman`) |
346346
| `EPP_IMAGE` | `ghcr.io/llm-d/llm-d-router-endpoint-picker:dev` | EPP image loaded into the Kind cluster |
347347
| `VLLM_IMAGE` | `ghcr.io/llm-d/llm-d-inference-sim:v0.10.2` | vLLM image loaded into the Kind cluster |

test/coordinator/e2e/coordinator/coordinator_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,11 @@ func runCoordinatorPipeline(body []byte, expectedSteps []string, expectedImages
121121
testutils.DeleteObjects(testConfig, encodePool, nsName)
122122
})
123123

124-
// Dump coordinator logs on failure, or always when E2E_PRINT_COORDINATOR_LOGS is
125-
// set. Registered second → runs first (LIFO), so the deployment still exists.
124+
// Dump all pod logs (coordinator, EPPs, Envoy, workers) on failure, or always
125+
// when E2E_PRINT_LOGS is set. Registered second → runs first (LIFO), so the
126+
// pods still exist.
126127
ginkgo.DeferCleanup(func() {
127-
if !ginkgo.CurrentSpecReport().Failed() && !printCoordinatorLogs {
128+
if !ginkgo.CurrentSpecReport().Failed() && !printLogs {
128129
return
129130
}
130131
testutils.DumpPodsAndLogs(testConfig, nsName, testutils.WithFullLogs())

test/coordinator/e2e/coordinator/e2e_suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ var (
7979
testConfig *testutils.TestConfig
8080

8181
keepClusterOnFailure = env.GetEnvBool("E2E_KEEP_CLUSTER_ON_FAILURE", false, ginkgo.GinkgoLogr)
82-
printCoordinatorLogs = env.GetEnvBool("E2E_PRINT_COORDINATOR_LOGS", false, ginkgo.GinkgoLogr)
82+
printLogs = env.GetEnvBool("E2E_PRINT_LOGS", false, ginkgo.GinkgoLogr)
8383

8484
containerRuntime = env.GetEnvString("CONTAINER_RUNTIME", "docker", ginkgo.GinkgoLogr)
8585
eppImage = env.GetEnvString("EPP_IMAGE", "ghcr.io/llm-d/llm-d-router-endpoint-picker:dev", ginkgo.GinkgoLogr)

0 commit comments

Comments
 (0)