Skip to content

Adjusted codecov config. #5956

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

Closed
wants to merge 1 commit into from

Conversation

carltongibson
Copy link
Collaborator

As per advice from @stevepeak. Closes #5647

@carltongibson carltongibson added this to the 3.8.3 Release milestone Apr 25, 2018
@carltongibson
Copy link
Collaborator Author

Hi @stevepeak. Thanks for the input here!

With this change I'm looking for (in particular) views.py and serializers.py to show up here: https://codecov.io/gh/encode/django-rest-framework/pull/5956/tree/rest_framework/rest_framework

(Aside: These are more or less the two most important files in the project 🙂)

I'm still not seeing them. Are we doing something wrong?

Thanks!

@blueyed
Copy link
Contributor

blueyed commented May 4, 2018

Both views.py and serializers.py exist in other packages, too.
But views.py is listed in both authtoken/ and schemas/.

Might be an issue with duplicate filenames, which then get dropped for the first/main package? (".").

Other findings:

  1. rest_framework/__init__.py is also missing.
  2. templatetags/rest_framework.py is listed in the root / rest_framework folder (and not in a subdir, also its __init__.py is missing.

@@ -5,3 +5,6 @@ coverage:
changes: false

comment: off

fixes:
- "::rest_framework/"
Copy link
Contributor

Choose a reason for hiding this comment

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

btw: why are the statuses disabled? Because of this issue?
I think it would be nice to have them reported via Github's status UI.

blueyed added a commit to blueyed/django-rest-framework that referenced this pull request May 5, 2018
@blueyed
Copy link
Contributor

blueyed commented May 5, 2018

I'm still not seeing them.

So this change itself should not get done probably - better not to mess with paths if not necessary.

Reminded me of https://github.com/jazzband/django-configurations/pull/183/files btw, although there source seems to have been the issue.

Well, after all pytest-cov does the equivalent of source = rest_framework.
I've thought there is an issue with multiple sources only, but maybe that's the case here, too.
Trying this workaround in #5970.

@blueyed
Copy link
Contributor

blueyed commented May 8, 2018

It seems to be fixed via the config in #5970: https://codecov.io/github/encode/django-rest-framework/commit/e80be12487befe8ca29cc7ddf014df0c25aa01aa

blueyed added a commit to blueyed/django-rest-framework that referenced this pull request May 8, 2018
It is useful to see if tests itself are covered after all - missing
coverage there typically indicates dead/missed code paths.

This also uses `source=.` and includes (with run and report), to help
Codecov with reporting.
Ref: encode#5956
tomchristie pushed a commit that referenced this pull request May 8, 2018
It is useful to see if tests itself are covered after all - missing
coverage there typically indicates dead/missed code paths.

This also uses `source=.` and includes (with run and report), to help
Codecov with reporting.
Ref: #5956
@rpkilby rpkilby removed this from the 3.8.3 Release milestone Jul 2, 2018
@carltongibson carltongibson deleted the 383/fix-codecov branch March 3, 2019 19:19
pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull request Nov 17, 2020
It is useful to see if tests itself are covered after all - missing
coverage there typically indicates dead/missed code paths.

This also uses `source=.` and includes (with run and report), to help
Codecov with reporting.
Ref: encode#5956
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.

3 participants