-
Notifications
You must be signed in to change notification settings - Fork 10
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
chore: add warning if only special labels in report #116
Conversation
Codecov Report
Changes have been made to critical files, which contain lines commonly executed in production. Learn more @@ Coverage Diff @@
## main #116 +/- ##
==========================================
+ Coverage 98.45% 98.49% +0.04%
==========================================
Files 364 364
Lines 26980 27522 +542
==========================================
+ Hits 26562 27108 +546
+ Misses 418 414 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 6 files with indirect coverage changes This change has been scanned for critical changes. Learn more |
After merging #113 I decided to investigate a little more why we would receive nothing but SpecialLabels in a report. Turns out that if you generate the reports without `--cov-context=test` but do `coverage json --show-contexts` it does that. So having a report with only special labels might indicate that ATS is not properly configured, that is, the tests are not running as they should. Ideally we would have a better place to surface this to customers, but right now we don't. So the least we can do is add a warning. In this case, if we look at all the logs in the task, we will see this detail.
072f9ae
to
1de29b3
Compare
Codecov Report
@@ Coverage Diff @@
## main #116 +/- ##
=======================================
Coverage 98.41% 98.41%
=======================================
Files 341 341
Lines 26636 26640 +4
=======================================
+ Hits 26215 26219 +4
Misses 421 421
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov Report
@@ Coverage Diff @@
## main #116 +/- ##
=======================================
Coverage 98.41% 98.41%
=======================================
Files 341 341
Lines 26636 26640 +4
=======================================
+ Hits 26215 26219 +4
Misses 421 421
Flags with carried forward coverage won't be shown. Click here to find out more.
|
After merging #113 I decided to investigate a little more why we would receive nothing but SpecialLabels in a report.
Turns out that if you generate the reports without
--cov-context=test
but docoverage json --show-contexts
it does that.So having a report with only special labels might indicate that ATS is not properly configured,
that is, the tests are not running as they should.
Ideally we would have a better place to surface this to customers, but right now we don't.
So the least we can do is add a warning. In this case, if we look at all the logs in the task,
we will see this detail.
Legal Boilerplate
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.