[users at bb.net] 0.9.0rc1 force build owners bug and many-to-many tags bug
Dave Vitek
dvitek at grammatech.com
Fri Jul 29 19:04:31 UTC 2016
Hi all,
I tried to sign up to log into the issue tracker but the capta is
evidently not working. If anyone wants to give me the username dvitek
that would work.
1) With the web application, the "force build" form seems to ignore the
contents of the "Your name" field. It always sends email to anonymous@
instead of the username provided by the client. The "Build properties"
end up saying:
owner anonymous Force Build Form
Old versions of buildbot would email the specified username if the
forced build failed. The new one just causes bounces because it always
emails anonymous at .
2) If I take an existing buildmaster, adjust the configuration so it has
a many-to-many (builder, tag) relation, and then run "buildbot reconfig"
I get a couple exceptions. I do not know if the same thing happens if
there is no pre-existing database. In the old configuration that did
not cause problems where no builder had more than one tag. Some old
tags went away entirely.
This constriant violation happens every time buildbot reconfig or
buildbot start runs.
2016-07-29 14:33:01-0400 [-] Got fatal Exception on DB
Traceback (most recent call last):
Failure: sqlalchemy.exc.IntegrityError:
(pysqlite2.dbapi2.IntegrityError) columns builderid, tagid are not
unique [SQL: u'INSERT INTO builders_tags (builderid, tagid) VALUES (?,
?)'] [parameters: ((172, 23), (172, 23))]
2016-07-29 14:33:01-0400 [-] Unhandled error in Deferred:
2016-07-29 14:33:01-0400 [-] Unhandled Error
Traceback (most recent call last):
File
"/tmp/neiltmp/lib/python2.7/site-packages/Twisted-16.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
line 434, in errback
self._startRunCallbacks(fail)
File
"/tmp/neiltmp/lib/python2.7/site-packages/Twisted-16.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
line 501, in _startRunCallbacks
self._runCallbacks()
File
"/tmp/neiltmp/lib/python2.7/site-packages/Twisted-16.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
line 588, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File
"/tmp/neiltmp/lib/python2.7/site-packages/Twisted-16.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
line 1184, in gotResult
_inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
File
"/tmp/neiltmp/lib/python2.7/site-packages/Twisted-16.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
line 1126, in _inlineCallbacks
result = result.throwExceptionIntoGenerator(g)
File
"/tmp/neiltmp/lib/python2.7/site-packages/Twisted-16.2.0-py2.7-linux-x86_64.egg/twisted/python/failure.py",
line 389, in throwExceptionIntoGenerator
return g.throw(self.type, self.value, self.tb)
File
"/tmp/neiltmp/lib/python2.7/site-packages/buildbot-0.9.0rc1-py2.7.egg/buildbot/db/builders.py",
line 69, in updateBuilderInfo
defer.returnValue((yield self.db.pool.do(thd)))
File
"/tmp/neiltmp/lib/python2.7/site-packages/Twisted-16.2.0-py2.7-linux-x86_64.egg/twisted/python/threadpool.py",
line 246, in inContext
result = inContext.theWork()
File
"/tmp/neiltmp/lib/python2.7/site-packages/Twisted-16.2.0-py2.7-linux-x86_64.egg/twisted/python/threadpool.py",
line 262, in <lambda>
inContext.theWork = lambda: context.call(ctx, func, *args,
**kw)
File
"/tmp/neiltmp/lib/python2.7/site-packages/Twisted-16.2.0-py2.7-linux-x86_64.egg/twisted/python/context.py",
line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func,
*args, **kw)
File
"/tmp/neiltmp/lib/python2.7/site-packages/Twisted-16.2.0-py2.7-linux-x86_64.egg/twisted/python/context.py",
line 81, in callWithContext
return func(*args,**kw)
File
"/tmp/neiltmp/lib/python2.7/site-packages/buildbot-0.9.0rc1-py2.7.egg/buildbot/db/pool.py",
line 175, in __thd
rv = callable(arg, *args, **kwargs)
File
"/tmp/neiltmp/lib/python2.7/site-packages/buildbot-0.9.0rc1-py2.7.egg/buildbot/db/builders.py",
line 65, in thd
for tagid in tagsids]).close()
File
"/tmp/neiltmp/lib/python2.7/site-packages/sqlalchemy/engine/base.py",
line 914, in execute
return meth(self, multiparams, params)
File
"/tmp/neiltmp/lib/python2.7/site-packages/sqlalchemy/sql/elements.py",
line 323, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams,
params)
File
"/tmp/neiltmp/lib/python2.7/site-packages/sqlalchemy/engine/base.py",
line 1010, in _execute_clauseelement
compiled_sql, distilled_params
File
"/tmp/neiltmp/lib/python2.7/site-packages/sqlalchemy/engine/base.py",
line 1146, in _execute_context
context)
File
"/tmp/neiltmp/lib/python2.7/site-packages/sqlalchemy/engine/base.py",
line 1341, in _handle_dbapi_exception
exc_info
File
"/tmp/neiltmp/lib/python2.7/site-packages/sqlalchemy/util/compat.py",
line 202, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File
"/tmp/neiltmp/lib/python2.7/site-packages/sqlalchemy/engine/base.py",
line 1116, in _execute_context
context)
File
"/tmp/neiltmp/lib/python2.7/site-packages/sqlalchemy/engine/default.py",
line 447, in do_executemany
cursor.executemany(statement, parameters)
sqlalchemy.exc.IntegrityError:
(pysqlite2.dbapi2.IntegrityError) columns builderid, tagid are not
unique [SQL: u'INSERT INTO builders_tags (builderid, tagid) VALUES (?,
?)'] [parameters: ((172, 23), (172, 23))]
This exception occurred the when reconfig ran after previously running
without the tag changes.
2016-07-29T14:35:37-0400 [-] during reconfig:
Traceback (most recent call last):
File
"/usr/local/lib/python2.7/dist-packages/Twisted-16.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
line 1274, in unwindGenerator
return _inlineCallbacks(None, gen, Deferred())
File
"/usr/local/lib/python2.7/dist-packages/Twisted-16.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
line 1128, in _inlineCallbacks
result = g.send(result)
File
"/usr/local/lib/python2.7/dist-packages/buildbot-0.9.0rc1-py2.7.egg/buildbot/process/measured_service.py",
line 29, in reconfigServiceWithBuildbotConfig
yield super(MeasuredBuildbotServiceManager,
self).reconfigServiceWithBuildbotConfig(new_config)
File
"/usr/local/lib/python2.7/dist-packages/Twisted-16.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
line 1274, in unwindGenerator
return _inlineCallbacks(None, gen, Deferred())
--- <exception caught here> ---
File
"/usr/local/lib/python2.7/dist-packages/Twisted-16.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
line 1128, in _inlineCallbacks
result = g.send(result)
File
"/usr/local/lib/python2.7/dist-packages/buildbot-0.9.0rc1-py2.7.egg/buildbot/util/service.py",
line 426, in reconfigServiceWithBuildbotConfig
yield svc.reconfigServiceWithSibling(config_sibling)
File
"/usr/local/lib/python2.7/dist-packages/buildbot-0.9.0rc1-py2.7.egg/buildbot/util/service.py",
line 141, in reconfigServiceWithSibling
if self.configured and sibling == self:
File
"/usr/local/lib/python2.7/dist-packages/buildbot-0.9.0rc1-py2.7.egg/buildbot/util/__init__.py",
line 138, in __cmp__
return cmp(self_list, them_list)
exceptions.TypeError: cannot compare sets using cmp()
2016-07-29T14:35:37-0400 [-] WARNING: reconfig partially applied; master
may malfunction
A couple other random questions after the upgrade to 0.9:
Is there any way to make the "Builders" page always show the result of
the most recent run, even if it's older than the time horizon it seems
to want to show?
Do you know what it means if a builder's page shows a build is
'building' but the build's page says it is 'finished (n days ago)'?
- Dave
PS
There might be a javascript memory drag on the "builders" page. If I
leave it open overnight, chrome will invariably have a crashed tab in
the morning.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20160729/9ae52a2d/attachment.html>
More information about the users
mailing list