-
Notifications
You must be signed in to change notification settings - Fork 44
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: Exclude auto-generated protobuf files from codecov #1048
test: Exclude auto-generated protobuf files from codecov #1048
Conversation
.github/codecov.yml
Outdated
- "net/pb/net.pb.go" | ||
- "net/api/pb/api.pb.go" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: Could we do **/*.pb.go
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you prefer? I do like being explicit with this kind of stuff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me it's no different than **/*_test.go
. We will never want to cover those types of files so might as well just make a catch all and save on ink.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for **/*.pb.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto-generated code can still break, and it is prod code unlike **/*_test.go
:) Odds are probably really tiny though with something like pb files and the large size results in somewhat misleading codecov results - will change
-
**/*.pb.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto-generated code can still break, and it is prod code
True but it's irrelevant to code coverage reporting.
I wonder why this PR didn't generate a code coverage report. I believe this should bump our coverage by ~9-10% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this was a good catch.
Codecov Report
@@ Coverage Diff @@
## develop #1048 +/- ##
===========================================
+ Coverage 58.02% 67.57% +9.54%
===========================================
Files 174 172 -2
Lines 19563 16333 -3230
===========================================
- Hits 11352 11037 -315
+ Misses 7215 4368 -2847
+ Partials 996 928 -68
|
Relevant issue(s)
Resolves #1045
Description
Excludes auto-generated protobuf files from codecov. They accounted for about 3200 line misses (our code base is about 19 000 lines)