From: Henning Schild <henning.schild@siemens.com>
To: Anton Mikanovich <amikan@ilbers.de>
Cc: Adriaan Schmidt <adriaan.schmidt@siemens.com>,
isar-users@googlegroups.com
Subject: Re: [PATCH v4 00/10] Add sstate-cache
Date: Thu, 28 Oct 2021 20:06:57 +0200 [thread overview]
Message-ID: <20211028200657.12306539@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <11f725c1-20b5-5a57-7ec1-4dc29901ec21@ilbers.de>
Am Thu, 28 Oct 2021 18:23:01 +0300
schrieb Anton Mikanovich <amikan@ilbers.de>:
> 26.10.2021 15:28, Adriaan Schmidt wrote:
> > This series adds the sstate-cache feature from OE to Isar. The
> > cache holds the results of bootstrapping, rootfs generation
> > (buildchroot, image rootfs), and deb package generation.
> >
> > To use the cache, the only configuration neccessary is setting
> > SSTATE_DIR. The contents of that directory need to be preserved
> > across bitbake invocations.
> >
> > One known weakness is that the package lists of cached rootfs's can
> > run out of sync with upstream ("apt-get update" only happens at
> > bootstrap time). But this also happens with an "old" local build
> > dir, and is something that may be addressed elsewhere. For now, the
> > recommendation is to frequently clear the cache (in one of our
> > projects we run a nightly "clear&populate cache" CI job).
> >
> > Patches 1..5 fix (unrelated) issues that would otherwise block
> > sstate caching, patch 6 copies files from OE, and patches 7..10 add
> > caching to Isar.
>
> Suggest adding `[PATCH] CI: Add sstate-cache testcase` as a test case
> for sstate-cache usage.
I think that was pure "show" to see things become faster. Given people
configure their CI runners to use sstate it will be tested a lot
anyways, including functional tests with qemu later on.
If you want to add it for the full path (which might be running nightly
without cache, but populate it for the next day), it should be put into
the pipeline before the functional tests.
We have cron jobs on our sstate enabled runners that clear+build every
night, so the next day we have fresh chroots with up to date apt
databases and builds that only take minutes. In fact not cron jobs, but
scheduled ci jobs. So the runners stay "stupid CPU+storage", easy to
throw away, easy to deploy and grow.
Henning
prev parent reply other threads:[~2021-10-28 18:06 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-26 12:28 Adriaan Schmidt
2021-10-26 12:28 ` [PATCH v4 01/10] oe imports in central location Adriaan Schmidt
2021-10-26 12:48 ` Henning Schild
2021-10-26 12:28 ` [PATCH v4 02/10] images: create deploy dir Adriaan Schmidt
2021-10-26 12:28 ` [PATCH v4 03/10] rootfs: recursively depend on packages Adriaan Schmidt
2021-10-26 12:28 ` [PATCH v4 04/10] base: remove unneeded "before do_build" task dependencies Adriaan Schmidt
2021-10-26 12:28 ` [PATCH v4 05/10] dpkg: add explicit dependency to isar-apt Adriaan Schmidt
2021-10-26 12:28 ` [PATCH v4 06/10] meta: add sstate feature from oe Adriaan Schmidt
2021-10-26 12:28 ` [PATCH v4 07/10] sstate: configure Adriaan Schmidt
2021-10-26 12:28 ` [PATCH v4 08/10] sstate: add caching to isar-bootstrap Adriaan Schmidt
2021-10-26 12:28 ` [PATCH v4 09/10] sstate: add caching to rootfs Adriaan Schmidt
2021-10-26 12:28 ` [PATCH v4 10/10] sstate: add caching to debian packages Adriaan Schmidt
2021-10-26 12:37 ` [PATCH v4 00/10] Add sstate-cache Schmidt, Adriaan
2021-10-26 13:43 ` Henning Schild
2021-10-28 15:23 ` Anton Mikanovich
2021-10-28 18:06 ` Henning Schild [this message]
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=20211028200657.12306539@md1za8fc.ad001.siemens.net \
--to=henning.schild@siemens.com \
--cc=adriaan.schmidt@siemens.com \
--cc=amikan@ilbers.de \
--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