public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Anton Mikanovich <amikan@ilbers.de>
Subject: [PATCH 3/3] CI: Reduce debsrc_cache enabled targets
Date: Mon, 21 Mar 2022 20:52:28 +0300	[thread overview]
Message-ID: <20220321175228.24042-4-amikan@ilbers.de> (raw)
In-Reply-To: <20220321175228.24042-1-amikan@ilbers.de>

To speed up CI testing disable cache-deb-src feature by default just
like local.conf.sample does and enable it only for few targets.
Enable debsrc_cache also for Raspberry targets to cover custom distros.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 testsuite/cibuilder.py |  2 +-
 testsuite/citest.py    | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/testsuite/cibuilder.py b/testsuite/cibuilder.py
index 069a1d9..44d31aa 100755
--- a/testsuite/cibuilder.py
+++ b/testsuite/cibuilder.py
@@ -52,7 +52,7 @@ class CIBuilder(Test):
         if not hasattr(self, 'build_dir'):
             self.error("Broken test implementation: need to call init().")
 
-    def configure(self, compat_arch=True, cross=None, debsrc_cache=True,
+    def configure(self, compat_arch=True, cross=None, debsrc_cache=False,
                   container=False, ccache=False, sstate=False, offline=False,
                   gpg_pub_key=None, **kwargs):
         # write configuration file and set bitbake_args
diff --git a/testsuite/citest.py b/testsuite/citest.py
index 2def9e0..8f47338 100755
--- a/testsuite/citest.py
+++ b/testsuite/citest.py
@@ -71,7 +71,7 @@ class CrossTest(CIBaseTest):
                   ]
 
         self.init()
-        self.perform_build_test(targets, cross=True)
+        self.perform_build_test(targets, cross=True, debsrc_cache=True)
 
     def test_cross_rpi(self):
         targets = [
@@ -80,7 +80,7 @@ class CrossTest(CIBaseTest):
 
         self.init()
         try:
-            self.perform_build_test(targets, cross=True)
+            self.perform_build_test(targets, cross=True, debsrc_cache=True)
         except:
             self.cancel('KFAIL')
 
@@ -154,7 +154,7 @@ class NoCrossTest(CIBaseTest):
         self.init()
         # Cleanup after cross build
         self.delete_from_build_dir('tmp')
-        self.perform_build_test(targets, cross=False)
+        self.perform_build_test(targets, cross=False, debsrc_cache=True)
 
     def test_nocross_rpi(self):
         targets = [
@@ -166,7 +166,7 @@ class NoCrossTest(CIBaseTest):
 
         self.init()
         try:
-            self.perform_build_test(targets, cross=False)
+            self.perform_build_test(targets, cross=False, debsrc_cache=True)
         except:
             self.cancel('KFAIL')
 
@@ -215,7 +215,7 @@ class RebuildTest(CIBaseTest):
             file.write('do_fetch_append() {\n\n}')
 
         try:
-            self.perform_build_test('mc:qemuamd64-bullseye:isar-image-base')
+            self.perform_build_test('mc:qemuamd64-bullseye:isar-image-base', debsrc_cache=True)
         finally:
             self.restorefile(dpkgbase_file)
 
-- 
2.17.1


  parent reply	other threads:[~2022-03-21 17:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-21 17:52 [PATCH 0/3] Fix and speedup CI tests Anton Mikanovich
2022-03-21 17:52 ` [PATCH 1/3] CI: Change repro signed test case targets Anton Mikanovich
2022-03-21 17:52 ` [PATCH 2/3] CI: Fix test conditions Anton Mikanovich
2022-03-21 17:52 ` Anton Mikanovich [this message]
2022-03-28 17:51 ` [PATCH 0/3] Fix and speedup CI tests Anton Mikanovich

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=20220321175228.24042-4-amikan@ilbers.de \
    --to=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