Skip to content

test(ai-proxy): await terminal observation after a failed write - #8547

Draft
yangjj-iso wants to merge 1 commit into
apache:masterfrom
yangjj-iso:fix/ai-proxy-terminal-observation-test-20261123
Draft

yangjj-iso wants to merge 1 commit into
apache:masterfrom
yangjj-iso:fix/ai-proxy-terminal-observation-test-20261123

Conversation

@yangjj-iso

Copy link
Copy Markdown
Contributor

Problem and change

The loopback client's failed body read can return before the gateway records the terminal observation. The test then dereferences a missing terminal event. This failed at the same line in the #8273 build and the #7626 Java 21 job.

Call the existing assertSingleObservation helper before inspecting the outcome. It waits for the terminal event and verifies one terminal and one attempt. The assertions for the error outcome, transport-failure evidence, single upstream attempt and absence of a success metric are retained.

IssueSpec

IssueSpec-Mode: lightweight
IssueSpec-Reason: Synchronize an existing integration test with its asynchronous observation fixture. This changes test code only.
IssueSpec-Validation: The project Checkstyle configuration and git diff --check pass. The targeted Maven wrapper command stopped at parent-POM resolution because this environment could not resolve Maven Central. Hosted test execution is pending.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant