[Twisted-Python] overly specific ImportError assert for python 3?

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Mon May 5 05:43:36 MDT 2014


On 02:17 am, glyph at twistedmatrix.com wrote:
>cyli was working on <https://twistedmatrix.com/trac/ticket/7144> and 
>encountered this peculiar failure on her branch (and not on trunk): 
><https://buildbot.twistedmatrix.com/builders/python-3.3-tests/builds/2212/steps/shell/logs/stdio>.
>
>The interesting bit of the failure is that in one case, the 
>ImportError's message is "import of 'service_identity' halted; None in 
>sys.modules" and on trunk it's apparently 'No module named 
>service_identity'.
>
>The branch in question changes conch, which isn't even tested on python 
>3.
>
>So... anyone have an idea what's going on?

Here's the "versions" report from a build on that builder which recently 
succeeded:

http://buildbot.twistedmatrix.com/builders/python-3.3-tests/builds/2210/steps 
/report-module-versions/logs/versions

And here's the "versions" report from a build of that branch on that 
builder:

http://buildbot.twistedmatrix.com/builders/python-3.3-tests/builds/2212/steps 
/report-module-versions/logs/versions

Notice that the state of a somewhat relevant dependency is different 
between the two builds.  Backing up, look at which build slave did each 
of those builds:

http://buildbot.twistedmatrix.com/builders/python-3.3-tests/builds/2210
http://buildbot.twistedmatrix.com/builders/python-3.3-tests/builds/2212

So I suppose the test only passes by accident on trunk because it 
happened to be run on one slave with one configuration rather than the 
other slave with the other configuration...

Considering we seem to have no mechanism whatsoever for ensuring the 
configuration of two different slaves for a particular builder is the 
same, I wonder if we should reconsider using multiple slaves for 
individual builders.

Jean-Paul




More information about the Twisted-Python mailing list