[Buildbot-devel] fun race condition in old web front end for buildbot

Dustin J. Mitchell dustin at v.igoro.us
Sat Mar 28 03:47:17 UTC 2015


Not quite a race condition, but a bug nonetheless.  It looks like this
occurs when the force scheduler name doesn't correspond to any
configured scheduler.

Any idea why that might have been the case when the failure occurred
and not later?

Dustin

On Fri, Mar 27, 2015 at 5:55 PM, Dan Kegel <dank at kegel.com> wrote:
> This is probably a "who cares", but:
>
> Running buildmaster circa April 2014, cf4c10c2372db16290c2bd1ab86d4a14227d5f13.
>
> I told buildmaster to reload its configuration, then clicked on force
> build on a builder (with a web page
> that was already open before the reconfig).  It aborted with
>
> web.Server Traceback (most recent call last):
> exceptions.UnboundLocalError: local variable 'msg' referenced before assignment
> /home/buildbot/master-state/sandbox/local/lib/python2.7/site-packages/twisted/internet/defer.py:1070
> in _inlineCallbacks
> 1069            else:
> 1070                result = g.send(result)
> 1071        except StopIteration:
> /home/buildbot/master-state/sandbox/buildbot-git/master/buildbot/status/web/builder.py:78
> in force
> 77        # send the user back to the builder page
> 78        defer.returnValue(msg)
> 79
> exceptions.UnboundLocalError: local variable 'msg' referenced before assignment
>
> and no build was queued.  Retrying it later worked fine.
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel




More information about the devel mailing list