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

Increase code coverage #24

Merged
merged 1 commit into from
Nov 15, 2023
Merged

Conversation

alex-semenyuk
Copy link
Member

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Nov 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (902dcbb) 47.85% compared to head (156c6c9) 51.33%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #24      +/-   ##
==========================================
+ Coverage   47.85%   51.33%   +3.48%     
==========================================
  Files          22       22              
  Lines         861      861              
==========================================
+ Hits          412      442      +30     
+ Misses        444      415      -29     
+ Partials        5        4       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -5,8 +5,6 @@ on:
branches: [main]
pull_request:
branches: [main]
pull_request_target:
Copy link
Member Author

Choose a reason for hiding this comment

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

Removed this that it seems it's intermittent issue with uploading codecov report which doesn't depend on when running workflow on pull_request or pull_request_target:

{'detail': ErrorDetail(string='Repository slug or commit sha do not match Github actions build. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')}

It's solved by running workflow few time

cmd/version.go Outdated
// When we're in go-releaser in a Github action, we will have the version passed in explicitly
if info.Version == "" {
buildInfo, ok := debug.ReadBuildInfo()
setBuildInfo(info, buildInfo, ok)
}

if shortened {
fmt.Println(info.Version)
log.L(ctx).Infof("Build info: %s", info.Version)
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure that we'll get the version in this case, using CLI.
Will this info be printed in terminal, but not in the log file?

Signed-off-by: Alexey Semenyuk <[email protected]>
@denisandreenko denisandreenko merged commit c79f7bd into hyperledger:main Nov 15, 2023
4 checks passed
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.

3 participants