Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Test macos installation #6231

Merged
merged 71 commits into from
May 31, 2017
Merged

Test macos installation #6231

merged 71 commits into from
May 31, 2017

Conversation

lxn2
Copy link
Member

@lxn2 lxn2 commented May 13, 2017

This PR adds logic to test @sandeep-krishnamurthy's python installation guide for MacOS CPU on Travis.

We test the installation in a clean environment via pip, virtualenv, and from source.

@lxn2 lxn2 reopened this May 17, 2017
@lxn2
Copy link
Member Author

lxn2 commented May 17, 2017

I added logic to run installation tasks only if the diff between this branch and the mxnet's master branch contains install.md.

Note the installation_source_test task fails in Travis because my changes to install-mxnet-osx-python.sh needs to be merged.

Also @mli the Jenkins server couldn't clone this repo for some reason...can you help retrigger the build?

@mli
Copy link
Contributor

mli commented May 22, 2017

i don't know jenkins failed to clone this pr, maybe due to there is too many commits. but it seems to be fixed now

@lxn2
Copy link
Member Author

lxn2 commented May 22, 2017

Yes I think it's a known issue with git pull request builder.

@lxn2
Copy link
Member Author

lxn2 commented May 24, 2017

@mli can we push this through now?

.travis.yml Outdated
@@ -16,8 +16,10 @@ env:
# run tests/cpp
- TASK=cpp_test
# run tests/python
- TASK=python_test
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

@mli asked me to remove Python and R tests. Please let me know if you want to keep it in or not.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think its better to keep python tests on mac until we have our own mac servers.

@piiswrong
Copy link
Contributor

Why are we testing pip install here? Shouldn't it be tested in mxnet-distro? That's the place that's creating the pip packages.

@lxn2
Copy link
Member Author

lxn2 commented May 26, 2017

@piiswrong This tests the installation instructions to make sure that the guide works. The testing in mxnet-distro needs to happen too, but that is a separate in-progress item.

@piiswrong
Copy link
Contributor

pip install depends on the pip package which is not in this repo. Putting it here can cause test fails without changes in mxnet repo. These tests should be moved into mxnet-distro

source install tests can be here.

@lxn2
Copy link
Member Author

lxn2 commented May 26, 2017

I advocate to push this in because

  • this should only run if there is a change to install.md installation guide and we need to make sure those pass
  • we're in progress of moving mxnet-distro into mxnet anyway @szha

@szha
Copy link
Member

szha commented May 26, 2017

I've added the tests in mxnet-distro for the immediate release.

Eric has a point that having external dependencies for tests is bad and unless we mock the dependencies there isn't a way around it. Also, adding a test for pip install mxnet doesn't help much anyways. Ly, see if you could find a way to mock the invocation of commands, or come up with a better way, or exclude the pip command from doc tests.

@mli mli merged commit bc83786 into apache:master May 31, 2017
madjam added a commit that referenced this pull request May 31, 2017
piiswrong pushed a commit that referenced this pull request Jun 1, 2017
@lxn2 lxn2 mentioned this pull request Jun 19, 2017
Guneet-Dhillon pushed a commit to Guneet-Dhillon/mxnet that referenced this pull request Sep 13, 2017
@szha 

I'm going to merge this PR, its goal is to test install.md. Once mxnet-distro moved to mxnet, we can run the test for mxnet-distro first.
Guneet-Dhillon pushed a commit to Guneet-Dhillon/mxnet that referenced this pull request Sep 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants