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

Use Codecov #8388

Merged
merged 3 commits into from
Aug 28, 2019
Merged

Use Codecov #8388

merged 3 commits into from
Aug 28, 2019

Conversation

ccaominh
Copy link
Contributor

@ccaominh ccaominh commented Aug 24, 2019

Description

Upload coverage reports to Codecov. For now, having Codecov comment on PRs or enforcing a minimum coverage threshold are both disabled until the Codecov coverage reports look reliable: https://codecov.io/gh/apache/incubator-druid


This PR has:

  • been self-reviewed.
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.

@asdf2014 asdf2014 added the Area - Dev For items related to the project itself, like dev docs and checklists, but not CI label Aug 26, 2019
@codecov-io
Copy link

codecov-io commented Aug 26, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@95fa609). Click here to learn what that means.
The diff coverage is n/a.

@ccaominh ccaominh changed the title [WIP] Use Codecov Use Codecov Aug 27, 2019
@ccaominh
Copy link
Contributor Author

The earlier comment from codecov-io is from when I was testing earlier with PR comments enabled, which is no longer enabled in the latest commit of this PR.

Upload coverage reports to Codecov. For now, having Codecov comment on
PRs or enforcing a minimum coverage threshold are both disabled until
the Codecov coverage reports look reliable:
https://codecov.io/gh/apache/incubator-druid
@gianm
Copy link
Contributor

gianm commented Aug 27, 2019

Note to self and anyone else looking- this looks like the codecov report for this PR: https://codecov.io/gh/apache/incubator-druid/pull/8388. It's missing some views since there's no master report (which makes sense, sure).

.travis.yml Outdated
@@ -115,6 +115,9 @@ matrix:
${MAVEN_SKIP} -Dremoteresources.skip=true
- sh -c "dmesg | egrep -i '(oom|out of memory|kill process|killed).*' -C 1 || exit 0"
- free -m
after_success: &upload_java_unit_test_coverage
- ${MVN} -pl ${MAVEN_PROJECTS} jacoco:report
- travis_retry bash <(curl -s https://codecov.io/bash) -X gcov # retry in case of network error
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that bash here will run even if curl dies with an error, even in -e mode. I'd be more comfortable if this line was split up to prevent that from happening.

@gianm
Copy link
Contributor

gianm commented Aug 27, 2019

LGTM other than the comment in #8388 (comment).

@ccaominh
Copy link
Contributor Author

Copy link
Contributor

@gianm gianm left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@gianm gianm merged commit 31e6280 into apache:master Aug 28, 2019
@ccaominh ccaominh deleted the codecov branch August 28, 2019 16:40
@jon-wei jon-wei added this to the 0.17.0 milestone Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area - Dev For items related to the project itself, like dev docs and checklists, but not CI Area - Testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants