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

Disable codecov + configure pytest FutureWarnings #976

Merged
merged 1 commit into from
Aug 10, 2022

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Aug 9, 2022

What does this PR do?

In the CI, we currently run the tests with the --cov option to get a code coverage report. However, as pointed out by @osanseviero in this PR (#925), it is broken at the moment and only check coverage of the tests themselves. It has apparently already been discussed here (internal url) and here (internal url). The purpose of the PR is to simply remove coverage for now as it is broken and give unreliable information. I will create a separate issue to fix it and enable it again (EDIT: this one #977).

Also, this PR sets the -Werror::FutureWarning flag by default. This should lead to less friction as contributors will run exactly the same tests locally and on CI.

@Wauplin
Copy link
Contributor Author

Wauplin commented Aug 9, 2022

As a side note, I am personally in favor of code coverage in PRs. However since it's broken and it's less a priority to fix it, I find it preferable to disable it for now (and for what I understood everyone already agreed on Slack -or said nothing-)

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Aug 9, 2022

The documentation is not available anymore as the PR was closed or merged.

Copy link
Contributor

@osanseviero osanseviero left a comment

Choose a reason for hiding this comment

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

Thanks for doing this, I think this is better until we figure out the issue!

@Wauplin Wauplin merged commit bf1f784 into main Aug 10, 2022
@Wauplin Wauplin deleted the disable-broken-code-coverage-in-CI branch August 10, 2022 14:45
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