Bug 10010 - CheckOutLayers build step fails if OPTIMIZED_GIT_CLONE is not True
Summary: CheckOutLayers build step fails if OPTIMIZED_GIT_CLONE is not True
Status: RESOLVED FIXED
Alias: None
Product: AutoBuilder
Classification: Infrastructure
Component: autobuilder (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Undecided normal
Target Milestone: 2.2 M3
Assignee: Bill Randle
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-07-22 22:17 UTC by Bill Randle
Modified: 2016-07-27 14:33 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.