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

Improve logging #143

Merged
merged 3 commits into from
May 10, 2023
Merged

Improve logging #143

merged 3 commits into from
May 10, 2023

Conversation

giovanni-guidini
Copy link
Contributor

Trying to strike the right balance between verbose and non-verbose mode in the CLI.

Particularly for the upload command it's been not satisfactory. The list of files being uploaded as coverage is now listed in non-verbose mode.

Plus there's a positive feedback now that the process (command) finished - for ALL commands. So you know that at least the CLI did its thing, even though there might still be errors.

And again for the upload command, separate better the response from codecov-api and the response from the PUT request afterwards.
To help debugging and all that.

Trying to strike the right balance between verbose and non-verbose mode in the CLI.

Particularly for the upload command it's been not satisfactory.
The list of files being uploaded as coverage is now listed in non-verbose mode.

Plus there's a positive feedback now that the process (command) finished - for ALL commands.
So you know that at least the CLI did its thing, even though there might still be errors.

And again for the upload command, separate better the response from codecov-api
and the response from the PUT request afterwards.
To help debugging and all that.
@codecov
Copy link

codecov bot commented May 8, 2023

Codecov Report

Merging #143 (ea74755) into master (509312f) will increase coverage by 0.01%.
The diff coverage is 87.50%.

@@            Coverage Diff             @@
##           master     #143      +/-   ##
==========================================
+ Coverage   94.70%   94.71%   +0.01%     
==========================================
  Files          65       65              
  Lines        2039     2045       +6     
==========================================
+ Hits         1931     1937       +6     
  Misses        108      108              
Flag Coverage Δ
python3.10 94.71% <87.50%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
codecov_cli/services/upload/upload_collector.py 98.43% <50.00%> (ø)
codecov_cli/helpers/request.py 100.00% <100.00%> (ø)
codecov_cli/services/upload/upload_sender.py 100.00% <100.00%> (ø)

assert out_bytes == [
(
"info",
"Process Commit creating complete. --- {\"result\": \"RequestResult(error=RequestError(code='HTTP Error 403', params={}, description='Permission denied'), warnings=[], status_code=403, text='Permission denied')\"}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we get rid of the extra "" in the loggings?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we can. But I agree that it was a bit too much in that message, so I decided to make it simpler (and not have the "" in the process)

It was a lot of data in the "process complete" message.
We don't need all that just to let users know the process terminated.
So breaking that up again into 2 messages, the 2nd having all the data in verbose level.
dana-yaish
dana-yaish previously approved these changes May 10, 2023
@giovanni-guidini giovanni-guidini merged commit c433b35 into master May 10, 2023
@giovanni-guidini giovanni-guidini deleted the gio/improve-logging branch May 10, 2023 07:30
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.

2 participants