You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cron build of travis appears to break master (see) which actually does not (see the same commit). The thing is that in the cron build uses numpy 1.14.0.dev0+d607099 whereas the regular build uses numpy 1.13.1-py36h5bc529a_2. This makes doctests to break due to precission.
For the record, the cron job is supposed to test the numpy dev version. I was expecting that we would get an email if the cron job failed, and I did not, not sure why ...
Can we add documentation about the cron build to the dev docs please? I don't really understand how it is set up. And I didn't get an email from what I can see :-/
Can we add documentation about the cron build to the dev docs please? I don't really understand how it is set up.
I'll try to do that. In the mean time:
the definition of what's get run in the CRON job is done in the .travis.yml, exactly the same way as the other Travis job, except that you have a type = cron filter. See
Really curious what's happening recently. Seems that almost everyday, successful Travis builds are marked as cron, run again by Travis and marked as fail on Master. See for example:
Also note that that PR was merged 14 hours ago, and the last cron job was run 20 hours ago... we'll see if perhaps we get a green tick overnight, or if we need to adjust our doctests.
What fix is needed, unless you have run tests with numpy master now? It's best to make a PR in any case, to make sure that master builds on numpy stable too.
Sorry, by saying push, I mean a PR (See #10123, a broken link in doc). And I suddenly realize that it seems that I don't need to do that since the cron job will automatically run again. Sorry again for doing all the things in a hurry. I promise that I won't commit anything directly into master.
You can commit things directly to master, if you're absolutely sure they
won't break things! (or if you're sufficiently remorseful after breaking
things :P)
Still breaking as of now (finished 40 minutes ago). There were a couples of PRs in numpy that were merged very recently so I am hoping they were not in the latest numpy dev wheels and everything is going to be fine tomorrow.
There were a couples of PRs in numpy that were merged very recently so I am hoping they were not in the latest numpy dev wheels and everything is going to be fine tomorrow.
ping @jnothman
It seems that latest numpy changes (including numpy/numpy#9966) do not fix any error in the cron job. For today, the cron job get errored (See log) and @lesteve has fixed it (enable the cron job to run through again) in #10132 but all the errors are still there.
For the failed tests, see
cron job in master yesterday: log
cron job ran by @lesteve today: log
Also, since the failed tests are all doc tests, seems that it can be solved by using "# doctest: +SKIP", but I'm not sure when to use it in scikit-learn.
Hmmm then not sure what is going on ... wild guessing: maybe the np.set_printoptions(legacy=True) prevents numpy/numpy#9966 from having an effect somehow.
I think the first thing to do would be to build numpy master locally and see whether we can reproduce the errors.
@lesteve personally I might doubt whether numpy/numpy#9966 is the reason, I've tried to locate a series of commit in numpy by looking at the latest successful cron build and the first failed cron build, l'd rather believe numpy/numpy#9941 to be the reason but l'm not sure.
ping @lesteve@jnothman
The same 9 doctests fail today log, maybe something to do in scikit-learn?
last successful cron job log
numpy version: numpy 1.14.0.dev0+8b9195b
first fail cron job log
numpy version: numpy 1.14.0.dev0+b97f9b0
The most suspectable PR : numpy/numpy#9941
Good, I don't really understand either. FWIW all the tests were passing on my machine when I tried to reproduce. Anyway let's assume it is fixed until it fails again ...
Side-comment, something to bear in mind AFAIK is that the numpy dev wheel is published by a Cron daily job which means that the numpy dev wheel is lagging behind numpy master a bit.
This is very unlikely that this bug is still here. ping me in your PR if you can not figure it out and need help in fixing the Travis failures.
Note that right now if you are using numpy >= 1.14, you need to set_printoptions(legacy='1.13') when you generate the expected doctests results. This is a bit annoying and tackled in #10835.
Activity
TomAugspurger commentedon Nov 6, 2017
I think numpy/numpy#9966 is fixing this on NumPy's end (it hit pandas too).
lesteve commentedon Nov 6, 2017
Thanks @TomAugspurger.
For the record, the cron job is supposed to test the numpy dev version. I was expecting that we would get an email if the cron job failed, and I did not, not sure why ...
jnothman commentedon Nov 6, 2017
amueller commentedon Nov 6, 2017
Can we add documentation about the cron build to the dev docs please? I don't really understand how it is set up. And I didn't get an email from what I can see :-/
lesteve commentedon Nov 7, 2017
I'll try to do that. In the mean time:
scikit-learn/.travis.yml
Lines 58 to 63 in abb43c1
More information about Travis cron jobs: https://docs.travis-ci.com/user/cron-jobs/
qinhanmin2014 commentedon Nov 13, 2017
Really curious what's happening recently. Seems that almost everyday, successful Travis builds are marked as cron, run again by Travis and marked as fail on Master. See for example:


jnothman commentedon Nov 13, 2017
CRON builds use the dev version of scipy, numpy, which is what it is intended to test, but at the moment that is failing due to numpy/numpy#9966
jnothman commentedon Nov 13, 2017
Also note that that PR was merged 14 hours ago, and the last cron job was run 20 hours ago... we'll see if perhaps we get a green tick overnight, or if we need to adjust our doctests.
qinhanmin2014 commentedon Nov 13, 2017
@jnothman Thanks for the instant reply. I think I'll quickly push a doc fix to master to see if everything goes well.
jnothman commentedon Nov 13, 2017
What fix is needed, unless you have run tests with numpy master now? It's best to make a PR in any case, to make sure that master builds on numpy stable too.
qinhanmin2014 commentedon Nov 13, 2017
Sorry, by saying push, I mean a PR (See #10123, a broken link in doc). And I suddenly realize that it seems that I don't need to do that since the cron job will automatically run again. Sorry again for doing all the things in a hurry. I promise that I won't commit anything directly into master.
jnothman commentedon Nov 13, 2017
jnothman commentedon Nov 13, 2017
(Also, of course, if you're absolutely certain they would not be the subject of disagreement.)
lesteve commentedon Nov 13, 2017
Still breaking as of now (finished 40 minutes ago). There were a couples of PRs in numpy that were merged very recently so I am hoping they were not in the latest numpy dev wheels and everything is going to be fine tomorrow.
qinhanmin2014 commentedon Nov 14, 2017
This time, we got an errored build. See https://travis-ci.org/scikit-learn/scikit-learn/builds/301820919
lesteve commentedon Nov 14, 2017
According to https://github.com/numpy/numpy/pull/9332/files, looks like we need legacy=True rather than sign='legacy'. I'll do that.
qinhanmin2014 commentedon Nov 14, 2017
ping @jnothman
It seems that latest numpy changes (including numpy/numpy#9966) do not fix any error in the cron job. For today, the cron job get errored (See log) and @lesteve has fixed it (enable the cron job to run through again) in #10132 but all the errors are still there.
For the failed tests, see
cron job in master yesterday: log
cron job ran by @lesteve today: log
Also, since the failed tests are all doc tests, seems that it can be solved by using "# doctest: +SKIP", but I'm not sure when to use it in scikit-learn.
lesteve commentedon Nov 14, 2017
Hmmm then not sure what is going on ... wild guessing: maybe the np.set_printoptions(legacy=True) prevents numpy/numpy#9966 from having an effect somehow.
I think the first thing to do would be to build numpy master locally and see whether we can reproduce the errors.
qinhanmin2014 commentedon Nov 14, 2017
@lesteve personally I might doubt whether numpy/numpy#9966 is the reason, I've tried to locate a series of commit in numpy by looking at the latest successful cron build and the first failed cron build, l'd rather believe numpy/numpy#9941 to be the reason but l'm not sure.
qinhanmin2014 commentedon Nov 15, 2017
ping @lesteve @jnothman
The same 9 doctests fail today log, maybe something to do in scikit-learn?
last successful cron job log
numpy version: numpy 1.14.0.dev0+8b9195b
first fail cron job log
numpy version: numpy 1.14.0.dev0+b97f9b0
The most suspectable PR : numpy/numpy#9941
lesteve commentedon Nov 15, 2017
I think there are mostly two things here:
All in all, we can solve part of it with doctest ellipsis which could be a good middleground but not all of them, eg not this one:
lesteve commentedon Nov 15, 2017
I have opened numpy/numpy#10026 for the space issue with arrays of size 1.
qinhanmin2014 commentedon Nov 21, 2017
ping @jnothman @lesteve
Surprising that cron job suddenly passes today. See log. Closing this though I can't figure out the reason.
lesteve commentedon Nov 21, 2017
Good, I don't really understand either. FWIW all the tests were passing on my machine when I tried to reproduce. Anyway let's assume it is fixed until it fails again ...
Side-comment, something to bear in mind AFAIK is that the numpy dev wheel is published by a Cron daily job which means that the numpy dev wheel is lagging behind numpy master a bit.
mohamed-ali commentedon Mar 26, 2018
Apparently, this error is still there.
Here's the log where I am seeing it:
lesteve commentedon Mar 26, 2018
This is very unlikely that this bug is still here. ping me in your PR if you can not figure it out and need help in fixing the Travis failures.
Note that right now if you are using numpy >= 1.14, you need to set_printoptions(legacy='1.13') when you generate the expected doctests results. This is a bit annoying and tackled in #10835.