Skip to content

using tenacity in download_binary function #399

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

Closed
wants to merge 9 commits into from
Closed

using tenacity in download_binary function #399

wants to merge 9 commits into from

Conversation

NitishNaineni-zz
Copy link
Contributor

@NitishNaineni-zz NitishNaineni-zz commented Feb 3, 2020

Have used the tenacity library to implement the retry functionality into the download_binary function

Fixes #392.

@NitishNaineni-zz NitishNaineni-zz requested review from marco-c and removed request for marco-c February 3, 2020 17:54
@marco-c
Copy link
Collaborator

marco-c commented Feb 3, 2020

Why did you close the PR?

@NitishNaineni-zz
Copy link
Contributor Author

@marco-c sorry i am figuring out how to use pull requests

@marco-c
Copy link
Collaborator

marco-c commented Feb 3, 2020

@marco-c sorry i am figuring out how to use pull requests

Oh, ok! No worries ;)

@marco-c
Copy link
Collaborator

marco-c commented Feb 3, 2020

I suggest using pre-commit to handle formatting for you

@marco-c
Copy link
Collaborator

marco-c commented Feb 3, 2020

You'll need to add tenacity to the requirements (https://github.com/mozilla/code-coverage/blob/master/report/requirements.txt)

@NitishNaineni-zz
Copy link
Contributor Author

i have used per-commit and also added tenacity to requirements.txt

@NitishNaineni-zz
Copy link
Contributor Author

@marco-c can you tell me why its failing the tests? I will try to fix it

@marco-c
Copy link
Collaborator

marco-c commented Feb 3, 2020

@marco-c can you tell me why its failing the tests? I will try to fix it

It seems the tests are not failing, the linting is failing (you can look at the logs on Taskcluster by clicking on "Details").

@NitishNaineni-zz NitishNaineni-zz removed the request for review from La0 February 3, 2020 20:02
added   # noqa comment
added   # noqa comment
@NitishNaineni-zz
Copy link
Contributor Author

@marco-c
i have gone through the logs this seems to be the issue

Fix requirements.txt.....................................................Failed
- hook id: requirements-txt-fixer
- exit code: 1
- files were modified by this hook

i don't understand the issue here. Can you tell me whats wrong?

@marco-c
Copy link
Collaborator

marco-c commented Feb 3, 2020

Probably the order of the requirements is wrong.
If you use pre-commit, all these kinds of errors will be automatically fixed for you, and you wouldn't have to care about them.

@marco-c
Copy link
Collaborator

marco-c commented Feb 3, 2020

@NitishNaineni you removed the branch, which closed the PR. Could you restore it?

@NitishNaineni-zz
Copy link
Contributor Author

@marco-c
i am not able to do any git operations on it due to unstaged files. It seems i broke something so i am going to recreate and put another pull request. Sorry for the inconvenience

@marco-c
Copy link
Collaborator

marco-c commented Feb 3, 2020

If you create a new branch with the same name and force push it, you can update the current pull request without opening a new one.

@NitishNaineni-zz
Copy link
Contributor Author

sorry not able to reopen it

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.

Use tenacity in download_binary
3 participants