All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: <tony.rex@ericsson.com>, <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH 0/1] base.bbclass: Fix the recipe parsing race issue
Date: Fri, 15 Aug 2025 11:25:48 +0200	[thread overview]
Message-ID: <DC2W6ED7YCUS.1V4VLCIHMFF17@bootlin.com> (raw)
In-Reply-To: <20250814172348.3882586-1-tony.rex@ericsson.com>

On Thu Aug 14, 2025 at 7:23 PM CEST, Tony Rex via lists.openembedded.org wrote:
> It seems that the race condition happens when doing do_fetch on really small repos
> and it can be difficult to reproduce so below the other case with floating tag/branch
> that is easier to verify.
>
> To verify the floating tag/branch issue have s simple recipe hello_1.0.bb and set the SRC_URI to
> SRC_URI = "git://<repository>;protocol=https;user=${USER};branch=master;tag=v1.0"
>
> run command bitbake hello everything builds.
>  
> Apply the patch
>
> run command bitbake hello
> ERROR: hello-1.0-r1 do_fetch: Bitbake Fetcher Error: FetchError("Recipe uses a floating tag/branch 'v1.0' for repo '<repository>' without a fixed SRCREV yet doesn't call bb.fetch2.get_srcrev() (use SRCPV in PV for OE).", None)
> ERROR: Logfile of failure stored in: hello/1.0/temp/log.do_fetch.3289932
> ERROR: Task (hello/hello_1.0.bb:do_fetch) failed with exit code '1'
>
> Tony Rex (1):
>   base.bbclass: Fix the recipe parsing race issue
>
>  meta/classes-global/base.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Hi Tony,

Thanks for your patch.

It looks like this is breaking some builds with the following error:

oeqa.utils.subprocesstweak.OETestCalledProcessError: Command '. /srv/pokybuild/yocto-worker/qemux86-64/build/build/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0/testsdkext/environment-setup-core2-64-poky-linux > /dev/null; devtool add kernel-module-hello-world https://git.yoctoproject.org/git/kernel-module-hello-world;' returned non-zero exit status 1.
...
ERROR: Bitbake Fetcher Error: FetchError("Recipe uses a floating tag/branch 'master' for repo 'git.yoctoproject.org/git/kernel-module-hello-world' without a fixed SRCREV yet doesn't call bb.fetch2.get_srcrev() (use SRCPV in PV for OE).", None)

https://autobuilder.yoctoproject.org/valkyrie/#/builders/68/builds/2284
https://autobuilder.yoctoproject.org/valkyrie/#/builders/30/builds/2199
https://autobuilder.yoctoproject.org/valkyrie/#/builders/16/builds/2247

Can you have a look at this error please?

Best regards,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



  parent reply	other threads:[~2025-08-15  9:25 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-14 17:23 [PATCH 0/1] base.bbclass: Fix the recipe parsing race issue Tony Rex
2025-08-14 17:23 ` [PATCH 1/1] " Tony Rex
2025-08-15  9:04   ` [OE-core] " Alexander Kanavin
2025-08-15 12:18     ` Tony Rex
2025-08-15  9:25 ` Mathieu Dubois-Briand [this message]
2025-08-15 15:16   ` [OE-core] [PATCH 0/1] " Tony Rex
2025-08-19  8:53     ` Alexander Kanavin
2025-08-19 21:10       ` Tony Rex
2025-08-20  7:16         ` Alexander Kanavin
2025-08-20  9:21           ` Tony Rex
2025-08-20 10:18         ` Gyorgy Sarvari
2025-08-20 11:53           ` Tony Rex
2025-08-20 15:44             ` Gyorgy Sarvari
     [not found]             ` <185D8414DCE1B6A2.6947@lists.openembedded.org>
2025-08-20 16:11               ` Gyorgy Sarvari
2025-08-21  7:10                 ` Tony Rex
2025-08-21  7:30                   ` Gyorgy Sarvari
2025-08-21 15:48                     ` Tony Rex
2025-08-22 11:26                       ` Tony Rex
2025-08-22 14:09                         ` Gyorgy Sarvari
2025-08-25 15:49                           ` Tony Rex
2025-08-25 17:07                             ` Tony Rex
2025-08-25 18:31                             ` Gyorgy Sarvari
2025-08-25 20:14                               ` Gyorgy Sarvari
2025-08-26  6:34                                 ` Tony Rex
2025-09-04 15:03                                   ` Tony Rex

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=DC2W6ED7YCUS.1V4VLCIHMFF17@bootlin.com \
    --to=mathieu.dubois-briand@bootlin.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=tony.rex@ericsson.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.