Skip to content

Conversation

markpollack
Copy link
Member

Fix OpenAiChatClientIT.beanStreamOutputConverterRecords test that was failing intermittently when run as part of a test suite due to empty streaming chunks causing malformed JSON during aggregation.

Changes:

  • Filter out empty/null text chunks before aggregation to prevent malformed JSON
  • Replace silent return with explicit test failure when streaming aggregation produces empty results
  • Add debugging logs to aid troubleshooting of streaming response issues

The test now properly detects and reports streaming aggregation problems instead of silently skipping, improving CI reliability and error detection.

Auto-cherry-pick to 1.0.x
Fixes #4134

Signed-off-by: Mark Pollack mark.pollack@broadcom.com

Fix OpenAiChatClientIT.beanStreamOutputConverterRecords test that was failing intermittently when run as part of a test suite due to empty streaming chunks causing malformed JSON during aggregation. Changes: - Filter out empty/null text chunks before aggregation to prevent malformed JSON - Replace silent return with explicit test failure when streaming aggregation produces empty results - Add debugging logs to aid troubleshooting of streaming response issues The test now properly detects and reports streaming aggregation problems instead of silently skipping, improving CI reliability and error detection. Auto-cherry-pick to 1.0.x Fixes #4134 Signed-off-by: Mark Pollack <mark.pollack@broadcom.com>
@sobychacko sobychacko added this to the 1.1.0.M1 milestone Aug 13, 2025
@sobychacko sobychacko merged commit 85c194c into main Aug 13, 2025
2 checks passed
spring-builds pushed a commit that referenced this pull request Aug 13, 2025
Fix OpenAiChatClientIT.beanStreamOutputConverterRecords test that was failing intermittently when run as part of a test suite due to empty streaming chunks causing malformed JSON during aggregation. Changes: - Filter out empty/null text chunks before aggregation to prevent malformed JSON - Replace silent return with explicit test failure when streaming aggregation produces empty results - Add debugging logs to aid troubleshooting of streaming response issues The test now properly detects and reports streaming aggregation problems instead of silently skipping, improving CI reliability and error detection. Fixes #4134 Signed-off-by: Mark Pollack <mark.pollack@broadcom.com> (cherry picked from commit 85c194c)
scionaltera pushed a commit to scionaltera/spring-ai that referenced this pull request Sep 3, 2025
…projects#4135) Fix OpenAiChatClientIT.beanStreamOutputConverterRecords test that was failing intermittently when run as part of a test suite due to empty streaming chunks causing malformed JSON during aggregation. Changes: - Filter out empty/null text chunks before aggregation to prevent malformed JSON - Replace silent return with explicit test failure when streaming aggregation produces empty results - Add debugging logs to aid troubleshooting of streaming response issues The test now properly detects and reports streaming aggregation problems instead of silently skipping, improving CI reliability and error detection. Auto-cherry-pick to 1.0.x Fixes spring-projects#4134 Signed-off-by: Mark Pollack <mark.pollack@broadcom.com>
chedim pushed a commit to couchbaselabs/spring-ai that referenced this pull request Sep 19, 2025
…projects#4135) Fix OpenAiChatClientIT.beanStreamOutputConverterRecords test that was failing intermittently when run as part of a test suite due to empty streaming chunks causing malformed JSON during aggregation. Changes: - Filter out empty/null text chunks before aggregation to prevent malformed JSON - Replace silent return with explicit test failure when streaming aggregation produces empty results - Add debugging logs to aid troubleshooting of streaming response issues The test now properly detects and reports streaming aggregation problems instead of silently skipping, improving CI reliability and error detection. Auto-cherry-pick to 1.0.x Fixes spring-projects#4134 Signed-off-by: Mark Pollack <mark.pollack@broadcom.com>
@markpollack markpollack deleted the fix-openai-it-as-group-run branch September 26, 2025 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants