Skip to content

ai/live: Don't suspend orchestrator if the client has not sent data. #3642

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

j0sh
Copy link
Collaborator

@j0sh j0sh commented Jun 24, 2025

Also retry the current segment on any other type of error

Another alternative to #3629 and #3614

Also retry the current segment on any other type of error
@j0sh j0sh requested review from victorges, leszko and mjh1 June 24, 2025 04:32
@github-actions github-actions bot added go Pull requests that update Go code AI Issues and PR related to the AI-video branch. labels Jun 24, 2025
Copy link

codecov bot commented Jun 24, 2025

Codecov Report

Attention: Patch coverage is 0% with 23 lines in your changes missing coverage. Please review.

Project coverage is 30.54831%. Comparing base (b28a901) to head (19f85ef).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
server/ai_live_video.go 0.00000% 23 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@                 Coverage Diff                 @@
##              master       #3642         +/-   ##
===================================================
- Coverage   30.56062%   30.54831%   -0.01231%     
===================================================
  Files            156         156                 
  Lines          47162       47181         +19     
===================================================
  Hits           14413       14413                 
- Misses         31908       31927         +19     
  Partials         841         841                 
Files with missing lines Coverage Δ
server/ai_process.go 1.68350% <ø> (ø)
server/ai_live_video.go 0.00000% <0.00000%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b28a901...19f85ef. Read the comment docs.

Files with missing lines Coverage Δ
server/ai_process.go 1.68350% <ø> (ø)
server/ai_live_video.go 0.00000% <0.00000%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@leszko leszko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@j0sh wdyt about merging this PR, but also #3629 ?

@j0sh
Copy link
Collaborator Author

j0sh commented Jun 24, 2025

@leszko

wdyt about merging this PR, but also #3629 ?

I don't think we really need both, one or the other will do the trick, but this one gives us a little more grace because the rate of non-terminal disconnects is higher when excluding e2e tests ... the actual rate seems to be a few percent, rather than less than 1 percent with e2e included, but its hard to say exactly how much since we can only query so much in Grafana / Loki. See this note

FWIW I do prefer #3629 since it's less invasive, but I am cautious about impacting the overall experience too much, especially with the renewed focus on mobile where we're more likely to see intermittent "connectivity issues" due to backgrounding.

@j0sh
Copy link
Collaborator Author

j0sh commented Jun 25, 2025

@leszko
Copy link
Contributor

leszko commented Jun 25, 2025

Added a couple more fixes:

Better handle an outSegmentTimeout of zero

Don't suspend orchs on cancelled contexts

Ok, sounds good. Thanks Josh!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AI Issues and PR related to the AI-video branch. go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants