[meta-freescale] [OE-core] [PATCH RFC 1/3] insane: Split do_package_qa into a separate task (from do_package)

Otavio Salvador otavio at ossystems.com.br
Fri Jul 11 05:14:11 PDT 2014


Hello Richard,

On Fri, Jul 11, 2014 at 5:27 AM, Richard Purdie
<richard.purdie at linuxfoundation.org> wrote:
> On Thu, 2014-07-10 at 23:43 -0300, Otavio Salvador wrote:
>> On Wed, Jul 9, 2014 at 5:15 PM, Richard Purdie
>> <richard.purdie at linuxfoundation.org> wrote:
>> > Its possible to run the package QA checks as a separate task rather than
>> > as part of the do_package task. This offers more parallelism but the
>> > fact that made me propose this is that ideally we'd like to access
>> > pkgdata to help add new tests and to do that, we need to run later in
>> > the task list. We also need to add in RDEPENDS to the task which apply
>> > to do_package_write_* but not do_package. See the subsequent patches
>> > for why this is desireable.
>> >
>> > If we split into a separate task, we need to add in calls to read
>> > the sub package data, build the cache structure used by do_package and
>> > cover the task with sstate (which is empty and just acts as a stamp
>> > saying it passed package QA). We also need to handle our own
>> > dependencies.
>> >
>> > Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
>
> I've just seen this email. I did see the failure from the overnight
> build and already sent a reply suggesting how this can be fixed, it
> should be a simple change.

Yes; I saw the proposed fix and I will do it here and test.

>> When I see a RFC serie I expect people to wait some days /for
>> comments/. I learned today those are already merged and /no comment
>> time/ has been given.
>
> The whole RFC was not merged. The previous RFC was and when that
> happened, to avoid more rebuilds, I chose to merge some parts of the
> second one since there appeared low risk.
>
> I send out a lot of patches, in general I get zero replies to most of
> them so its hard to know when I've waited "long enough". I did seek out
> and talk to some people about those RFCs and the feedback was positive,
> we all agree that the improvements to the dependency checking outweigh
> any downsides, including to be this issue.

Right but we could have it tried in AB and, as other times we did, do
the fixes to avoid master breakage.

I liked the patches and I did look at them. I was going to test the
stuff when I noticed it were merged. For RFC patches to be sincere I
expect them to be send /again/ without being RFC prior merging.

When you intend to give a short time for review/comment please comment
this in the series; so if someone wants more time can comment.

>> The problem I found is that running the QA checks in another task
>> seems to break some use-cases.
>
> I think in this case the usage is rather horrid and not something I'd
> say we've ever suggested or supported.

Well ... I'd prefer Freescale to fix their binaries for sure but I
cannot do it myself ;-)

>> In the libfslcodec (it is a binary blob provided by Freescale for
>> multimedia) we have:
>>
>> ...
>> python populate_packages_prepend() {
>>     ...
>>     # FIXME: All binaries lack GNU_HASH in elf binary but as we don't have
>>     # the source we cannot fix it. Disable the insane check for now.
>>     for p in d.getVar('PACKAGES', True).split():
>>         d.setVar("DEBIAN_NOAUTONAME_%s" % p, "1")
>>
>>         if p == 'libfslcodec-test-bin':
>>             # FIXME: includes the DUT .so files so we need to deploy those
>>             d.appendVar("INSANE_SKIP_%s" % p, "ldflags textrel libdir")
>>         else:
>>             d.appendVar("INSANE_SKIP_%s" % p, "ldflags textrel")
>>     ...
>> }
>>
>> In this case the INSANE_SKIP var is not being set on time. If we check
>> the value it is being set but it seems to be too late.
>>
>> How we can address it?
>
> Should be as simple as s/populate_packages_prepend//. The
> DEBIAN_NOAUTONAME doesn't really fit the description of the code there
> FWIW, I know why you're doing it but its not what the comment says.

I will review it.

> I would not recommend setting variables in function prepends like this,
> its ugly and error prone, as you've just found out.

Any suggested better way of to do it?

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


More information about the meta-freescale mailing list