Skip to content

ENH XFAIL in common tests with estimator tags (v3) #16502

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

Merged
merged 18 commits into from
Feb 20, 2020

Conversation

rth
Copy link
Member

@rth rth commented Feb 20, 2020

A third version of #16306 and #16328

Puts the common checks to mark as xfail into the _xfail_test estimator tag.

Hopefully addresses concerns raised in the two previous implementations. In particular, this would make the workflow identical between scikit-learn and contrib projects.

cc @thomasjpfan @jnothman @glemaitre

if xfail_checks:
if check_name in xfail_checks:
msg = xfail_checks[check_name]
request.applymarker(pytest.mark.xfail(reason=msg))
Copy link
Member Author

Choose a reason for hiding this comment

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

There is probably a way to make this work for contrib projects automatically with parametrize_with_checks, but for now I just want something that we can use in scikit-learn as the ability to XFAIL is blocking multiple PRs.

Copy link
Member

@jnothman jnothman left a comment

Choose a reason for hiding this comment

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

I'm. much happier with this..

Co-Authored-By: Joel Nothman <joel.nothman@gmail.com>
@glemaitre glemaitre merged commit 1c1f273 into scikit-learn:master Feb 20, 2020
@glemaitre
Copy link
Member

Thanks @rth and @thomasjpfan.

I think that we should look at the check_invariance to see if we can make it more granular such that we can try to test more methods for the skipped estimators.

@rth
Copy link
Member Author

rth commented Feb 20, 2020

Thanks for the reviews! Looks like somebody broke master,

Could not get the latest source version for repository scikit-learn/scikit-learn hosted on https://github.com/ using ref 1c1f273. GitHub reported the error, "Internal Server Error"

hope it's intermittent.

If you have other comments @thomasjpfan let me know, we can address them in follow up PRs.

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