public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [RFC v2 0/3] PoC for isar-apt repo reusing
@ 2022-06-13  7:07 Uladzimir Bely
  2022-06-13  7:07 ` [RFC v2 1/3] meta: Reuse existing local isar-apt repo in new builds Uladzimir Bely
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Uladzimir Bely @ 2022-06-13  7:07 UTC (permalink / raw)
  To: isar-users

Currently, isar-apt repo is always rebuilt at second build when
temporary files except the repo directory were deleted.

This patchset implements proof-of-concept of reusing isar-apt
repo previously built. The idea is to check that package already
exists in the repo and early exit tasks related to fetching/building.

Such approach doesn't remove any tasks from the queue, but changes
their behvaior (early exit) in case of existing package found. 

Using this feature doesn't depend on sstate-cache and requires only
local repo from some of previous builds to exist.

Changes since v1:
- avocado test, not based on build time measure
- fixed isar-apt check in compat-arch mode

Uladzimir Bely (3):
  meta: Reuse existing local isar-apt repo in new builds
  doc: Add section for isar-apt reuse functionality
  ci: Added test for isar-apt reuse functionality

 doc/user_manual.md                  | 23 ++++++++++
 meta-isar/conf/local.conf.sample    |  4 ++
 meta/classes/dpkg-base.bbclass      |  1 +
 meta/classes/isar-apt-cache.bbclass | 69 +++++++++++++++++++++++++++++
 testsuite/cibase.py                 | 42 ++++++++++++++++++
 testsuite/cibuilder.py              |  7 ++-
 testsuite/citest.py                 | 12 +++++
 7 files changed, 157 insertions(+), 1 deletion(-)
 create mode 100644 meta/classes/isar-apt-cache.bbclass

-- 
2.20.1


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

end of thread, other threads:[~2022-06-13  7:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-13  7:07 [RFC v2 0/3] PoC for isar-apt repo reusing Uladzimir Bely
2022-06-13  7:07 ` [RFC v2 1/3] meta: Reuse existing local isar-apt repo in new builds Uladzimir Bely
2022-06-13  7:07 ` [RFC v2 2/3] doc: Add section for isar-apt reuse functionality Uladzimir Bely
2022-06-13  7:07 ` [RFC v2 3/3] ci: Added test " Uladzimir Bely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox