public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Anton Mikanovich <amikan@ilbers.de>,
	isar-users <isar-users@googlegroups.com>
Cc: Baurzhan Ismagulov <ibr@ilbers.de>
Subject: Re: Error logging broken with next?
Date: Tue, 24 May 2022 17:57:32 +0200	[thread overview]
Message-ID: <76ed79b1-4397-4329-4332-7fa1c45fe56b@siemens.com> (raw)
In-Reply-To: <2be1421c-b534-c5c7-cf5e-1510cc3c81a5@siemens.com>

On 24.05.22 17:54, Jan Kiszka wrote:
> On 24.05.22 16:23, Anton Mikanovich wrote:
>> 23.05.2022 22:06, Jan Kiszka wrote:
>>> It's actually much simpler: Just call "bitbake borken-target" on the
>>> shell, and you will only get the lengthy backtrace but not log report.
>>>
>>> I'm not yet down to the core of the problem, but when you force such a
>>> failure in upstream poky (today's master), you also get no immediate
>>> output of bitbake - but then the knotty UI jumps in and does a
>>>
>>> Log data follows:
>>> | DEBUG: Executing python function extend_recipe_sysroot
>>> ...
>>> | DEBUG: Python function patch_do_patch finished
>>> | DEBUG: Executing shell function do_fix_readlib_c
>>> | FAIL!
>>> | WARNING: exit code 1 from a shell command.
>>> | DEBUG: Python function do_patch finished
>>> ERROR: Task (/poky/meta/recipes-core/glibc/glibc_2.35.bb:do_patch)
>>> failed with exit code '1'
>>>
>>>
>>> I've done this to poky to trigger it:
>>>
>>> diff --git a/meta/recipes-core/glibc/glibc_2.35.bb
>>> b/meta/recipes-core/glibc/glibc_2.35.bb
>>> index 6ea5b1efb5..9500c8a128 100644
>>> --- a/meta/recipes-core/glibc/glibc_2.35.bb
>>> +++ b/meta/recipes-core/glibc/glibc_2.35.bb
>>> @@ -91,6 +91,8 @@ do_patch:append() {
>>>   }
>>>     do_fix_readlib_c () {
>>> +    echo "FAIL!"
>>> +    false
>>>       sed -i -e
>>> 's#OECORE_KNOWN_INTERPRETER_NAMES#${EGLIBC_KNOWN_INTERPRETER_NAMES}#'
>>> ${S}/elf/readlib.c
>>>   }
>>>   Analogous trigger for isar:
>>>
>>> diff --git a/meta-isar/recipes-app/example-raw/files/rules
>>> b/meta-isar/recipes-app/example-raw/files/rules
>>> index a1167375..ed63d364 100644
>>> --- a/meta-isar/recipes-app/example-raw/files/rules
>>> +++ b/meta-isar/recipes-app/example-raw/files/rules
>>> @@ -5,4 +5,5 @@
>>>   # we do violate debian quality rules here, but on purpose to demo how
>>>   # to deal with it
>>>   override_dh_usrlocal:
>>> -    true
>>> +    echo "FAIL!"
>>> +    false
>>>
>>> So, Isar has a bug here of not letting knotty (as default UI) do its
>>> job it seems to me. Didn't this work before? Didn't we also have those
>>> duplicate dumps in the past that upstream bitbake seem to have resolved
>>> now?
>>>
>>>
>>> BTW, I've received first reports of this bug from the field today. We
>>> must fix this before the release, or our users will kill us.
>>>
>>> Jan
>>>
>> I didn't find any differences between Yocto and Isar.
>> If putting glibc_2.35.bb change example into Isar it behaves in the same
>> way
>> outputting full error log.
>> Otherwise if executing the second example in Yocto (running bash code from
>> python task with bb.build.exec_func) it will output only exception message
>> just like Isar.
>> So there are no issues in Isar itself, it behaves just like Yocto.
>> If we need to have full log printed Bitbake should be fixed.
>>
> 
> Ok, then the environment of the glibc case is not the same as our for
> the dpkg_runbuild. The latter is broken, and we need to understand how
> to restore its output in Isar - very likely not in bitbake.
> 

Just thinking loudly: Is it our try-finally that changes the output
trigger for knotty?

    try:
        bb.build.exec_func("dpkg_runbuild", d)
    finally:
        bb.build.exec_func("dpkg_undo_mounts", d)
        bb.utils.unlockfile(lock)

Jan

-- 
Siemens AG, Technology
Competence Center Embedded Linux

  reply	other threads:[~2022-05-24 15:57 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-13 16:49 Jan Kiszka
2022-05-16  7:49 ` Baurzhan Ismagulov
2022-05-16 11:05   ` Jan Kiszka
2022-05-17 12:35 ` Anton Mikanovich
2022-05-17 13:42   ` Anton Mikanovich
2022-05-19  6:01     ` Jan Kiszka
2022-05-23 19:06       ` Jan Kiszka
2022-05-24  7:43         ` Anton Mikanovich
2022-05-24 14:23         ` Anton Mikanovich
2022-05-24 15:54           ` Jan Kiszka
2022-05-24 15:57             ` Jan Kiszka [this message]
2022-05-24 16:05               ` Anton Mikanovich
2022-05-24 16:07                 ` Jan Kiszka
2022-05-24 16:14                   ` Anton Mikanovich
2022-05-24 16:36                     ` Jan Kiszka
2022-05-24 19:50                       ` Anton Mikanovich
2022-05-25  5:30                         ` Anton Mikanovich
2022-05-25  6:40                           ` Jan Kiszka
2022-05-24 16:02             ` Anton Mikanovich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=76ed79b1-4397-4329-4332-7fa1c45fe56b@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=amikan@ilbers.de \
    --cc=ibr@ilbers.de \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox