Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Alexander Kanavin <alex.kanavin@gmail.com>
Cc: openembedded-architecture
	<openembedded-architecture@lists.openembedded.org>,
	Yocto-mailing-list <yocto@lists.yoctoproject.org>,
	",openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>,
	Joshua Watt <jpewhacker@gmail.com>
Subject: Re: [OE-core] Core workflow: sstate for all, bblock/bbunlock, tools for why is sstate not being reused?
Date: Thu, 08 Feb 2024 13:42:11 +0000	[thread overview]
Message-ID: <018185898b86e2fccabf68570a6aec6039a0c6d6.camel@linuxfoundation.org> (raw)
In-Reply-To: <CANNYZj8tyOy=z3L=uM9L_R8uP6eZSUkYXm9BwvsU+ERpE9QcZw@mail.gmail.com>

On Thu, 2024-02-08 at 14:35 +0100, Alexander Kanavin wrote:
> On Mon, 5 Feb 2024 at 22:11, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > > - export the hash equivalency database into something human readable,
> > > and placed into the bundle, and then import it back when the bundle is
> > > unpacked and set up. As far as I understand currently there's no code
> > > for this. I'd find it useful in general, as effects of hash
> > > equivalency can be tricky to grasp, and being able to look at the
> > > database in a human readable format goes a long way towards
> > > understanding how it all fits together. There may be other use cases
> > > where you'd want to move the content of the database between build
> > > machines. I'd like to get Joshua's take on this, did I misunderstand
> > > this completely?
> > 
> > You don't misunderstand, this is an issue.
> > 
> > The good news is that the hashes needed will be in
> > cache/bb_unihashes.dat. The eSDK code saves and restores that to ensure
> > things all work out ok.
> > 
> > It isn't human readable but could be translated easily enough.
> 
> Right, I didn't realize bb_unihashes.dat is simply a python pickle,
> and can be dumped to stdout with a three-liner script.
> 
> What I don't understand is why for each task, that file seems to
> contain only a single pair of equivalence, and only matching the last
> build. The complete set seems to be in hashserv.db, but I didn't yet
> look into the structure of that or whether it's portable to other
> locations as a file copy.
> 
> So how do the two files interact? Shouldn't we copy over the full
> database rather, and have bitbake re-create the cache on the other
> side from that?

hashserve.db is a full hash serve database. When we run a build without
specifying a hash serve to use, bitbake will start a local one and this
is the file which backs it. In a build with a remote hashserve, it
won't be present.

the unihashes file is bitbake's internal lookup cache. It exists so
that if the hashserve isn't local, we have a local lookup of our "last"
value.

This means the file is good for the current (last) build not much
beyond that.

I'm not saying any of this entirely solves the problem at hand, just
that some of the data is there.

Cheers,

Richard






  reply	other threads:[~2024-02-08 13:42 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-12 14:44 Yocto Project Status 12 September 2023 (WW37) Stephen K Jolley
2023-09-14 11:52 ` Core workflow: sstate for all, bblock/bbunlock, tools for why is sstate not being reused? Alexander Kanavin
2023-09-14 12:56   ` Richard Purdie
2023-09-14 18:51     ` Alexander Kanavin
2023-09-14 19:54       ` Richard Purdie
2023-09-15  8:28         ` Alexander Kanavin
2023-09-20 14:25           ` Julien Stephan
2023-09-20 14:31             ` Alexander Kanavin
2023-09-20 18:04               ` Julien Stephan
2023-09-21 11:11         ` Alexander Kanavin
2023-09-21 14:39           ` [Openembedded-architecture] " chris.laplante
2023-09-22  9:17             ` Alexander Kanavin
2023-09-22 10:42               ` Richard Purdie
2023-09-28 16:43                 ` Alexander Kanavin
2023-09-28 16:49                   ` Richard Purdie
2023-09-28 17:07                     ` Alexander Kanavin
2023-09-29 12:06                     ` Alexander Kanavin
2023-09-29 12:27                       ` Richard Purdie
2023-09-29 13:09                         ` Alexander Kanavin
2023-11-01 14:18       ` [OE-core] " adrian.freihofer
2023-11-01 15:19         ` Alexander Kanavin
2023-11-01 17:20           ` [Openembedded-architecture] " adrian.freihofer
2023-11-04 10:29           ` adrian.freihofer
2023-11-04 11:09             ` Richard Purdie
2023-11-05 19:43               ` adrian.freihofer
2023-11-06 11:48                 ` Alexander Kanavin
2023-11-06 19:42                 ` [Openembedded-architecture] " Mark Hatle
2023-10-30 13:50     ` Alexander Kanavin
2023-10-30 14:07       ` Richard Purdie
2023-10-30 15:02         ` Alexander Kanavin
     [not found]         ` <1792EACC19CD8046.7262@lists.openembedded.org>
2023-10-31 12:08           ` [OE-core] " Alexander Kanavin
2023-10-31 12:28             ` Richard Purdie
2023-10-31 13:53               ` Alexander Kanavin
2023-11-01 15:45         ` [yocto] " adrian.freihofer
2023-11-01 17:28           ` Alexander Kanavin
2023-11-02  8:32             ` adrian.freihofer
2023-11-02  9:02               ` Alexander Kanavin
     [not found]               ` <1793C2E61248AF31.11290@lists.yoctoproject.org>
2023-11-02 11:51                 ` Alexander Kanavin
2024-01-22 10:47   ` Alexander Kanavin
     [not found]   ` <17ACA59E7A7FD97B.16230@lists.openembedded.org>
2024-02-05 20:35     ` [OE-core] " Alexander Kanavin
2024-02-05 21:11       ` Richard Purdie
2024-02-08 13:35         ` Alexander Kanavin
2024-02-08 13:42           ` Richard Purdie [this message]
2024-02-13 13:25             ` Alexander Kanavin
2024-02-13 13:44               ` Richard Purdie
2024-02-13 14:05                 ` Alexander Kanavin
2024-02-13 14:28                   ` Joshua Watt
2024-02-14  6:31                     ` Alexander Kanavin

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=018185898b86e2fccabf68570a6aec6039a0c6d6.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=alex.kanavin@gmail.com \
    --cc=jpewhacker@gmail.com \
    --cc=openembedded-architecture@lists.openembedded.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=yocto@lists.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox