Opened 5 years ago

Closed 5 years ago

#2934 closed undecided (fixed)

buildbot throws exception on startup in logfile.py (hasContents)

Reported by: vlovich Owned by: Mikhail Sobolev <mss@…>
Priority: major Milestone: undecided
Version: 0.8.9 Keywords:
Cc:

Description

I have an exception in a Git master step. This is the latest build. I stopped buildbot & started it again & now I get an exception.

It appears to be a similar issue to http://trac.buildbot.net/ticket/2930

Removing the assertion fixes the issue.

2014-10-08 20:54:54-0700 [-] while starting BuildMaster
	Traceback (most recent call last):
	  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/internet/defer.py", line 1155, in gotResult
	    _inlineCallbacks(r, g, deferred)
	  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/internet/defer.py", line 1099, in _inlineCallbacks
	    result = g.send(result)
	  File "/Library/Python/2.7/site-packages/buildbot/config.py", line 761, in reconfigService
	    yield svc.reconfigService(new_config)
	  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/internet/defer.py", line 1237, in unwindGenerator
	    return _inlineCallbacks(None, gen, Deferred())
	--- <exception caught here> ---
	  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/internet/defer.py", line 1099, in _inlineCallbacks
	    result = g.send(result)
	  File "/Library/Python/2.7/site-packages/buildbot/status/master.py", line 95, in reconfigService
	    sr.setServiceParent(self)
	  File "/Library/Python/2.7/site-packages/buildbot/status/web/baseweb.py", line 520, in setServiceParent
	    self.setupSite()
	  File "/Library/Python/2.7/site-packages/buildbot/status/web/baseweb.py", line 553, in setupSite
	    root.putChild("json", JsonStatusResource(status))
	  File "/Library/Python/2.7/site-packages/buildbot/status/web/status_json.py", line 732, in __init__
	    self.hackExamples()
	  File "/Library/Python/2.7/site-packages/buildbot/status/web/status_json.py", line 746, in hackExamples
	    if builder.getBuild(-1):
	  File "/Library/Python/2.7/site-packages/buildbot/status/builder.py", line 353, in getBuild
	    return self.getBuildByNumber(number)
	  File "/Library/Python/2.7/site-packages/buildbot/status/builder.py", line 182, in getBuildByNumber
	    return self.buildCache.get(number)
	  File "/Library/Python/2.7/site-packages/buildbot/util/lru.py", line 63, in get
	    result = self.miss_fn(key, **miss_fn_kwargs)
	  File "/Library/Python/2.7/site-packages/buildbot/status/builder.py", line 224, in cacheMiss
	    return self.loadBuildFromFile(number)
	  File "/Library/Python/2.7/site-packages/buildbot/status/builder.py", line 205, in loadBuildFromFile
	    build.checkLogfiles()
	  File "/Library/Python/2.7/site-packages/buildbot/status/build.py", line 442, in checkLogfiles
	    s.checkLogfiles()
	  File "/Library/Python/2.7/site-packages/buildbot/status/buildstep.py", line 311, in checkLogfiles
	    self.logs = [l for l in self.logs if l.hasContents()]
	  File "/Library/Python/2.7/site-packages/buildbot/status/logfile.py", line 263, in hasContents
	    assert not self._isNewStyle, "not available in new-style steps"
	exceptions.AssertionError: not available in new-style steps

Change History (4)

comment:1 Changed 5 years ago by vlovich

*I get an exception on startup.

comment:3 Changed 5 years ago by Dustin J. Mitchell <dustin@…>

comment:4 Changed 5 years ago by Mikhail Sobolev <mss@…>

  • Owner set to Mikhail Sobolev <mss@…>
  • Resolution set to fixed
  • Status changed from new to closed

In 32ce14f9def3b3f7596d25f2cbe70578d2051ea9:

Merge pull request #1254 from djmitche/bug2934

Test for and fix new-style step assertions triggered by Buildbot code

Fixes ticket:2934

Note: See TracTickets for help on using tickets.