-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Collect code coverage from integration tests and upload to codecov #4964
Collect code coverage from integration tests and upload to codecov #4964
Conversation
Signed-off-by: Yuri Shkuro <github@ysh.us>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4964 +/- ##
==========================================
- Coverage 96.42% 95.59% -0.83%
==========================================
Files 304 317 +13
Lines 18092 18689 +597
==========================================
+ Hits 17445 17866 +421
- Misses 513 661 +148
- Partials 134 162 +28
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Yuri Shkuro <github@ysh.us>
.PHONY: token-propagation-integration-test | ||
token-propagation-integration-test: | ||
go clean -testcache | ||
bash -c "set -e; set -o pipefail; $(GOTEST) -tags token_propagation -run TestBearTokenPropagation $(STORAGE_PKGS) | $(COLORIZE)" |
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.
was not used anywhere
@@ -61,6 +61,7 @@ GOFMT=gofmt | |||
GOFUMPT=gofumpt | |||
FMT_LOG=.fmt.log | |||
IMPORT_LOG=.import.log | |||
COLORIZE ?= | $(SED) 's/PASS/✅ PASS/g' | $(SED) 's/FAIL/❌ FAIL/g' | $(SED) 's/SKIP/☠️ SKIP/g' |
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.
Changed COLORIZE macro to include | ...
so that it can be overwritten to nothing for faster std output. When output is piped, even to | cat -
, the buffering prevents incremental test output, so one cannot easily observe test progress
Signed-off-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: Yuri Shkuro <github@ysh.us>
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.
Nice 👍🏼
@@ -1,8 +1,17 @@ | |||
codecov: | |||
notify: | |||
require_ci_to_pass: yes | |||
after_n_builds: 11 |
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.
Why specifically 11?
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.
that's how many reports we upload
Which problem is this PR solving?
Description of the changes
.nocover
since their packages are now included in coverage via integration tests anyway. Add correspondingempty_test.go
to avoid linter error.println
from badger & sampling storage integration| ...
so that it can be overwritten to nothing for faster std output. When output is piped, even to| cat -
, the buffering prevents incremental test output, so one cannot easily observe test progressHow was this change tested?