All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gcc-runtime: do_check should execute before do_build
@ 2021-07-30 19:03 bkylerussell
  2021-07-30 21:16 ` [OE-core] " Christopher Larson
  0 siblings, 1 reply; 4+ messages in thread
From: bkylerussell @ 2021-07-30 19:03 UTC (permalink / raw)
  To: openembedded-core; +Cc: Kyle Russell

Otherwise, when rm_work is used, do_check may not execute before rm_work
causing do_check failures if the workdir has been removed underneath it.

Signed-off-by: Kyle Russell <bkylerussell@gmail.com>
---
 meta/recipes-devtools/gcc/gcc-runtime.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc b/meta/recipes-devtools/gcc/gcc-runtime.inc
index 59d9a24686..607971adca 100644
--- a/meta/recipes-devtools/gcc/gcc-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-runtime.inc
@@ -314,5 +314,5 @@ do_check() {
 
     oe_runmake -i ${MAKE_CHECK_TARGETS} RUNTESTFLAGS="${MAKE_CHECK_RUNTESTFLAGS}"
 }
-addtask check after do_compile do_populate_sysroot
+addtask check after do_compile do_populate_sysroot before do_build
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH] gcc-runtime: do_check should execute before do_build
  2021-07-30 19:03 [PATCH] gcc-runtime: do_check should execute before do_build bkylerussell
@ 2021-07-30 21:16 ` Christopher Larson
  2021-07-30 22:06   ` Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Larson @ 2021-07-30 21:16 UTC (permalink / raw)
  To: bkylerussell; +Cc: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 1209 bytes --]

This will result in a behavior change, making it so `bitbake gcc-runtime`
will run the check task. Are there implications to this?

On Fri, Jul 30, 2021 at 12:04 PM <bkylerussell@gmail.com> wrote:

> Otherwise, when rm_work is used, do_check may not execute before rm_work
> causing do_check failures if the workdir has been removed underneath it.
>
> Signed-off-by: Kyle Russell <bkylerussell@gmail.com>
> ---
>  meta/recipes-devtools/gcc/gcc-runtime.inc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc
> b/meta/recipes-devtools/gcc/gcc-runtime.inc
> index 59d9a24686..607971adca 100644
> --- a/meta/recipes-devtools/gcc/gcc-runtime.inc
> +++ b/meta/recipes-devtools/gcc/gcc-runtime.inc
> @@ -314,5 +314,5 @@ do_check() {
>
>      oe_runmake -i ${MAKE_CHECK_TARGETS}
> RUNTESTFLAGS="${MAKE_CHECK_RUNTESTFLAGS}"
>  }
> -addtask check after do_compile do_populate_sysroot
> +addtask check after do_compile do_populate_sysroot before do_build
>
> --
> 2.25.1
>
>
> 
>
>

-- 
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Senior Software Engineer, Mentor Graphics

[-- Attachment #2: Type: text/html, Size: 1750 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH] gcc-runtime: do_check should execute before do_build
  2021-07-30 21:16 ` [OE-core] " Christopher Larson
@ 2021-07-30 22:06   ` Richard Purdie
  2021-07-31  2:37     ` bkylerussell
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2021-07-30 22:06 UTC (permalink / raw)
  To: Christopher Larson, bkylerussell
  Cc: Patches and discussions about the oe-core layer

On Fri, 2021-07-30 at 14:16 -0700, Christopher Larson wrote:
> This will result in a behavior change, making it so `bitbake gcc-runtime` will
> run the check task. Are there implications to this?

We definitely do not want to do that. This is used to run the testsuite which
isn't part of a normal build.

Cheers,

Richard


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH] gcc-runtime: do_check should execute before do_build
  2021-07-30 22:06   ` Richard Purdie
@ 2021-07-31  2:37     ` bkylerussell
  0 siblings, 0 replies; 4+ messages in thread
From: bkylerussell @ 2021-07-31  2:37 UTC (permalink / raw)
  To: Richard Purdie
  Cc: Christopher Larson, Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 883 bytes --]

I see. I had forgotten that the autobuilders don't run do_check as part of
the normal build.

We have a customization in our distro layer to run do_check on normal
builds. Internally, we use that as a hook to allow per-package test suites
to fail our integration pipeline during our normal builds. Maybe there's a
way we can prevent this conflict with rm_work from our own layer.

Sorry for the confusion,

Kyle


On Fri, Jul 30, 2021, 5:06 PM Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:

> On Fri, 2021-07-30 at 14:16 -0700, Christopher Larson wrote:
> > This will result in a behavior change, making it so `bitbake
> gcc-runtime` will
> > run the check task. Are there implications to this?
>
> We definitely do not want to do that. This is used to run the testsuite
> which
> isn't part of a normal build.
>
> Cheers,
>
> Richard
>
>

[-- Attachment #2: Type: text/html, Size: 1340 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-31  2:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-30 19:03 [PATCH] gcc-runtime: do_check should execute before do_build bkylerussell
2021-07-30 21:16 ` [OE-core] " Christopher Larson
2021-07-30 22:06   ` Richard Purdie
2021-07-31  2:37     ` bkylerussell

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.