All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: "Barros Pena, Belen" <belen.barros.pena@intel.com>,
	"toaster@yoctoproject.org" <toaster@yoctoproject.org>
Subject: Re: weird task: covered with sstate attempt
Date: Wed, 06 Jan 2016 11:18:58 +0000	[thread overview]
Message-ID: <1452079138.7598.66.camel@linuxfoundation.org> (raw)
In-Reply-To: <D2B2A225.6E418%belen.barros.pena@intel.com>

On Wed, 2016-01-06 at 10:51 +0000, Barros Pena, Belen wrote:
> While poking at the build data (as I do from time to time) I came
> across a
> strange thing in the linux-yocto do_shared_workdir task. It is
> reported by
> Toaster as 'covered' (which means that its output is already provided
> by
> another task in the build, in this case do_package_qa and do_build),
> but
> also as attempting to use shared state. Toaster said it attempted to
> find
> the file 
> 
> /home/yocto/master/build/sstate-cache/7d/sstate:linux-yocto:qemux86
> -poky-li
> nux:4.1.15+gitAUTOINC+46bb64d605_788dfc9859:r0:qemux86:3:7de3949f0c0b
> b15e7c
> 8f920de3354cd7_shared_workdir.tgz
> 
> 
> But didn't. You can see how the task information looks like in
> Toaster in
> the attached file. 
> 
> This is quite unusual: I'd never seen a covered task that attempted
> to
> access a shared state artifact. If the output is already provided by
> another task, why attempting to use shared state at all?
> 
> Is this expected from this task? Or is this indeed strange and
> something
> we should look into?
> 
> Thanks!

At some point I would like to discuss "covered" as I still think that
its a misleading way of showing things in the UI, and that more
generally, what is being shown isn't entirely helpful to the user.

I think what that screen is trying to show is that do_package_qa came
from sstate which meant that do_shared_work wasn't needed for it,
however there was something else (e.g. do_deploy) which probably meant
it did need to run do_shared_workdir, which it went on to run.

FWIW, do_shared_workdir isn't an sstate task so it would never have an
sstate object that represents it.

In case the above is hard to comprehend, for the kernel, the sstate
tasks are:

$ bitbake virtual/kernel -e | grep SSTATETASKS=
SSTATETASKS="do_package_write_ipk do_package_write_deb do_populate_lic do_package_write_rpm do_package_qa do_populate_sysroot do_packagedata do_deploy do_package"

and if package_qa was ok from sstate, the other do_package_* ones
probably are too. Why they're not showing in the UI? I can only guess
that image doesn't use any kernel packages? That is why I'd suspect
do_deploy triggered the rebuild. I have to wonder why do_populate_lic
didn't show up though as it probably should have.

Cheers,

Richard






  reply	other threads:[~2016-01-06 11:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-06 10:51 weird task: covered with sstate attempt Barros Pena, Belen
2016-01-06 11:18 ` Richard Purdie [this message]
2016-01-06 11:39   ` Barros Pena, Belen

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=1452079138.7598.66.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=belen.barros.pena@intel.com \
    --cc=toaster@yoctoproject.org \
    /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.