check for nosetests in configure#4449
Conversation
Check if /usr/bin/nosetests is installed since needed to run 'make check'. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Don't use '7.0.1406' version in ftp address, use the '7' symlink instead to avoid issues with outdated releases. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
|
@dalgaaf , i just learnt from @alfredodeza that we don't want to add more dependencies to configure stage. because the stage where jenkins.ceph.com creates the dist tarball might not have the required tools, among other things nosetest or sphinx-build.
still under discussion, see http://permalink.gmane.org/gmane.comp.file-systems.ceph.devel/24688 . |
|
@tchaikov: to be honest this is strange plan. What is the purpose of a CI tool if it doesn't test the complete build/package. If the CI system doesn't have the tools to build the basic dist tarball, then add the missing packages. The nosetest package is needed to run make check successfully. Otherwise you have failing tests and to disable tests based on the installed packages in the system makes also no sense since then the checks are incomplete and the dist tarball is not ready for testing. |
|
@dalgaaf agreed. and we should use install-deps.sh to ready the CI system for so the only thing i'd suggest for this pull request is not to add nosetest to the list of |
|
@dalgaaf the proper way of dealing with python dependencies is by adding them in a requirements.txt file along with a tox.ini file that will be run via make check. You can see how it is done in https://github.com/ceph/ceph/tree/master/src/ceph-detect-init for instance. https://github.com/ceph/ceph/blob/master/install-deps.sh will install the dependencies and install-deps.sh is also used by CI. Although I prefer py.test, I don't have strong feelings against nose, as long as it is run from tox. |
|
(removing myself because I don't have the bandwidth to followup in the next week, feel free to ping me in two weeks if you need) |
|
@dalgaaf feel free to re-open when you have time to address the comments |
'make check' needs nosetests (python-nose) for some of the checks. Added a check to configure to make sure the package is installed.
Fixed also some links in documentation related to CentOS ftp server links.