Skip to content
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

livepeer/starter: remove testTranscoder flag #2472

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

emranemran
Copy link
Contributor

What does this pull request do? Explain your changes. (required)
The -testTranscoder flag defaults to true which requires all hardware
transcoders to call core.TestTranscoderCapabilities() to discover
transcoding caps. Setting this flag to false is not a valid use case
anymore so this change deprecates that option.

Specific updates (required)

  • Remove the use of testTranscoder flag and allow code path to always call TestTranscoderCapabilities() which it already does as the option defaults to false.

How did you test each of these updates (required)

  • WIP: to be tested on GCP w/ nvidia hardware...

Does this pull request close any open issues?
Fix #2450

Checklist:

…n O with no capabilities

The -testTranscoder flag defaults to true which requires all hardware
transcoders to call core.TestTranscoderCapabilities() to discover
transcoding caps. Setting this flag to false is not a valid use case
anymore so this change deprecates that option.
@emranemran emranemran force-pushed the user/emahbub/deprecate-testTranscoder-option branch from d2ca380 to 3f98047 Compare June 21, 2022 22:43
@codecov
Copy link

codecov bot commented Jun 21, 2022

Codecov Report

Merging #2472 (3f98047) into master (ed2764f) will increase coverage by 0.01727%.
The diff coverage is 0.00000%.

Impacted file tree graph

@@                 Coverage Diff                 @@
##              master       #2472         +/-   ##
===================================================
+ Coverage   55.06159%   55.07886%   +0.01726%     
===================================================
  Files             94          94                 
  Lines          19727       19719          -8     
===================================================
- Hits           10862       10861          -1     
+ Misses          8263        8256          -7     
  Partials         602         602                 
Impacted Files Coverage Δ
cmd/livepeer/livepeer.go 50.00000% <ø> (-0.29940%) ⬇️
cmd/livepeer/starter/starter.go 2.35756% <0.00000%> (+0.01609%) ⬆️

Continue to review full report at Codecov.

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

@thomshutt
Copy link
Contributor

Searching across all repos, it looks like we set it to false in some of our livepeer-in-a-box configs: https://github.com/search?q=org%3Alivepeer+testTranscoder&type=code

@iameli would removing this break things?

@AlexKordic
Copy link
Contributor

Tested on nvidia card with:

go run cmd/livepeer/livepeer.go --datadir=/home/alex/temp/livepeer/TEST_T1 --transcoder=true --orchSecret=foo --orchAddr="127.0.0.1:18935" --cliAddr=":17936" --nvidia=0 --v=6

@emranemran
Copy link
Contributor Author

Perhaps this flag in livepeer-in-a-box is alright for now since it's a fork. I'm guessing we'll have to setup automerges from master in go-livepeer to livepeer-in-a-box at some point or just rebase it frequently to pick up changes. @iameli what do you think?

@emranemran emranemran requested a review from iameli June 30, 2022 16:45
@cyberj0g
Copy link
Contributor

cyberj0g commented Nov 4, 2022

I think we can merge this PR, since capability test runs only with hardware acceleration enabled. LGTM after rebasing.

@cyberj0g cyberj0g self-requested a review November 4, 2022 10:04
@Quintendos
Copy link

@emranemran could you please close up this ticket?

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.

running -nvidia=0 with -testTranscoder=false results in an O with no capabilities
5 participants