public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "'Felix Moessbauer' via isar-users" <isar-users@googlegroups.com>
To: isar-users@googlegroups.com
Cc: Felix Moessbauer <felix.moessbauer@siemens.com>
Subject: [PATCH v2 4/4] testsuite: check if all ubuntu targets can be bootstrapped
Date: Mon, 16 Nov 2026 13:57:08 +0100	[thread overview]
Message-ID: <20261116125708.2997360-5-felix.moessbauer@siemens.com> (raw)
In-Reply-To: <20261116125708.2997360-1-felix.moessbauer@siemens.com>

As ubuntu is a constant trouble maker, we add a dedicated test that
checks if bootstrapping against the default mirrors and snapshot mirrors
(for supported targets) works.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 testsuite/citest.py | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/testsuite/citest.py b/testsuite/citest.py
index 5a9ebbc4..cf6b9a94 100644
--- a/testsuite/citest.py
+++ b/testsuite/citest.py
@@ -665,6 +665,49 @@ class CrossTest(CIBaseTest):
         self.init()
         self.perform_build_test(targets)
 
+
+class UbuntuTest(CIBaseTest):
+    """
+    Tests bootstrapping of Ubuntu distributions
+    :avocado: tags=ubuntu,full
+    """
+
+    @staticmethod
+    def bootstrap_targets():
+        recipe = ['isar-mmdebstrap-target', 'isar-mmdebstrap-host']
+        # focal is EOL, so we skip it
+        distro = ['jammy', 'noble', 'resolute']
+        archs = ['amd64', 'arm64', 'armhf', 'riscv64']
+        machines = {'armhf': 'qemuarm'}
+        available = set(CIUtils.get_targets())
+        return [
+            f'mc:{mc}:{r}'
+            for d in distro
+            for a in archs
+            for r in recipe
+            if (mc := f"{machines.get(a, 'qemu' + a)}-{d}") in available
+        ]
+
+    @staticmethod
+    def snapshot_supported(target):
+        machine, distro = target.split(':')[1].rsplit('-', 1)
+        if distro in ('jammy', 'noble'):
+            return machine == 'qemuamd64'
+        return machine in ('qemuamd64', 'qemuarm64')
+
+    def test_ubuntu_bootstrap_mirror(self):
+        self.init()
+        self.perform_build_test(self.bootstrap_targets())
+
+    def test_ubuntu_bootstrap_snapshot(self):
+        self.init()
+        targets = self.bootstrap_targets()
+
+        targets = [t for t in targets if self.snapshot_supported(t)]
+        self.perform_build_test(targets,
+                                use_apt_snapshot=True)
+
+
 class PrebuiltTest(CIBaseTest):
     """
     Tests associated with prebuilt artifacts (containers, debs).
-- 
2.55.0

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20261116125708.2997360-5-felix.moessbauer%40siemens.com.

      parent reply	other threads:[~2026-11-16 12:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-16 12:57 [PATCH v2 0/4] A couple of fixes for snapshot handling on Ubuntu 'Felix Moessbauer' via isar-users
2026-11-16 12:57 ` [PATCH v2 1/4] update source date epoch fallback to cover all distro versions 'Felix Moessbauer' via isar-users
2026-11-16 12:57 ` [PATCH v2 2/4] fix(resolute-arm64): use official mirror instead of ports 'Felix Moessbauer' via isar-users
2026-11-16 12:57 ` [PATCH v2 3/4] ubuntu: add default snapshot entry for ports 'Felix Moessbauer' via isar-users
2026-11-16 12:57 ` 'Felix Moessbauer' via isar-users [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=20261116125708.2997360-5-felix.moessbauer@siemens.com \
    --to=isar-users@googlegroups.com \
    --cc=felix.moessbauer@siemens.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