Skip to content

CI install pillow in Travis cron job #13080

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 1 commit into from
Feb 4, 2019
Merged

CI install pillow in Travis cron job #13080

merged 1 commit into from
Feb 4, 2019

Conversation

qinhanmin2014
Copy link
Member

@qinhanmin2014 qinhanmin2014 commented Feb 3, 2019

Resolves Travis cron job failure in master.
See https://travis-ci.org/scikit-learn/scikit-learn/builds/488111910
We install pillow in other Travis jobs (and other CIs), so I think it's reasonable to install it in Travis cron job.

@jnothman
Copy link
Member

jnothman commented Feb 3, 2019

Why should we install master? What made it suddenly fail?

@qinhanmin2014
Copy link
Member Author

qinhanmin2014 commented Feb 4, 2019

@jnothman

Why should we install master?

We always install master/nightly builds in cron job? We install stable version in other jobs.

What made it suddenly fail?

#12819 adds an example.

@rth
Copy link
Member

rth commented Feb 4, 2019

IMO pillow should not be a mandatory dependency for doctests. Is there a way to conditionally skip doctests ?

@qinhanmin2014
Copy link
Member Author

IMO pillow should not be a mandatory dependency for doctests. Is there a way to conditionally skip doctests ?

Some tests also rely on pillow, installing pillow in cron job will help us discover possible bugs earlier.

@rth
Copy link
Member

rth commented Feb 4, 2019

Hmm, also I don't understand how CI passed in #12819 if pillow was missing and it added an example that required it...

@jnothman
Copy link
Member

jnothman commented Feb 4, 2019 via email

@rth
Copy link
Member

rth commented Feb 4, 2019

I don't understand how CI passed in #12819 if pillow was missing and it added an example that required it...

Nevermind, I see it's installed in all CI.

Some tests also rely on pillow

Agreed, my point is that checking if pillow is installed and then running those tests sounds fine. Having some test fail if pillow is not installed is IMO not great. I mean a mandatory test dependency is not as bad as a runtime dependency, but it also comes with some of the same constraints and costs.

Also, for instance, we are not requiring pandas for tests (which is an incresingly important part of our API tests) so I'm not sure why should we should require pillow that is only used in a few marginal tests.

@rth
Copy link
Member

rth commented Feb 4, 2019

Depends what others think about this, but I would be +1 to merge this, but then not install pillow in one of the other Travis CI jobs (in some other PR).

@jnothman
Copy link
Member

jnothman commented Feb 4, 2019 via email

@qinhanmin2014
Copy link
Member Author

I guess there's consensus to merge?

@qinhanmin2014 qinhanmin2014 merged commit 0d0feef into scikit-learn:master Feb 4, 2019
@qinhanmin2014 qinhanmin2014 deleted the cron-failure branch February 5, 2019 00:31
thomasjpfan pushed a commit to thomasjpfan/scikit-learn that referenced this pull request Feb 6, 2019
thomasjpfan pushed a commit to thomasjpfan/scikit-learn that referenced this pull request Feb 7, 2019
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
koenvandevelde pushed a commit to koenvandevelde/scikit-learn that referenced this pull request Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants