[TIP] Fwd: Bizarre results running Hudson job + CI
Olemis Lang
olemis at gmail.com
Mon Mar 22 10:34:15 PDT 2010
On Mon, Mar 22, 2010 at 12:45 PM, Jesse Noller <jnoller at gmail.com> wrote:
>>>
>>> The version of python they have installed does not have
>>> multiprocessing compiled into it. Without knowing the underlying
>>> platform, and seeing the output from make when running the compile,
>>> it's impossible to tell why.
>>
>> Jesse's leaping to conclusions but they're justified -- Olemis, you need
>> to check to see what the tests respond with when you run them on that
>> machine by hand.
Ufff ... I don't think I have (SSH or similar) access to it (am I wrong ?)
Anyway, Hudson executes tests using a shell to run `setup.py test ...`
so I suppose that it's a good substitute for my hands , isn't it ? I
use `subprocess.call`
>> Right now you can't tell if it's a Hudson problem (probably
>> path-related)
BTW I set up an isolated environment using `virtualenv` (AFAICS
inherits the global `site-packages`) in order to run tests and
everything else. Could that be the cause of the failure ?
>> or a Python installation problem.
>>
>
> I'd say they're justified:
>
> 'Internal Server Error\n\nTracError: ImportError: No module named
> _multiprocessing'
>
> Is a dead giveaway. That's the error thrown when multiprocessing is
> missing from core.
>
Everything's quite bizarre IMO because previous builds didn't show
this error (AFAIK) . Besides I added this simple Py script
{{{
#!python
import sys
for x in ['version', 'version_info', 'executable', 'platform']:
print getattr(sys, x)
print '-' * 70
try :
import multiprocessing
except ImportError, e:
print str(e)
else :
print 'Import OK'
print '-' * 70
try :
import _multiprocessing
except ImportError, e:
print str(e)
else :
print 'Import OK'
}}}
as build step and got [1]_
{{{
Started by user olemis
Building on master
[workspace] $ python /tmp/hudson1217578130884305248.py
2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
[GCC 4.3.3]
(2, 6, 2, 'final', 0)
/usr/bin/python
linux2
----------------------------------------------------------------------
Import OK
----------------------------------------------------------------------
Import OK
}}}
... and similar test results and error messages about _multiprocessing
:$
Thnx for the replies !
.. [1] Hudson » tracrpc-mq » #24
(http://hudson.testrun.org/job/tracrpc-mq/24/console)
--
Regards,
Olemis.
Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/
Featured article:
TracRpc: API v2: Test cases for XML-RPC ... PASS -
http://bitbucket.org/osimons/trac-rpc-mq/changeset/228ef43726b0/
More information about the testing-in-python
mailing list