Closed rickstaa closed 2 months ago
Attention: Patch coverage is 61.53846%
with 10 lines
in your changes are missing coverage. Please review.
Project coverage is 57.40400%. Comparing base (
304e47f
) to head (569dbad
).
Looks good, could you check why the test suite is failing before merging though please
@thomshutt
I reviewed the test errors on my local machine and compared them with those in the GitHub Action.
On my local system, the following test fails:
I checked out the latest stable release (v0.7.5), and the same error occurs locally:
Error Trace: /home/ricks/development/work/livepeer/ai_spe/go-livepeer/server/segment_rpc_test.go:1723
Error: Should have called with given arguments
Test: TestSubmitSegment_HttpPostError
Messages: Expected "Credit" to have been called with:
[5/1]
but actual calls were:
[0/1 0/1]
This happens because the SubmitSegment function throws the following error:
E0519 22:07:08.094493 2971643 segment_rpc.go:517] orchSessionID=bar orchestrator=https://127.0.0.1 Error submitting segment code=404 orch=https://127.0.0.1 err="<html>\r\n<head><title>404 Not Found</title></head>\r\n<body>\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>nginx/1.18.0 (Ubuntu)</center>\r\n</body>\r\n</html>\r\n"
Strangely, the end-to-end test that fails in the action is successful on my local machine. 🤔
I believe we are good to merge since these issues are not caused by my code. Can you merge this pull request if you agree?
@thomshutt
I reviewed the test errors on my local machine and compared them with those in the GitHub Action.
On my local system, the following test fails:
I checked out the latest stable release (v0.7.5), and the same error occurs locally:
Error Trace: /home/ricks/development/work/livepeer/ai_spe/go-livepeer/server/segment_rpc_test.go:1723 Error: Should have called with given arguments Test: TestSubmitSegment_HttpPostError Messages: Expected "Credit" to have been called with: [5/1] but actual calls were: [0/1 0/1]
This happens because the SubmitSegment function throws the following error:
E0519 22:07:08.094493 2971643 segment_rpc.go:517] orchSessionID=bar orchestrator=https://127.0.0.1 Error submitting segment code=404 orch=https://127.0.0.1 err="<html>\r\n<head><title>404 Not Found</title></head>\r\n<body>\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>nginx/1.18.0 (Ubuntu)</center>\r\n</body>\r\n</html>\r\n"
Strangely, the end-to-end test that fails in the action is successful on my local machine. 🤔
I believe we are good to merge since these issues are not caused by my code. Can you merge this pull request if you agree?
The local error was easy to fix. I discovered that an Nginx server was running on my machine, automatically starting at boot. Shutting it down resolved the issue, allowing the tests for this pull request to succeed on my local machine 👍🏻.
Merged as all tests were successful 👍🏻.
What does this pull request do? Explain your changes. (required)
This pull request adds the
pricePerGateway
flag and deprecates thepricePerBroadcaster
flag per core team decision (details: https://discord.com/channels/423160867534929930/1051963444598943784/1210356864643109004). It adds the new-pricePerGateway
flag while maintaining support for-pricePerBroadcaster
with a deprecation warning on startup. This change does not address refactoring associated with variable names and types, which will be addressed in a later change.Specific updates (required)
-pricePerGateway
flaggetBroadcasters
function to parse thegateways
property instead of thebroadcasters
property.How did you test each of these updates (required)
-pricePerGateway
flag-pricePerBroadcaster
flag, noted deprecation warningbroadcasters
property in the config specified in the-pricePerGateway
flag, noted deprecation warning.Does this pull request close any open issues?
AI-LIV-358
Checklist:
make
runs successfully./test.sh
passTestSubmitSegment_HttpPostError
server test does fails on my system but I don't think it is related to my changesTest Logs
```bash --- FAIL: TestSubmitSegment_HttpPostError (0.00s) segment_rpc_test.go:1708: Error Trace: /home/ricks/development/work/livepeer/ai_spe/go-livepeer/server/segment_rpc_test.go:1708 Error: "\r\n404 Not Found
404 Not Found