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

Hardcode show_contexts flag to False in json report #49

Merged
merged 1 commit into from Dec 27, 2023

Conversation

guillaumeLepape
Copy link
Contributor

@guillaumeLepape guillaumeLepape commented Dec 26, 2023

Hi. I tried few days ago to upload json coverage to codecov. I got the following the error: "the report is not usuable". After a deeper look into the codecov code, I found the error. Codecov is infering the coverage type from few elements in the file. For json coverage file, the code is the following : https://github.com/codecov/worker/blob/861583604119da9c607b588055e4f175a784a103/services/report/languages/pycoverage.py#L22

This show_contexts flag was the missing element, by adding it in the coverage file, codecov is able to recognize my report and display the coverage correctly. The measure context feature coverage py is a not supported slipcover feature. I'm not using this feature (I didn't know about it actually).
My proposal, for now, would be to hardcode this flag to False to be able to upload report to codecov.

@guillaumeLepape guillaumeLepape mentioned this pull request Dec 26, 2023
@emeryberger
Copy link
Member

Please write an explanation for this PR (motivation, use case, implications). Thanks.

@guillaumeLepape
Copy link
Contributor Author

Hi. Yes sure, everything is explained in issue 30. #30

@emeryberger emeryberger merged commit 22ec638 into plasma-umass:main Dec 27, 2023
29 checks passed
@guillaumeLepape guillaumeLepape deleted the add_show_contexts branch December 27, 2023 16:20
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

2 participants