-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
add option for video-import CLI to wait between two video imports #3310
Conversation
d3ed036
to
12e85a3
Compare
I see some errors on the CI related to files I haven't modified. |
@fflorent you filled the template erroneously, since adding options to the CLI requires tests be added in
|
Alright, I'll add test and ask for help if I need some! |
@fflorent did you make any progress with your tests? |
Aie, I have to put a reminder in my agenda, as I am a bit busy. I think I will make some progress during this month. Florent |
@fflorent ping 🙂 could you also rebase and fix the lint errors? |
12e85a3
to
9227a97
Compare
9227a97
to
e67036d
Compare
The rebase is done!
The test file you mention is not the good one if I am not wrong. This file is for the creation of import file jobs (i.e. local file to import in PeerTube). This script is for importing videos using youtube-dl. I am not sure if we have tests for this script (we could have, but I guess this would rely on mocks using proxyquire and sinon). |
@fflorent sorry for the delay in answering your question! You are right, that is not the right place to put your tests in. That would be in https://github.com/Chocobozzz/PeerTube//blob/8e76aa1d75aebdadd0451d2e57c9bb65d1e75b9a/server/tests/cli/peertube.ts#L191 |
@rigelk Thanks for your reply. I am sorry, I feel very uncomfortable with these tests especially for this option. Here are some points of why:
Sorry for being negative here. I don't blame anyone. I admire the work of all the contributors and the time spent on developing PeerTube. I am really grateful (:heart:), and wish to help. I miss time for that. I'd rather close the PR if you don't mind. If you need to discuss a bit further, don't hesitate through IRC or Matrix on the PeerTube channel. Cheers! |
I agree here. Considering its ROI, we might as well just skip this test for now.
No worries. @fflorent you marked the PR as a draft. Do you mind explaining what is yet to be done for this PR in your opinion? |
@rigelk I see three options for the remaining work to be done:
If you agree with the second option and can wait a bit more, I can try in some weeks to make that (I'd do my best to invest time for that). What do you think? |
@fflorent IMHO we can settle on option 3. I'll make a code review, and leave @Chocobozzz to evaluate options. |
Alright, I am ready for your remarks then :) |
It's okay to not test this option |
Description
--wait-interval <seconds>
to wait<seconds>
between 2 video imports (and prevent TOO_MANY_REQUESTS error from Youtube)Related issues
Fixes #3309
Has this been tested?