[Buildbot-devel] Buildbot-0.7.12rc2 - tests error on python 2.3

Bailey, Darragh dbailey at hp.com
Mon Jan 11 13:51:55 UTC 2010


> -----Original Message-----
> From: Dustin J. Mitchell [mailto:dustin at zmanda.com] 
> Sent: 09 January 2010 16:16
> To: buildbot-devel list
> Subject: [Buildbot-devel] Buildbot-0.7.12rc2
> 
> Here's release candidate 2.  We don't have any open bugs for the
> release branch right now, so with luck this will become the official
> release.  Please check it out!
> 
> I didn't get any feedback on the NEWS, by the way - if there's a new
> feature that I missed, please let me know.
> 
> Signed tag:
> 
>  http://github.com/djmitche/buildbot/tree/buildbot-0.7.12rc2
> 
> Tarball/Zipball:
> 
>  http://github.com/djmitche/buildbot/tarball/buildbot-0.7.12rc2
>  http://github.com/djmitche/buildbot/zipball/buildbot-0.7.12rc2
> 
> Thanks!

Finally got around to testing the 0.7.12 release on my various systems. It looks like certainly for buildbot masters this release will mark the end of support for python 2.3, unless it makes sense to copy string.template from python 2.4 to be duplicated in buildbot. The initial error isn't always obvious, it's only once each of the tests are run individually that I see enough info that points to the lack of string template being the issue in all cases.

>From the failures that I'm seeing, I think that slaves should still be fine.

It might worth noting that buildbot masters require python 2.4 going forward unless you think there is a benefit of including the string.Template class in order to support python 2.3.

Personnally, as long as the slaves can still work on python 2.3 it doesn't pose a problem for me.


Failing test for python 2.3 are:
[ERROR]: buildbot.test.test_config.ConfigTest.testWebPathname
[ERROR]: buildbot.test.test_config.ConfigTest.testWebPortnum

  File "/build/user/darragh/git/buildbot/buildbot/test/test_config.py", line 894, in testWebPortnum
    d = master.loadConfig(webCfg1)
  File "/build/user/darragh/git/buildbot/buildbot/master.py", line 506, in loadConfig
    exec f in localDict
  File "<string>", line 13, in ?

exceptions.AttributeError: 'module' object has no attribute 'Waterfall'

Which looks to be due to the lack of a Template module for string
  File "/build/user/darragh/git/buildbot/buildbot/status/html.py", line 5, in ?
    from buildbot.status.web.baseweb import Waterfall, WebStatus
  File "/build/user/darragh/git/buildbot/buildbot/status/web/baseweb.py", line 19, in ?
    from buildbot.status.web.console import ConsoleStatusResource
  File "/build/user/darragh/git/buildbot/buildbot/status/web/console.py", line 12, in ?
    from buildbot.status.web import console_html as res
  File "/build/user/darragh/git/buildbot/buildbot/status/web/console_html.py", line 1, in ?
    from string import Template
exceptions.ImportError: cannot import name Template


[ERROR]: buildbot.test.test_webparts.Webparts.testInit
[ERROR]: buildbot.test.test_webparts.Webparts.testPages
[ERROR]: buildbot.test.test_webparts.Webparts.testStatic
  File "/build/user/darragh/git/buildbot/buildbot/test/test_webparts.py", line 63, in testInit
    self.startMaster(extraconfig)
  File "/build/user/darragh/git/buildbot/buildbot/test/test_webparts.py", line 26, in startMaster
    m.startService()
  File "/build/user/darragh/git/buildbot/buildbot/master.py", line 432, in startService
    self.loadTheConfigFile()
  File "/build/user/darragh/git/buildbot/buildbot/test/test_web.py", line 33, in loadTheConfigFile
    self.loadConfig(self.config)
  File "/build/user/darragh/git/buildbot/buildbot/master.py", line 506, in loadConfig
    exec f in localDict
  File "<string>", line 20, in ?

Again appears to be the same issue once run by itself:
  File "/usr/lib64/python2.3/site-packages/twisted/python/reflect.py", line 352, in namedAny
    topLevelPackage = __import__(trialname)
  File "/build/user/darragh/git/buildbot/buildbot/test/test_webparts.py", line 8, in ?
    from buildbot.status import html
  File "/build/user/darragh/git/buildbot/buildbot/status/html.py", line 5, in ?
    from buildbot.status.web.baseweb import Waterfall, WebStatus
  File "/build/user/darragh/git/buildbot/buildbot/status/web/baseweb.py", line 19, in ?
    from buildbot.status.web.console import ConsoleStatusResource
  File "/build/user/darragh/git/buildbot/buildbot/status/web/console.py", line 12, in ?
    from buildbot.status.web import console_html as res
  File "/build/user/darragh/git/buildbot/buildbot/status/web/console_html.py", line 1, in ?
    from string import Template
exceptions.ImportError: cannot import name Template


[ERROR]: buildbot.test.test_web
  File "/usr/lib64/python2.3/site-packages/twisted/python/reflect.py", line 352, in namedAny
    topLevelPackage = __import__(trialname)
  File "/build/user/darragh/git/buildbot/buildbot/test/test_web.py", line 17, in ?
    from buildbot.status import html, builder
  File "/build/user/darragh/git/buildbot/buildbot/status/html.py", line 5, in ?
    from buildbot.status.web.baseweb import Waterfall, WebStatus
  File "/build/user/darragh/git/buildbot/buildbot/status/web/baseweb.py", line 19, in ?
    from buildbot.status.web.console import ConsoleStatusResource
exceptions.ImportError: cannot import name ConsoleStatusResource

Same again here.
  File "/usr/lib64/python2.3/site-packages/twisted/python/reflect.py", line 352, in namedAny
    topLevelPackage = __import__(trialname)
  File "/build/user/darragh/git/buildbot/buildbot/test/test_web.py", line 17, in ?
    from buildbot.status import html, builder
  File "/build/user/darragh/git/buildbot/buildbot/status/html.py", line 5, in ?
    from buildbot.status.web.baseweb import Waterfall, WebStatus
  File "/build/user/darragh/git/buildbot/buildbot/status/web/baseweb.py", line 19, in ?
    from buildbot.status.web.console import ConsoleStatusResource
  File "/build/user/darragh/git/buildbot/buildbot/status/web/console.py", line 12, in ?
    from buildbot.status.web import console_html as res
  File "/build/user/darragh/git/buildbot/buildbot/status/web/console_html.py", line 1, in ?
    from string import Template
exceptions.ImportError: cannot import name Template



--
Regards,
Darragh Bailey

Systems Software Engineer
Hewlett Packard Galway Ltd.

Postal Address:    Hewlett Packard Galway Limited, Ballybrit Business Park, Galway
Registered Office: Hewlett Packard Galway Limited, 63-74 Sir John Rogerson's Quay Dublin 2
Registered Number: 361933 





More information about the devel mailing list