[Buildbot-commits] [Buildbot] #1750: gitpoller.py don't take care of git clone exit status code

Buildbot nobody at buildbot.net
Mon Dec 27 17:44:11 UTC 2010


#1750: gitpoller.py don't take care of git clone exit status code
-------------------+-----------------------
Reporter:  atomik  |      Owner:
    Type:  defect  |     Status:  new
Priority:  major   |  Milestone:  undecided
 Version:  0.8.3   |   Keywords:
-------------------+-----------------------
 Hello,

 I'm finding that, in gitpoller.py (line 68), you don't take care of git
 clone exit status.

 {{{
  def startService(self):
         base.PollingChangeSource.startService(self)

         if not os.path.exists(self.workdir):
             log.msg('gitpoller: creating working dir %s' % self.workdir)
             os.makedirs(self.workdir)

         if not os.path.exists(self.workdir + r'/.git'):
             log.msg('gitpoller: initializing working dir')
             # RETURN CODE SHOULD BE CHECKED HERE:
             os.system(self.gitbin + ' clone ' + self.repourl + ' ' +
 self.workdir)
 }}}

 This cause that, if you don't have access to git server, or have dns
 error, or have network error, and every other errors during git clone
 command, you won't be able to troubleshoot what happened, '''the error
 will be misleading, because it occurs on the next executed command'''.

-- 
Ticket URL: <http://trac.buildbot.net/ticket/1750>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list