Skip to content

[MRG] Add Windows continuous integration with AppVeyor CI - #3363

Merged
GaelVaroquaux merged 2 commits into
scikit-learn:masterfrom
ogrisel:appveyor-ci
Jul 14, 2014
Merged

GaelVaroquaux merged 2 commits into
scikit-learn:masterfrom
ogrisel:appveyor-ci

Conversation

@ogrisel

@ogrisel ogrisel commented Jul 11, 2014

Copy link
Copy Markdown
Member

AppVeyor is a system similar to Travis CI that provides a Windows based build environment with MSVC++ Express 2008 and 2010 pre-installed along with the matching Windows SDKs for 64 bit builds. This PR configures how to build scikit-learn, generate .whl and .exe packages for 4 supported target platforms: Python 3.4 & 2.7, each with 32 and 64 bit.

This PR also has a workaround for #3255: some common tests that call fit_transform twice (with a fixed random state) do not deterministic output on 32 bit Python (both 2 and 3) for some estimators that use LAPACK routines like SVD or eigen solvers. Note the numpy / scipy libraries tested here come from Christoph Gohlke's distribution and are therefore linked with MKL. However I also had non-deterministic fit_transform for the same bunch of estimators when I manually built numpy and scipy with OpenBLAS on a Rackspace windows VM a while ago so the problem is not tied to the use of MKL. I therefore decided to catch AssertionError and raise SkipTest instead for this specific test_common check under 32 bit platforms.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.01%) when pulling a62d661 on ogrisel:appveyor-ci into 178d0b6 on scikit-learn:master.

@ogrisel

ogrisel commented Jul 11, 2014

Copy link
Copy Markdown
Member Author

I forgot to link to a working sample output of this build setup. Here is the report I get when I configured AppVeyor to watch my own fork of the sklearn github repo:

https://ci.appveyor.com/project/ogrisel/scikit-learn

Note that you can click on the artifact tab of each sub-entry of the build matrix to download the generated .whl and .exe packages.

@ogrisel

ogrisel commented Jul 11, 2014

Copy link
Copy Markdown
Member Author

Once this is merge in master, I will reconfigure https://ci.appveyor.com/project/ogrisel/scikit-learn to point to https://github.com/scikit-learn/scikit-learn . Then existing PRs will have to be rebased on top of master to get properly tested under windows.

Ideally I would also like to backport that to 0.15.X to be able to use AppVeyor to build the binary release artifacts for Windows for scikit-learn 0.15.0.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.01%) when pulling 35c3f74 on ogrisel:appveyor-ci into 1fe371e on scikit-learn:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.01%) when pulling 98c9f52 on ogrisel:appveyor-ci into e33b3b8 on scikit-learn:master.

Comment thread sklearn/utils/testing.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would add this to the __ALL__constant and add a small docstring.

@ogrisel

ogrisel commented Jul 13, 2014

Copy link
Copy Markdown
Member Author

@arjoly I addressed your comment and decided to disable the 32 bit windows skip to see exactly which estimators are failing. I just tried to run the tests on Python 3.4 32-bit on a Rackspace windows box and could not reproduce the failures any more in 10 consecutive runs. Let see if appveyor is failing or not.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 157b997 on ogrisel:appveyor-ci into 851d914 on scikit-learn:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 6ed1e38 on ogrisel:appveyor-ci into 851d914 on scikit-learn:master.

@arjoly

arjoly commented Jul 13, 2014

Copy link
Copy Markdown
Member

Hm, there is one failed build.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling ba7cb6a on ogrisel:appveyor-ci into fbfcdc5 on scikit-learn:master.

@ogrisel

ogrisel commented Jul 13, 2014

Copy link
Copy Markdown
Member Author

Yes I am fixing a bunch of other heisen tests before tackling #3255.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.0%) when pulling 6477ade on ogrisel:appveyor-ci into 514f073 on scikit-learn:master.

@ogrisel

ogrisel commented Jul 14, 2014

Copy link
Copy Markdown
Member Author

I rebased on top of the current master where I pushed some fixes for other tests and rewrote this PR to only skip the fit_transform check for 3 specific transformers with Python 32 bit under Windows.

Comment thread appveyor.yml Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How about we remove this for the merge!

@GaelVaroquaux

Copy link
Copy Markdown
Member

👍 to merge with these 2 comments, if the tests pass.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.0%) when pulling 1b296fd on ogrisel:appveyor-ci into d8a8a8d on scikit-learn:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.0%) when pulling dbcc3ff on ogrisel:appveyor-ci into d8a8a8d on scikit-learn:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.0%) when pulling 16dae39 on ogrisel:appveyor-ci into d8a8a8d on scikit-learn:master.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What is this scary-looking url?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It's a temporary wheelhouse we host on the rackspace cloud account of the sklearn project to host numpy and scipy wheels built from Christoph Gohlke's installers. I will add an inline comment.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

s/we ca delete/we can delete
Thanks for the clarification. The note about how they're obtained is definitely useful.

@coveralls

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling 1481e53 on ogrisel:appveyor-ci into * on scikit-learn:master*.

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.

5 participants