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

[HUDI-748] Adding .codecov.yml to set exclusions for code coverage reports. #1468

Merged
merged 1 commit into from
Apr 3, 2020

Conversation

prashantwason
Copy link
Member

What is the purpose of the pull request

Adding some exclusions for code coverage reports.

Brief change log

Added a .codecov.yml file which has entries for java classes which will be excluded when generating code coverage reports.

Verify this pull request

This pull request is a trivial rework / code cleanup without any test coverage.

Committer checklist

  • Has a corresponding JIRA in PR title & commit

  • Commit message is descriptive of the change

  • CI is green

  • Necessary doc changes done or have another open PR

  • For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

Copy link
Member

@vinothchandar vinothchandar left a comment

Choose a reason for hiding this comment

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

We do enforce the testing ... A lot of this is due experimental code that has become more used..

I know we can change this later. but I fear if we suppress now, it will be forgotten.. There are some good candidateshere.. but I would like to file JIRAs for some of the core classes in utilities and see if we can fix it, rather than masking..

@bvaradar could you please look each file case by case and only leave ones that have very low value in testing (migration code, etc)

.codecov.yml Outdated Show resolved Hide resolved
.codecov.yml Outdated
- "hudi-common/src/main/java/org/apache/hudi/avro/model/*"
- "hudi-common/src/main/java/org/apache/hudi/common/model/*"
- "hudi-common/src/main/java/org/apache/hudi/avro/MercifulJsonConverter.java"
- "hudi-common/src/main/java/org/apache/hudi/common/table/timeline/dto/*"
Copy link
Member

Choose a reason for hiding this comment

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

@bvaradar do you see these needing unit tests in the future.

Copy link
Contributor

Choose a reason for hiding this comment

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

@prashantwason : Can we retain DTO classes. It has translation functions and I caught an issue there as part of PR-1459. As part of TestRemoteHoodieTableFileSystemView, these classes should be anyway covered. Can we retain these classes.

.codecov.yml Show resolved Hide resolved
.codecov.yml Show resolved Hide resolved
.codecov.yml Show resolved Hide resolved
@vinothchandar
Copy link
Member

@prashantwason I am going to let @bvaradar make the final call here

.codecov.yml Outdated
- "hudi-common/src/main/java/org/apache/hudi/avro/model/*"
- "hudi-common/src/main/java/org/apache/hudi/common/model/*"
- "hudi-common/src/main/java/org/apache/hudi/avro/MercifulJsonConverter.java"
- "hudi-common/src/main/java/org/apache/hudi/common/table/timeline/dto/*"
Copy link
Contributor

Choose a reason for hiding this comment

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

@prashantwason : Can we retain DTO classes. It has translation functions and I caught an issue there as part of PR-1459. As part of TestRemoteHoodieTableFileSystemView, these classes should be anyway covered. Can we retain these classes.

.codecov.yml Show resolved Hide resolved
.codecov.yml Outdated Show resolved Hide resolved
@prashantwason
Copy link
Member Author

I have removed the following form the exclusions as requested. Please take a look again.

hudi-common/src/main/java/org/apache/hudi/common/model/*
"hudi-common/src/main/java/org/apache/hudi/common/table/timeline/dto/*

Copy link
Contributor

@bvaradar bvaradar left a comment

Choose a reason for hiding this comment

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

Looks good.

@bvaradar bvaradar merged commit deb95ad into apache:master Apr 3, 2020
@prashantwason prashantwason deleted the HUDI-748 branch April 3, 2020 23:46
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.

None yet

4 participants