Skip to content

zmu/gdai 1929 genai sse transient retry#1667

Merged
zdenekmusil-gd merged 1 commit into
masterfrom
zmu/gdai-1929-genai-sse-transient-retry
Jun 19, 2026
Merged

zmu/gdai 1929 genai sse transient retry#1667
zdenekmusil-gd merged 1 commit into
masterfrom
zmu/gdai-1929-genai-sse-transient-retry

Conversation

@zdenekmusil-gd

Copy link
Copy Markdown
Contributor

Classify SSE error events as ChatError (non-retryable, still a RuntimeError) vs TransientChatError (status 429/502/503/504 or METADATA_SYNC_IN_PROGRESS, detected before JSON parse). Wrap ChatClient.send_message and create_conversation in a bounded exponential-backoff retry (5 retries, 5/10/20/40/60s, ~2min cap, stdlib only) so a staging metadata-sync queue peak no longer fails the E2E LLM tests. No new dependency.

JIRA: GDAI-1929
risk: nonprod

@zdenekmusil-gd zdenekmusil-gd force-pushed the zmu/gdai-1929-genai-sse-transient-retry branch from f77ae37 to d675811 Compare June 19, 2026 11:33
@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.21%. Comparing base (653f5bc) to head (00331ec).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1667   +/-   ##
=======================================
  Coverage   79.21%   79.21%           
=======================================
  Files         232      232           
  Lines       15809    15809           
=======================================
  Hits        12523    12523           
  Misses       3286     3286           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread packages/gooddata-eval/src/gooddata_eval/core/chat/sse_client.py Outdated
Classify SSE error events as ChatError (non-retryable, still a RuntimeError)
vs TransientChatError (status 429/502/503/504 or METADATA_SYNC_IN_PROGRESS,
detected before JSON parse). Wrap ChatClient.send_message and
create_conversation in a bounded exponential-backoff retry (default 5 retries,
5/10/20/40/60s, ~2min cap) so a staging metadata-sync queue peak no longer
fails the E2E LLM tests. Budget is overridable via GOODDATA_EVAL_CHAT_* env
vars so CI can retune without cutting a new release. No new dependency.

JIRA: GDAI-1929
risk: nonprod
@zdenekmusil-gd zdenekmusil-gd force-pushed the zmu/gdai-1929-genai-sse-transient-retry branch from d675811 to 00331ec Compare June 19, 2026 12:06
@zdenekmusil-gd zdenekmusil-gd enabled auto-merge June 19, 2026 12:15
@zdenekmusil-gd zdenekmusil-gd merged commit 3d2a457 into master Jun 19, 2026
12 checks passed
@zdenekmusil-gd zdenekmusil-gd deleted the zmu/gdai-1929-genai-sse-transient-retry branch June 19, 2026 12:18
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.

2 participants