Skip to content

Potential flake: Kind learning failover gets HTTP 500 during prompt admission #2933

Open

Description

@jbeda

Summary

Potential flake in the Kind E2E learning failover spec: prompt submission fails with HTTP 500 before the test reaches attempt-claim verification or pod replacement. An earlier run passed with unchanged deployed application/test source and Kind task. The intermittent behavior is established across those runs; the cause of the HTTP 500 remains unknown.

Assigned to @jbeda for investigation in a separate session.

Evidence

Diagnostic gap

The assertion at e2e/k8s/learning_failover_test.go:79 passes formatBody(responseBody) as a message argument. It is evaluated before Should starts polling, so it captures the initially empty body. The blank prompt response: in the failure does not establish that the server returned an empty response.

The failure artifact (k8s-e2e-artifacts-44791631150) contains the same test output, without server logs. deferLearningDiagnostics records only pod status; cleanup restores the baseline deployment and later deletes the cluster. The underlying server error cannot be recovered from the retained artifact.

Investigation

  • Make the failure message evaluate the final response body after polling, retaining the existing bounded formatting.
  • Reproduce or rerun the Kind job with existing timeouts and inspect the actual HTTP error. Retain bounded, appropriately redacted server diagnostics if needed.
  • The existing retry comment mentions lease-acquisition timeouts, but that is not evidence of the cause in this run. Determine whether this is fixture/infrastructure timing or an intermittent application failure.
  • Fix the identified cause rather than increasing timeouts or adding blanket retries without evidence.

Completion: explain the intermittent prompt-admission failure and address its cause, with usable diagnostics if it recurs.

Activity

  1. self-assigned this
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions