Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky Vertex IT: ITChatSessionIntegrationTest - IllegalStateException #11157

Closed
burkedavison opened this issue Sep 18, 2024 · 1 comment
Closed
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@burkedavison
Copy link
Member

https://btx.cloud.google.com/invocations/5e0ae46c-2e23-4a31-89de-25ab5874b842/log

08:07:57:960 [ERROR] Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 9.361 s <<< FAILURE! -- in com.google.cloud.vertexai.it.ITChatSessionIntegrationTest
08:07:57:961 [ERROR] com.google.cloud.vertexai.it.ITChatSessionIntegrationTest.sendMessageWithNewConfigs_historyContainsFullConversation -- Time elapsed: 2.478 s <<< ERROR!
java.lang.IllegalStateException: Rerun getHistory() to get cleaned history.
	at com.google.cloud.vertexai.generativeai.ChatSession.getHistory(ChatSession.java:357)
	at com.google.cloud.vertexai.it.ITChatSessionIntegrationTest.sendMessageWithNewConfigs_historyContainsFullConversation(ITChatSessionIntegrationTest.java:162)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
Caused by: java.lang.IllegalStateException: The last round of conversation will not be added to history because response stream did not finish normally. Finish reason is RECITATION.
	at com.google.cloud.vertexai.generativeai.ChatSession.checkFinishReasonAndEditHistory(ChatSession.java:339)
	at com.google.cloud.vertexai.generativeai.ChatSession.lambda$checkLastResponseAndEditHistory$0(ChatSession.java:308)
	at java.base/java.util.Optional.ifPresent(Optional.java:178)
	at com.google.cloud.vertexai.generativeai.ChatSession.checkLastResponseAndEditHistory(ChatSession.java:305)
	at com.google.cloud.vertexai.generativeai.ChatSession.getHistory(ChatSession.java:353)
	... 2 more
@burkedavison burkedavison added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p2 Moderately-important priority. Fix may not be included in next release. labels Sep 18, 2024
@mpeddada1
Copy link
Contributor

Ran into this flaky test recently in nightly job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

3 participants