go-livepeer icon indicating copy to clipboard operation
go-livepeer copied to clipboard

Stop stream if there are no payments from Gateway

Open leszko opened this issue 8 months ago • 2 comments

Stop stream on the Orchestrator side if there are not enough payments from Gateway.

We fixed a couple of bugs and the "insufficient balance" does not happen anymore, so we should should tear down the stream if the payments are not coming from Gateway.

leszko avatar Jun 16 '25 09:06 leszko

Codecov Report

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

Project coverage is 31.76625%. Comparing base (798060e) to head (f433753). Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
server/ai_http.go 0.00000% 6 Missing :warning:
Additional details and impacted files

Impacted file tree graph

@@                 Coverage Diff                 @@
##              master       #3623         +/-   ##
===================================================
+ Coverage   31.75089%   31.76625%   +0.01536%     
===================================================
  Files            156         156                 
  Lines          47353       47349          -4     
===================================================
+ Hits           15035       15041          +6     
+ Misses         31436       31427          -9     
+ Partials         882         881          -1     
Files with missing lines Coverage Δ
server/ai_http.go 9.66767% <0.00000%> (+0.05806%) :arrow_up:

... and 2 files with indirect coverage changes


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 798060e...f433753. Read the comment docs.

Files with missing lines Coverage Δ
server/ai_http.go 9.66767% <0.00000%> (+0.05806%) :arrow_up:

... and 2 files with indirect coverage changes

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

codecov[bot] avatar Jun 16 '25 10:06 codecov[bot]

I'll wait 1 week before merging this PR, because I noticed a few single cases with "insufficient balance". It was for high-resolution and the balance was at the borderline, so I'll increase slightly the init payment (the buffer) and wait 1 week to see if it still occurs.

leszko avatar Jun 18 '25 07:06 leszko