Skip to content

Remove pytest-faulthandler from test dependencies - #3987

Merged
soupault merged 1 commit into
scikit-image:masterfrom
jni:faulthandler
Jul 11, 2019
Merged

soupault merged 1 commit into
scikit-image:masterfrom
jni:faulthandler

Conversation

@jni

@jni jni commented Jul 1, 2019

Copy link
Copy Markdown
Member

pytest-faulthandler is included in pytest as of pytest 5.0 and
including it in requirements raises a packaging error with 5.0.

Fixes #3986

For reviewers

  • Check that the PR title is short, concise, and will make sense 1 year
    later.
  • Check that new functions are imported in corresponding __init__.py.
  • Check that new features, API changes, and deprecations are mentioned in
    doc/release/release_dev.rst.
  • Consider backporting the PR with @meeseeksdev backport to v0.14.x

pytest-faulthandler is included in pytest as of pytest 5.0 and
including it in requirements raises a packaging error with 5.0.

Fixes scikit-image#3986
@rfezzani

rfezzani commented Jul 1, 2019

Copy link
Copy Markdown
Member

Hi @jni and @hmaarrfk, I first though that pytest-faulthandler was causing the CI failures for the PR #3983, but it is more complicated then it looks :-(
Looking at CI logs, it appears that pad is not raising the expected TypeError :-(. Do you have any idea of what is happening here?

@hmaarrfk

hmaarrfk commented Jul 2, 2019

Copy link
Copy Markdown
Member

I maintain that we should "pass" when we fail on --pre. There is virtually no reason to keep all the tests at red when when it virtually no fault of this projects or the contributors for a pre-release.

@jni

jni commented Jul 2, 2019

Copy link
Copy Markdown
Member Author

@hmaarrfk I'm on board with this for sure, and would support a PR that puts --pre into acceptable failures. However that wouldn't have prevented the faulthandler failure.

@hmaarrfk

hmaarrfk commented Jul 2, 2019

Copy link
Copy Markdown
Member

@hmaarrfk

hmaarrfk commented Jul 2, 2019

Copy link
Copy Markdown
Member

i'm pretty sure we had a similar conversation before, and we had decided to fail on --pre. Not sure how to coerce the dask arrays into numpy ones now.

@jni

jni commented Jul 2, 2019

Copy link
Copy Markdown
Member Author

@hmaarrfk we did have that conversation, and @stefanv in particular was opposed, with the idea that maintainers wouldn't click through to "details" and thus failures would go undetected. If that can be avoided (will the Travis integration show "allowed failures" in the message, for example), then we can go ahead. Either way, though, after what feels like 17 pre-release-caused failures since we discussed this, I think it's legitimate to revisit the conversation.

@hmaarrfk

hmaarrfk commented Jul 4, 2019

Copy link
Copy Markdown
Member

Well pytest-faulthandler just released 2 which can be installed with pytest 5.0

It is a dummy package that allows the packager to "install" both simulatenously. That said, this cleanup is probably a good thing anyway.

@stefanv

stefanv commented Jul 5, 2019

Copy link
Copy Markdown
Member

So what is the status of this PR then?

@hmaarrfk

hmaarrfk commented Jul 5, 2019

Copy link
Copy Markdown
Member

Ready to go. Failures on pre is an other one

@soupault
soupault merged commit 37c764c into scikit-image:master Jul 11, 2019
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.

Packaging failures with Pytest 5.0

5 participants