[Buildbot-devel] test_waterfall failure on win32

Nick Trout nick at rockstarvancouver.com
Tue Apr 19 21:50:00 UTC 2005


Hi, the check-ins overnight seem to have fixed the test_vc problem. I'm
still having issues with test_waterfall in test_web. The tests up until
the following one seem to work fine.

        d = client.getPage("http://localhost:%d/favicon.ico" % port)
        icon = dr(d)
        try:
            expected = open(favicon,"r").read()
        except IOError:
            self.fail("Could not open file: %s" % favicon)
        self.failUnless(icon == expected)

I added an exception handler in case it doesn't find the local file, but
that's not the problem. It seems to be something to do with the deferred
result that is got by Twisted. I get the following console output:

<<<<
Using twisted.internet.win32eventreactor reactor
test_waterfall (buildbot.test.test_web.WebTest) ...
z:\tools\pythonlibs\buildbot
\test\../buildbot.png
config file is

from buildbot.status import html
BuildmasterConfig = {
    'bots': [],
    'sources': [],
    'builders': [],
    'slavePortnum': 0,
    'status': [html.Waterfall(http_port=0,
favicon='z:\tools\pythonlibs\buildbot
\buildbot.png')],
    }

[ERROR]
test_webPathname (buildbot.test.test_web.WebTest) ... [SKIPPED]
test_webPathname_port (buildbot.test.test_web.WebTest) ...
C:\Python23\Lib\site-packages\twisted\web\distrib.py:176:
exceptions.Deprecation
Warning: This is deprecated. Use PBClientFactory.
>>>>

and the following is the log file:

<<<<
2005/04/19 14:46 Pacific Daylight Time [-] Log opened.
2005/04/19 14:46 Pacific Daylight Time [-] -->
buildbot.test.test_web.WebTest.test_waterfall <--
2005/04/19 14:46 Pacific Daylight Time [-] changes.pck missing, creating
new one
2005/04/19 14:46 Pacific Daylight Time [-] adding IStatusReceiver
<Waterfall on port 0>
2005/04/19 14:46 Pacific Daylight Time [-] twisted.web.server.Site
starting on 0
2005/04/19 14:46 Pacific Daylight Time [-] Starting factory
<twisted.web.server.Site instance at 0x0111ADF0>
2005/04/19 14:46 Pacific Daylight Time [-]
twisted.spread.pb.PBServerFactory starting on 0
2005/04/19 14:46 Pacific Daylight Time [-] Starting factory
<twisted.spread.pb.PBServerFactory instance at 0x0111AAD0>
2005/04/19 14:46 Pacific Daylight Time [-] BuildMaster listening on port
0
2005/04/19 14:46 Pacific Daylight Time [-] configuration updated
2005/04/19 14:46 Pacific Daylight Time [-] Starting factory
<HTTPClientFactory: http://localhost:3855/>
2005/04/19 14:46 Pacific Daylight Time [HTTPChannel,0,127.0.0.1]
127.0.0.1 - - [19/Apr/2005:21:46:50 +0000] "GET / HTTP/1.0" 200 465 "-"
"Twisted PageGetter"
2005/04/19 14:46 Pacific Daylight Time [-] Starting factory
<HTTPClientFactory: http://localhost:3855/favicon.ico>
2005/04/19 14:46 Pacific Daylight Time [HTTPChannel,1,127.0.0.1]
Traceback (most recent call last):
	  File
"C:\Python23\Lib\site-packages\twisted\protocols\basic.py", line 223, in
dataReceived
	    why = self.lineReceived(line)
	  File
"C:\Python23\Lib\site-packages\twisted\protocols\http.py", line 965, in
lineReceived
	    self.allContentReceived()
	  File
"C:\Python23\Lib\site-packages\twisted\protocols\http.py", line 1006, in
allContentReceived
	    req.requestReceived(command, path, version)
	  File
"C:\Python23\Lib\site-packages\twisted\protocols\http.py", line 557, in
requestReceived
	    self.process()
	--- <exception caught here> ---
	  File "C:\Python23\Lib\site-packages\twisted\web\server.py",
line 165, in process
	    self.render(resrc)
	  File "C:\Python23\Lib\site-packages\twisted\web\server.py",
line 172, in render
	    body = resrc.render(self)
	  File "C:\Python23\Lib\site-packages\twisted\web\static.py",
line 307, in render
	    self.restat()
	  File
"C:\Python23\Lib\site-packages\twisted\python\filepath.py", line 144, in
restat
	    self.statinfo = stat(self.path)
	exceptions.OSError: [Errno 2] No such file or directory:
'Z:\\Temp\\_trial_temp\\\tools\\pythonlibs\x08uildbot\x08uildbot.png'
	
2005/04/19 14:46 Pacific Daylight Time [HTTPChannel,1,127.0.0.1]
127.0.0.1 - - [19/Apr/2005:21:46:50 +0000] "GET /favicon.ico HTTP/1.0"
500 9199 "-" "Twisted PageGetter"
2005/04/19 14:46 Pacific Daylight Time [HTTPPageGetter,client] Stopping
factory <HTTPClientFactory: http://localhost:3855/favicon.ico>
2005/04/19 14:46 Pacific Daylight Time [-] -->
buildbot.test.test_web.WebTest.test_webPathname <--
2005/04/19 14:46 Pacific Daylight Time [-] -->
buildbot.test.test_web.WebTest.test_webPathname_port <--
2005/04/19 14:46 Pacific Daylight Time [-] changes.pck missing, creating
new one
2005/04/19 14:46 Pacific Daylight Time [-] adding IStatusReceiver
<Waterfall on path 0>
2005/04/19 14:46 Pacific Daylight Time [-]
twisted.spread.pb.PBServerFactory starting on 0
2005/04/19 14:46 Pacific Daylight Time [-] Starting factory
<twisted.spread.pb.PBServerFactory instance at 0x0116DD28>
2005/04/19 14:46 Pacific Daylight Time [-]
twisted.spread.pb.PBServerFactory starting on 0
2005/04/19 14:46 Pacific Daylight Time [-] Starting factory
<twisted.spread.pb.PBServerFactory instance at 0x0111D4B8>
2005/04/19 14:46 Pacific Daylight Time [-] BuildMaster listening on port
0
2005/04/19 14:46 Pacific Daylight Time [-] configuration updated
2005/04/19 14:46 Pacific Daylight Time [-] twisted.web.server.Site
starting on 0
2005/04/19 14:46 Pacific Daylight Time [-] Starting factory
<twisted.web.server.Site instance at 0x0116DBC0>
2005/04/19 14:46 Pacific Daylight Time [-] Starting factory
<HTTPClientFactory: http://localhost:3861/remote/>
2005/04/19 14:46 Pacific Daylight Time [HTTPChannel,0,127.0.0.1]
C:\Python23\Lib\site-packages\twisted\web\distrib.py:176:
exceptions.DeprecationWarning: This is deprecated. Use PBClientFactory.
2005/04/19 14:46 Pacific Daylight Time [HTTPChannel,0,127.0.0.1]
Starting factory <twisted.spread.pb.PBClientFactory instance at
0x0116E440>
2005/04/19 14:46 Pacific Daylight Time [Broker,client] connected to
publisher
2005/04/19 14:46 Pacific Daylight Time [Broker,client]
C:\Python23\Lib\site-packages\twisted\web\server.py:122:
exceptions.DeprecationWarning: IPv4Address.__getitem__ is deprecated.
Use attributes instead.
2005/04/19 14:46 Pacific Daylight Time [Broker,client]
C:\Python23\Lib\site-packages\twisted\web\server.py:123:
exceptions.DeprecationWarning: IPv4Address.__getitem__ is deprecated.
Use attributes instead.
2005/04/19 14:46 Pacific Daylight Time [Broker,0,127.0.0.1] <GET
/remote/ HTTP/1.0>
2005/04/19 14:46 Pacific Daylight Time [Broker,client] 127.0.0.1 - -
[19/Apr/2005:21:46:50 +0000] "GET /remote/ HTTP/1.0" 200 465 "-"
"Twisted PageGetter"
>>>>


Any help would be greatly appreciated as I don't know anything about
Twisted. I'd really like to get the whole test suite running before
attempting to set up a build machine. I'm assuming all the tests are up
to date?

Nick





More information about the devel mailing list