Skip to content

test(e2e): print the namespace's state when the OIDC live test's apply fails - #13426

Merged
cv merged 2 commits into
v1from
test/oidc-failure-diagnostics
Oct 18, 2026
Merged

cv merged 2 commits into
v1from
test/oidc-failure-diagnostics

Conversation

@cv

@cv cv commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator

Part of #12692.

Failure

kubernetes_live::oidc::a_managed_gateway_accepts_an_existing_issuers_tokens_and_refuses_another_audience failed once in CI (linux_amd64, on #13425). It passed on rerun, on v1 at the same base, and locally on ARM64. The log held only the SDK's summary, Apply incomplete / observation query failed, so there was no way to tell why.

The obvious guess was that the gateway started before the issuer's CA ConfigMap existed. The pinned chart rules that out: it mounts the ConfigMap as a required volume, so the gateway pod waits for it.

Decision

Diagnose rather than guess. When the test's apply fails, it now prints the deployment namespace's:

  • pods, with each container's readiness, restarts and waiting or terminated state;
  • 15 most recent events;
  • last 40 log lines of each container.

Then it fails with the same message as before. Test-only; production code is unchanged.

Validation

  • cargo ci passes locally: 1,598 unit tests and 149 lifecycle tests.
  • cargo ci live-kind passes locally: all 7 tests. The diagnostics only run on failure.

…y fails

The test failed once in CI with only the SDK's summary, observation query
failed, which doesn't show why. On failure it now prints each pod's phase
and container states, recent events, and the end of each container's log.
@cv
cv enabled auto-merge (squash) October 18, 2026 16:25
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit e7575f5 into v1 Oct 18, 2026
@cv
cv deleted the test/oidc-failure-diagnostics branch October 18, 2026 17:21
@wscurran wscurran added area: e2e End-to-end tests, nightly failures, or validation infrastructure area: observability Logging, metrics, tracing, diagnostics, or debug output chore Build, CI, dependency, or tooling maintenance platform: k8s Affects Kubernetes deployments v1 NemoClaw v1 branch labels Oct 23, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: e2e End-to-end tests, nightly failures, or validation infrastructure area: observability Logging, metrics, tracing, diagnostics, or debug output chore Build, CI, dependency, or tooling maintenance platform: k8s Affects Kubernetes deployments v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants