[Buildbot-commits] [Buildbot] #2329: Rebuild via web shows error incorrectly
Buildbot
nobody at buildbot.net
Tue Jul 17 07:43:36 UTC 2012
#2329: Rebuild via web shows error incorrectly
----------------------+-----------------------
Reporter: Jc2k | Owner:
Type: undecided | Status: new
Priority: major | Milestone: undecided
Version: master | Keywords:
----------------------+-----------------------
With a recent snapshot of master (and by eye, the faulty code is still
there on latest master) pressing the rebuild button works but shows an
error message:
{{{
rebuilding a build failed (2140L, {'buildername': 2138L})
}}}
The faulty check is in buildbot/status/web/build.py:
{{{
tup = yield bc.rebuildBuild(b, reason, extraProperties)
# check that (bsid, brids) were properly stored
if not (isinstance(tup, tuple) and
isinstance(tup[0], int) and
isinstance(tup[1], dict)):
msg = "rebuilding a build failed "+ str(tup)
}}}
It looks like it should work, apart from:
{{{
>>> isinstance(2L, int)
False
>>> isinstance(2L, long)
True
}}}
However i'm not sure if the db should be leaking {{{long}}}'s or if other
database backends do return {{{int}}} so opted to file a bug rather than
sending a pull request.
--
Ticket URL: <http://trac.buildbot.net/ticket/2329>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the Commits
mailing list