-
Notifications
You must be signed in to change notification settings - Fork 173
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
test: add LIVEPEER_HTTP_PORT
test env variable
#2936
Conversation
1778e47
to
c8ae672
Compare
LIVEPEER_HTTP_PORT
test env variable
This commit adds the `LIVEPEER_HTTP_PORT` environment variable, which can set the HTTP port used by the Livepeer binary in the `test_args.sh` script. This is useful if another service already uses this port.
c8ae672
to
5806a85
Compare
Should we also offer a method to modify the CLI port? While reviewing the code, I couldn't locate any tests that interact with the CLI. It would be greatly appreciated if someone could validate this and provide confirmation. |
4860ef1
to
1b9412e
Compare
@rickstaa Thanks for the PR. I wonder how much useful this feature is. AFAIK |
I'm running my Orchestrator, a Docker container, while exposing the same ports. Unfortunately, I've encountered issues where the tests fail to run successfully on my other machines (you can find more details here: #2905 (comment)). While I can run the tests in a Docker container, I wanted to find a more convenient way to test my changes, so I created this pull request. The decision to include this environmental variable in your codebase is up to you. Feel free to close it if you prefer developers to run the tests in a docker container when the port is already in use 👍🏻. |
Yeah, I'm a little hesitant to adding more "features" when not needed. Since we have all the other ports hardcoded (and I'm actually we need them configurable), I'd probably stick to what we have. Unless we find more use-cases why to configure ports. |
This pull request adds the
LIVEPEER_HTTP_PORT
environment variable, which can set the HTTP port used by the Livepeer binary in thetest_args.sh
script. This is useful if another service already uses this port.What does this pull request do? Could you explain your changes? (required)
I already have an orchestrator running on the default port. This port is therefore not available to be used for the tests.
Specific updates (required)
LIVEPEER_HTTP_PORT
environment variable, which can set the HTTP port used by the Livepeer binary in thetest_args.sh
script.How did you test each of these updates (required)
By setting
LIVEPEER_HTTP_PORT
environment variable and running thetest_args.sh
script.Does this pull request close any open issues?
Checklist:
make
runs successfully./test.sh
pass