Bug 10010

Summary: CheckOutLayers build step fails if OPTIMIZED_GIT_CLONE is not True
Product: [Infrastructure] AutoBuilder Reporter: Bill Randle <bill.randle>
Component: autobuilderAssignee: Bill Randle <bill.randle>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: infras.ab.watcher, Infras.watcher, pidge
Version: 2.2   
Target Milestone: 2.2 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Bill Randle 2016-07-22 22:17:51 UTC
If OPTIMIZED_GIT_CLONE is set False (because, for example, the git trash dir is on a different filesystem than the build directory), then the build fails in CheckOutLayers step with an error message like:

File "/home/pokybuild/yocto-autobuilder/lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/steps/source/yoctogit.py", line 599, in _mirrorExists
    mirror = self.mirrordir + "/" + self.repourl.replace("git://", "") + "/"
exceptions.TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

This happens because if OPTIMIZED_GIT_CLONE is not True, mirrordir is not set.
Comment 1 Bill Randle 2016-07-23 15:12:06 UTC
Patch sent to mailing list.
Comment 2 Bill Randle 2016-07-27 14:33:07 UTC
Merged to master.