#1885: gitpoller.py fails in when FETCH_HEAD points to an unexpected branch
----------------------+--------------------------------
Reporter:  kostja     |      Owner:
    Type:  undecided  |     Status:  new
Priority:  major      |  Milestone:  undecided
 Version:  0.8.3p1    |   Keywords:  git, change_source
----------------------+--------------------------------
 gitpoller.py still sometimes fails with this error:
 gitpoller: repo poll failed: [Failure instance: Traceback:
 exceptions.EnvironmentError: call '['log', 'HEAD..FETCH_HEAD',
  '--format=%H']' exited with error '128', output: ''

 even though it was apparently fixed in 8.3-p1:

 http://comments.gmane.org/gmane.comp.python.buildbot.devel/6676

 The problem is, I suspect, in the fact that git fetch, without full branch
 specification, fetches all branches, but makes FETCH_HEAD point to the
 first branch *alphabetically*, and thus git log HEAD..FETCH_HEAD may
 return not what gitpoller.py expects.

 The problem is quite nasty, since Buildbot just stops making builds when
 the repo that is being watched receives some new unmerged branch.

 Right now I've installed gitpoller.py from the master, which has extended
 diagnostics, and will wait for the problem to re-occur.

 Note, that the bug goes away after a fresh install with the same
 configuration, *and* after cleaning up/renaming branches in the remote
 repo. The need for a fresh install comes, apparently, from the fact that
 gitpoller.py leaves corrupted/garbage repositories around in case of an
 exception (so please fix that too).

-- 
Ticket URL: <http://trac.buildbot.net/ticket/1885>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits

Reply via email to