-
Notifications
You must be signed in to change notification settings - Fork 3k
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
build(coverage): enable code coverage for java and python #11992
Conversation
Enable coverage for java and python code by using a common gradle script plugins. A subsequent PR will add consumption of these coverage files into a code coverage analysis tool from a github action. UI and scala code not part of this PR.
b41f8f8
to
137daf8
Compare
--cov=src was added via setup.cfg in many of the python projects but for some reason, was not getting picked up | ||
consistently, so adding it explicitly. Centralizing these params would make it easier to adjust them for all python | ||
projects (with overrides being in the sub-project build script.) |
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.
The --cov=src
thing being required is a bit worrying. In general, I prefer having stuff in configs instead of specifying things on the command line. We can update the setup.cfg files in the python directories if that's necessary
That said, if you spent a bunch of time messing with this and this was the only way you got stuff to work, then it's not a blocker
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.
I'll relook at this another time. I think the cause is related to the equivalent of https://github.com/chakru-r/datahub/blob/master/metadata-ingestion/setup.cfg#L107-L116 across the other python projects.
That said, it may help if some of these settings - especially those that are common should not be required to be specified in each project - only overrides or deviations are added if applicable. (For a separate discussion/PR)
e1f1fcc
to
5dff957
Compare
5dff957
to
6417769
Compare
Failed tests fixed here. |
Enable coverage for java and python code by using a common gradle script plugins.
A subsequent PR will add consumption of these coverage files into a code coverage analysis tool from a github action.
UI and scala code not part of this PR.
Checklist