From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 23 Oct 2026 15:36:14 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f64.google.com (mail-wm1-f64.google.com [209.85.128.64]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 69NDaDaS025055 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 23 Oct 2026 15:36:13 +0200 Received: by mail-wm1-f64.google.com with SMTP id 5b1f17b1804b1-4a1df6c2937sf7729555e9.0 for ; Fri, 23 Oct 2026 06:36:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1792762568; cv=pass; d=google.com; s=arc-20260327; b=YinpSQiFUuAklsSJ8x7fNV8feeOrgh2iZ5llAaUftx/c2m1i0W1oQsXwRggFeSw6aN GsFvkGEP92LJ8ZMbaFz6E+emXMchDqMlr203rQTUAQMde5auZOo8Cn2ThzHfcXb1gPTE 65+imw+PcQBeT5K5iCXjA8v9T6k3sOgZj/sx2zFTadKdZJG84S2N94ofh1KWGG8u30av ZxWDHn/Ok7D0W95vKNywdi6bRxjINxD+r0Ul93yllYQTZwrVYD3QNG8MPifMqbKdOGOU iwHahZ+k3Z0dbUeEHcI+cEk0VEpFC/2UXZNY/nCl55rGIBHAmP7sQi4Ccm7WOOniXSDQ GU3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=gJ60uH48DtJMNJXDnGfWjy6iYFesh3AOavuVLkCP5vs=; fh=aokDEjT/iLnfHdCpkhTcFOCx4GDPq4Y5YQpz4R8L0zE=; b=W1H2wDBuZ861IskaBAb+RGEKtyfX30MwI7TTrfjqkg6nXWJXg6SJdcrm72k+iVyci8 xZHkj60M2xRwAUf5Z3g8skFCgXYKQCUuaWxu3sj56rFlrV/5dc+mVXftqlThjpYwe8we zESZrdo3MxY0eJqaXP9r55D22s3wZTslhTQTer41okAN5REQ4WICwQyB5PQ0/PGaKspB Afb9FL70wXI/xyi8pOmaDwd7Dz7+FGH6AEPa0DHa40UJLnyY3IATdBmWxmJPpQH/oRD/ 03P96nHi2Iylen2YnzZ6RJuc6u1QSD6cGsQm0kV7J600FLYs46IEr3dDrdZdylJIUJQL LO8Q==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of akarpovich@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=akarpovich@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1792762568; x=1793367368; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:content-type :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :from:to:cc:subject:date:message-id:reply-to:content-type; bh=gJ60uH48DtJMNJXDnGfWjy6iYFesh3AOavuVLkCP5vs=; b=n3wq+F6D8AVfw47oBX5+PnYA1B4OdFgq1Pd4QT9qs58+WnaTAqyfJ9VjOrBivAwJoa rI6xc3QDJm999fmU2b3knfDEt/M/ezmWBsoaRKIh+eoPGR3moiW4nLBTugZVIuSpggCJ dgS99JxQlmAxVahKKg9G6ZKhnhpW/hUHgP4ZNb90OxkQsYkZ5RJ8/3uDfYOv5/AYrUTo lcqdAIDd8pChmQglGlGhZ8TkQs6Mz3e0h8gEZdmhv+NTA8nM4X3ptR+u71qGcVuLDu4Y dra40CKuK2nuJ5J4vlsjpzXxQPUrB/tRAJbWa5ya/43S4U6WZlXORums41pfJtTMBVv3 +Llg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792762568; x=1793367368; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :content-type:x-original-authentication-results:x-original-sender :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to:content-type; bh=gJ60uH48DtJMNJXDnGfWjy6iYFesh3AOavuVLkCP5vs=; b=J8UBOoIWhWdw8nL28I8dbHRdHuo/yo0Ni18XYqB0yLLdnGN9nCIUb+T0LBEXemBdyn M+Uh4AM8kDm9ZZ94ha6LO7S2eTPUwivC1eZv7JYZmDw7VzuLTQ2lqGYmCIubpjZaXDN2 NWX2zRzTkKf5ODc2zEA329Mmlk6mGkbJwSFTV14zkEfLxMxHIRa/Hs1M3wgSL3k6DXQW wSP9bUoiR9DpPprYc2+yW19LStrWjJgtx7Gv5W2yjfkx6n8La1ZLtu9oJv11n/Iz15SS nkNECT6Hwmjbps0FXUY4wQ0v2iUrzGXgNHDgEp2Iz1wutQdZzLXyue7aH5EjdRvqfA9V 4wbA== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AKwUvBwfJCRAllp/OOc4+FscRbMvUpzohGyDXK3+IcmycwNHIZVkuML3lS6cAsL6yd8t0vgeNGhj@ilbers.de X-Gm-Message-State: AFq9FYL27cqFYPBkDnuyftbCvqjCkvgs9eosfb6vp3njc9HsIOii7yAB U+mb5W2EwDMnnh0tA2M77xvGtQaJ4GY5G+NKBHohspdzwsnm/TY1Q9tE X-Received: by 2002:a05:600c:3b0a:b0:4a0:20b4:ba93 with SMTP id 5b1f17b1804b1-4a211c869d9mr37239885e9.16.1792762567948; Fri, 23 Oct 2026 06:36:07 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="ATskLdesCGAc/fxJwqmUBAbIjI/rs1+0z1hZYsNrhXfQASKI0Q==" Received: by 2002:a05:600c:c084:b0:4a0:22d5:7678 with SMTP id 5b1f17b1804b1-4a203b7c9a7ls8432425e9.1.-pod-prod-00-eu-canary; Fri, 23 Oct 2026 06:36:04 -0700 (PDT) X-Received: by 2002:a05:600c:c44c:10b0:4a2:1960:6fa with SMTP id 5b1f17b1804b1-4a219600853mr9039345e9.4.1792762564383; Fri, 23 Oct 2026 06:36:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1792762564; cv=none; d=google.com; s=arc-20260327; b=kaa3V3DF85Yoq3SunCUTog+VW3olFOGNe+/aPqM+Q540e2HUPquu6Bjv0sMV6niMC/ 6fB8UrvljvzduHIrmeZEg225DV7H7goSwiBguqd5p4jQPlLwMni4akiJk4eHFUbwwOfH 7pFnHSaQvk3hWDwFSJWiJTYn8D1iU4nty9WaOYvhA9U1+nv0gFxna3av9soHd9N4XCgN YOZntLXyUu8tpRdT1RJqMS7Sq/YLT1G17oniRlNO6w+4X/Hx4EvcPfOc9W+HK0ZNWnOr x8qIDUyGBe6OIvKG/O4zJXacNb3W4uoOcX2hEPkm8y7kGy2GFsaRhdYYnY4U4rChnBUC kYHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=WAFyvoX42GL9C2D7q1umf1zqpOHpb6wrQnSDoNLpzyM=; fh=u+3kXEMzY4uVhDBiujW2QUo7NnpMLrGEgMQBYpCTRN4=; b=c2E1T9+1wiW2DqDz3wXgO6NAvKWnaFkh+DMNchUOh/SKFz6Ra3fq4QQTt4gjbahda0 5K0MSsQfgoiZd40jgAZH2kmr/ZaEC5rJnhj9w/vcJWxx9LDSbSya8nsYCvXB5dbzGajI DaXOLnnnYLM+JeSAnZTFBN4z6JBjB4FrYsHDcj8HC3ydJfLQi11+dgOhzYtzWr9XpycG JfiMaCFKl8dx2uhRsM0RYJCDCiTgayQk+e1P05XMsqaMNScfXx5b2reh1sBHcfDMJt5j Dv9J44o1bmSnI7ZVGSsi8++JEr97g1IHjvFkfNnftnpCwA07EnaBDQ0/tR3YmHOERvyb neNg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of akarpovich@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=akarpovich@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-4a2155def83si94605e9.3.2026.10.23.06.36.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Oct 2026 06:36:04 -0700 (PDT) Received-SPF: pass (google.com: domain of akarpovich@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from laptop-0xxx.promwad.com (62.122.174.6.serverel.net [62.122.174.6] (may be forged)) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 69NDXhYi025025 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 23 Oct 2026 15:34:03 +0200 From: Aliaksei Karpovich To: isar-users@googlegroups.com Cc: Aliaksei Karpovich Subject: [PATCH 2/2] testsuite: add test for rootfs sstate Date: Fri, 23 Oct 2026 15:33:34 +0200 Message-ID: <20261023133338.32200-2-akarpovich@ilbers.de> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261023133338.32200-1-akarpovich@ilbers.de> References: <20261023133338.32200-1-akarpovich@ilbers.de> MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: akarpovich@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of akarpovich@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=akarpovich@ilbers.de Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: Q5FSR8sHoEwE This test should catch the bug when user builds the same image multiple times, adds and removes some package in image, but this package is stayed on rootfs after removing. The root cause is in sstate for rootfs. Test conatins 3 build steps: 1. Build the target 2. Add some package in image and build the same target 3. Remove package from image (return back to state in step 1) and build the target again. After each step, the test checks for the presence or absence of the package on the rootfs. --- testsuite/citest.py | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/testsuite/citest.py b/testsuite/citest.py index 0cedcc2c..b701ed13 100644 --- a/testsuite/citest.py +++ b/testsuite/citest.py @@ -1563,6 +1563,42 @@ class SstateTest(CIBaseTest): self.perform_sstate_test(image_target, package_target) +class RootfsSstateTest(CIBaseTest): + """ + Test for correct behavior of sstate for rootfs. + Contains 3 steps: + - Step 1: build isar-image-base without any package. + - Step 2: build isar-image-base with hello-isar package only. + - Step 3: build again isar-image-base without any package. + + :avocado: tags=sstate,fast + """ + + def test_rootfs_sstate(self): + import glob + + image = 'isar-image-base' + arch = 'amd64' + distro = 'trixie' + + self.init() + + image_target = f'mc:qemu{arch}-{distro}:{image}' + hello_bin_file = f'{self.build_dir}/tmp/work/*-{distro}-{arch}/{image}-qemu{arch}/*/rootfs/usr/bin/hello-isar' + + self.perform_build_test(image_target, image_install='', sstate=True) + if glob.glob(hello_bin_file): + self.fail("Step 1: hello-isar shouldn't be on rootfs") + + self.perform_build_test(image_target, image_install='hello-isar', sstate=True) + if not glob.glob(hello_bin_file): + self.fail("Step 2: hello-isar should be on rootfs") + + self.perform_build_test(image_target, image_install='', sstate=True) + if glob.glob(hello_bin_file): + self.fail("Step 3: hello-isar shouldn't be on rootfs") + + class SingleTest(CIBaseTest): """ -- 2.53.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/20261023133338.32200-2-akarpovich%40ilbers.de.