public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: isar-users <isar-users@googlegroups.com>
Subject: Re: sbuild race with sporadic build breakages
Date: Mon, 17 Jun 2024 14:55:09 +0200	[thread overview]
Message-ID: <463b9e11-5885-476f-bfb0-d2d199c8cc9e@siemens.com> (raw)
In-Reply-To: <Zm/0sI/uuxk2u0wB@ilbers.de>

On 17.06.24 10:32, Baurzhan Ismagulov wrote:
> On 2024-06-17 09:44, Jan Kiszka wrote:
>> On 24.05.24 13:55, Anton Mikanovich wrote:
>>> 24/05/2024 13:42, Jan Kiszka wrote:
>>>> Why speaks against this?
>>>>
>>>> diff --git a/meta/classes/sbuild.bbclass b/meta/classes/sbuild.bbclass
>>>> index f1193c20..3f27a2ef 100644
>>>> --- a/meta/classes/sbuild.bbclass
>>>> +++ b/meta/classes/sbuild.bbclass
>>>> @@ -7,7 +7,7 @@ SCHROOT_MOUNTS ?= ""
>>>>     inherit crossvars
>>>>   -SBUILD_CHROOT ?=
>>>> "${DEBDISTRONAME}-${SCHROOT_USER}-${ISAR_BUILD_UUID}-${@os.getpid()}"
>>>> +SBUILD_CHROOT ?=
>>>> "${DEBDISTRONAME}-${SCHROOT_USER}-${ISAR_BUILD_UUID}-${BB_TASKHASH}"
>>>>     SBUILD_CONF_DIR ?= "${SCHROOT_CONF}/${SBUILD_CHROOT}"
>>>>   SCHROOT_CONF_FILE ?= "${SCHROOT_CONF}/chroot.d/${SBUILD_CHROOT}"
>>>>
>>>> We definitely need to get rid of that getpid.
>>>>
>>> Ok, I can prepare a patch and we can try.
>>> The only point we shouldn't loose is task-taskhash mapping, but hope it
>>> will
>>> be ok with the existing logging of schroot session during its creation.
>>
>> What's the status of this? Just triggered this bug once again over isar
>> next, reminding me of it.
> 
> Anton will test and send the patch these days.
> 
> We are still analyzing the root cause. The issue is not reliably reproducible.
> Given that bitbake differentiates tasks by pid in run.do_* and log.do_* files,
> I think the pid itself should be fine. The mechanism of getting the pid could
> have something, although I'm wondering what kind of issues @os.getpid() could
> have.
> 
> Also, Anton's log of 2024-05-24 shows spurious ID change inside a signle sbuild
> call:
> 
> ERROR: Logfile of failure stored in: /workspace/build-auto/isar_master/1364/build/tmp/work/debian-bookworm-mipsel/hello-isar/0.5-b48d156-r0/temp/log.do_dpkg_build.3652871
> ...
> | I: NOTICE: Log filtering will replace 'var/run/schroot/mount/isar-jenkins-6c34c167-bdc8-498f-828a-50cd88b412b0-3652871-9097eeed-6320-4cf9-b2b9-229b1d1fe5a0' with '<<CHROOT>>'
> ...
> | E: /etc/schroot/chroot.d/isar-jenkins-6c34c167-bdc8-498f-828a-50cd88b412b0-2897105: Failed to stat file: No such file or directory
> 
> And this is not a string corruption, this directory did actually exist at some
> point. So looks rather like sbuild having a list of sessions and picking the
> wrong one at some point.
> 
> By saying "We definitely need to get rid of that getpid", what kind of scenario
> do you have in mind?

I think the issue is when the PID is collected into variables. From the
logs, this does not work reliable, therefore the mismatch and the failure.

Jan

-- 
Siemens AG, Technology
Linux Expert Center


  reply	other threads:[~2024-06-17 12:55 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-23 17:08 Jan Kiszka
2024-05-24  7:26 ` MOESSBAUER, Felix
2024-05-24  8:08 ` Anton Mikanovich
2024-05-24  8:52   ` Jan Kiszka
2024-05-24  9:30     ` Anton Mikanovich
2024-05-24 10:42       ` Jan Kiszka
2024-05-24 11:55         ` Anton Mikanovich
2024-06-17  7:44           ` Jan Kiszka
2024-06-17  8:32             ` Baurzhan Ismagulov
2024-06-17 12:55               ` Jan Kiszka [this message]
2024-06-17 14:12                 ` Anton Mikanovich
2024-06-17 14:50                   ` Jan Kiszka
2024-06-24  8:00 ` Uladzimir Bely
2024-06-24  9:13   ` Jan Kiszka
2024-09-09 10:53 ` Anton Mikanovich
2024-10-01  7:35   ` 'Jan Kiszka' via isar-users
2024-11-11  9:31     ` 'Jan Kiszka' via isar-users
2024-11-11 10:44       ` Anton Mikanovich
2024-11-11 12:04         ` 'Jan Kiszka' via isar-users
2024-11-11 14:28           ` 'Jan Kiszka' via isar-users
2024-11-11 14:37             ` Anton Mikanovich
2024-11-11 14:52               ` 'Jan Kiszka' via isar-users
2024-11-11 15:17                 ` Anton Mikanovich
2024-11-11 15:56                   ` 'Jan Kiszka' via isar-users
2024-11-11 17:58                     ` 'MOESSBAUER, Felix' via isar-users
2024-11-11 19:48                       ` 'Jan Kiszka' via isar-users
2024-11-13  6:51                         ` 'MOESSBAUER, Felix' via isar-users
2024-11-13  7:00                           ` 'Jan Kiszka' via isar-users
2024-12-05 15:57                     ` 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=463b9e11-5885-476f-bfb0-d2d199c8cc9e@siemens.com \
    --to=jan.kiszka@siemens.com \
    --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