mbox series

[v2,0/4] Improve cacheability

Message ID 20220412120813.467516-1-adriaan.schmidt@siemens.com
Headers show
Series Improve cacheability | expand

Message

Schmidt, Adriaan April 12, 2022, 4:08 a.m. UTC
We have recently started analyzing more details on sstate caching, and
identified some potential optimizations. This mainly concerns cases
of absolute paths contained in variables that are used as inputs to
the sstate signature caclulation, which can lead to "false negatives"
when sstate looks for cache hits, e.g., when CI runs on a different
runner (with different local workdir).

This series contains independent patches with fixes for some issues
we found so far.

Changes since v1:
- fixed typo in p4

Adriaan Schmidt (4):
  bitbake.conf: always start with empty SRC_URI
  bitbake.conf: add isar paths to BB_HASHBASE_WHITELIST
  isar-bootstrap: no absolute paths in SRC_URI
  base.bbclass: don't pass absolute paths to root_cleandirs

 meta/classes/base.bbclass                          | 14 +++++++++-----
 meta/conf/bitbake.conf                             |  5 +++--
 .../recipes-core/isar-bootstrap/isar-bootstrap.inc |  5 +++--
 3 files changed, 15 insertions(+), 9 deletions(-)

Comments

Anton Mikanovich May 3, 2022, 11:50 p.m. UTC | #1
12.04.2022 15:08, Adriaan Schmidt wrote:
> We have recently started analyzing more details on sstate caching, and
> identified some potential optimizations. This mainly concerns cases
> of absolute paths contained in variables that are used as inputs to
> the sstate signature caclulation, which can lead to "false negatives"
> when sstate looks for cache hits, e.g., when CI runs on a different
> runner (with different local workdir).
>
> This series contains independent patches with fixes for some issues
> we found so far.
>
> Changes since v1:
> - fixed typo in p4
>
> Adriaan Schmidt (4):
>    bitbake.conf: always start with empty SRC_URI
>    bitbake.conf: add isar paths to BB_HASHBASE_WHITELIST
>    isar-bootstrap: no absolute paths in SRC_URI
>    base.bbclass: don't pass absolute paths to root_cleandirs
>
>   meta/classes/base.bbclass                          | 14 +++++++++-----
>   meta/conf/bitbake.conf                             |  5 +++--
>   .../recipes-core/isar-bootstrap/isar-bootstrap.inc |  5 +++--
>   3 files changed, 15 insertions(+), 9 deletions(-)
>
Applied to next, thanks.