[yocto] autobuilder repourl by commit

Flanagan, Elizabeth elizabeth.flanagan at intel.com
Wed Apr 23 21:52:25 PDT 2014


Jate,

Ah, looks like you're correct.

If you pull the most recent master, I should have a fix for this.
ResolveLayerHead was misbehaving. It's testing a full build out on dev
right now, but this should fix it.

-b

On Wed, Apr 23, 2014 at 9:17 PM, Jate S <jatedev at gmail.com> wrote:
> I checked out branch master, and I went with your suggestions on the
> updated GIT environment variables.
>
> On the dora branch of the autobuilder, a forced build from the web
> interface would use the 'hash' properties of the repos successfully.
>
> In the master branch, this no longer seems to be the case. Now the
> forced build does checkout the current head of poky known from  the
> result of ResolveLayerHead.
>
> I just noticed that the hash from your example happened to match the
> HEAD of poky/master at the time. Perhaps you could try it again now.
> The current master is now at 68ef727cdcef439e9bfc57996f3cebfc0e07789e.
>
>
> - Jate S.
>
> On Wed, Apr 23, 2014 at 1:16 PM, Flanagan, Elizabeth
> <elizabeth.flanagan at intel.com> wrote:
>> Hi Jate,
>>
>> So, I'm going off current master. I would probably check out the
>> current master branch as we made a lot of changes in how we dealt with
>> source stamps between now and dora.
>>
>> On Wed, Apr 23, 2014 at 9:20 AM, Jate S <jatedev at gmail.com> wrote:
>>> I am on yocto-autobuilder dora branch. I would like my Nightly
>>> scheduler check out some layers using the 'hash' repo setting. The
>>> default behavior seems to be that a nightly build does not receive
>>> 'commit_layername' information, and thus the CheckOutLayers object
>>> just uses the HEAD.
>>
>> So, in master on my dev cluster at
>> http://dev-ab-master.yoctodev.org:8010/builders/nightly/builds/9
>>
>> I'm using a buildset-config/nightly.conf that contains:
>>
>> [nightly]
>> ....
>> repos: [{'poky':
>>             {'repourl':'git://git.yoctoproject.org/poky',
>>              'layerversion':{'core':'meta', 'yoctobsp':'meta-yocto-bsp'},
>>              'hash': '4b5e855670bddb0ffc4cc7b24005e53e3eefcd69'}},
>>
>> That *seems* to be working ok. If you can update to master, that
>> should fix things, although this should also work in the dora branch.
>>
>> Be warned, if you do update, there are some additional
>> autobuilder.conf options you'll need to add:
>>
>> [GitSettings]
>> OPTIMIZED_GIT_CLONE = True
>> OGIT_TRASH_DIR = /tmp/yocto-autobuilder/git/trash
>> OGIT_MIRROR_DIR = /tmp/yocto-autobuilder/git/mirror
>>
>>>
>>> Where might I go about passing these properties in so that
>>> CheckOutLayers will use my 'hash' setting?
>>>
>>> - Jate S.
>>>
>>> On Thu, Apr 17, 2014 at 2:09 PM, Flanagan, Elizabeth
>>> <elizabeth.flanagan at intel.com> wrote:
>>>> Jate,
>>>>
>>>> You can use the 'hash' property. Just make sure you have no other
>>>> branch/tag properties in the repo description.
>>>>
>>>> So, something like this should work:
>>>>
>>>> repos: [{'poky':
>>>>             {'repourl':'git://git.yoctoproject.org/poky',
>>>>              'hash':'7831ae829103ab283645'}},
>>>>
>>>>
>>>> On Thu, Apr 17, 2014 at 10:23 AM, Jate S <jatedev at gmail.com> wrote:
>>>>> I am customizing the Yocto autobuilder for my own project. I would like to
>>>>> specify a checksum for the repourl for poky. What property do I need to add?
>>>>> I have tried adding the property commit, but it does not appear to work.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> - Jate S.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Elizabeth Flanagan
>>>> Yocto Project
>>>> Build and Release
>>
>>
>>
>> --
>> Elizabeth Flanagan
>> Yocto Project
>> Build and Release



-- 
Elizabeth Flanagan
Yocto Project
Build and Release



More information about the yocto mailing list