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; Tue, 27 Oct 2026 17:18:07 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f63.google.com (mail-wm1-f63.google.com [209.85.128.63]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 69RGI61J019972 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 27 Oct 2026 17:18:06 +0100 Received: by mail-wm1-f63.google.com with SMTP id 5b1f17b1804b1-4a318cd95e8sf379045e9.0 for ; Tue, 27 Oct 2026 09:18:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1793117881; cv=pass; d=google.com; s=arc-20260327; b=mcsL+0H+gZ5+anxvmBNAGxasT7yQJUaohE+xFdvGql2djfkYjX3zvvAJbqKuypyVXt 8lN7fjeh0kq14jbi9m6AX6ZwTpXFgTQFnpEavNxZ2v3g9zuRFXDfYXXfhLCt4KUwJ8p3 DhxUrISXWornB6CHL2KK+nMTvYWgdTodwVDBmjiWJgL8xISQiBjKkDeOFJTpW0ovUDvf 6NaRoykX5FlAcJ+ILpTc/wqf/PoKy6T5pKc76KBnBxKUhos1LjvlxvTHN2WOK/ssMubB WGnWdnH5PL/F8Ndzt8+cdL//xT2s/rRfZ2oe1kiVzZaXIVKLWDr/O7maoQwdPmVAd6Wa GlQw== 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=iGQ4b1/4Kk8/Fm+Lkm8BnK1CUD4HuVeYlr4DNUTH78k=; fh=K3K6c2GSmuAjemHEVdHMEv6q4jPDCjW+VP0WQIar8J8=; b=dXodAeb9UQWe8uTxFaUswRH9V3+wdJxiYxIThptly54aGD0ospxwXNVSEIyWFP1Jp3 AzdS3V9XcDpF6bcBMDVzylq/3DonL7adf223/nJFnp8zbV/gR2ClkcPLTK8ALlyBoGIR /yocnASh8zEOJoBm8VaOIvuIIvi/HpiXOBhS2dpr9UklPBsFlNlBoZPaGSxlfJLcjEEl kKJWXsdyB+SEVqfvqISJ6EAE7xE50zIBs77JnORa1GYqKZqvIbnL+29df9/a8AhF7/s6 k9yDippaiSZxPlrr+V53j10O536FR26Cufk5m9wD3JC8x8eCWRVr4hwIGaa5Q4dqQiAP cK+Q==; 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=20260707; t=1793117881; x=1793722681; 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=iGQ4b1/4Kk8/Fm+Lkm8BnK1CUD4HuVeYlr4DNUTH78k=; b=Qdz3gcfcpORcbWPAkvSR/fIM9ss4Dl/dFztQ7rjLErzntUImOOtS0EUrNVBMExZmTy qmxAt4WqjxwKmqpEa8icu2ObgOpf45s80CklMnDlg60fTXDaFz4Y5VgjpA4UKl8JZQyA LJ4+z5ZydDFnW8GHPNau+Ww/q/3Hmk9zLrqy3C0yZ1T5DJdhEexTrcwNLXRIcEvvpFwH Mgr+bASvi9B5x2tl9JGqdYzKMutF13DBqBsdl73jBHfN5zLUOJHb2ffyJT4Wt5iKnGFs W+RaSG/vs6fxA7lO2iXSXQ4P8C4XLFgg75DU/ck3tGZmXiJ6xA0kFZrhbBt5RE6bSdfJ Ei9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793117881; x=1793722681; 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=iGQ4b1/4Kk8/Fm+Lkm8BnK1CUD4HuVeYlr4DNUTH78k=; b=r9Ul8YfOy1oDWouDc413/AYm5LyLWqCAHAj8dlo2IsxciaxgED81JwrT3L3+kBWW81 WasByUmt4o/keWLj77z6PiXUa7d0i+wB9UyRk2w3fdhW820p8EQZ8UgcgGPpc8OsaYbg +K8U8zHeJZ3jNS3oZp6PiWqMPfdR0pIh6fAH/rzuZ94mIureIY2e6kKBusrUpMkDoECS IZavTHntNvPicpasdauE254i6jFSNF4lPrHh5twusfgWFrAYdkp8t6z6bGJ7lyPhfyr0 GXlVeuKfgwgomJOotErqx1vQhV6nSU9XekPzSUKN65pDbmW2eRb6mlubkmUSOsoDZAFh KKxQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AKwUvBw6YDiOyDnWmE+CAb5VrHkjAp4K/p0RXcDPzwBdO96Ua8Oehf+3AfITLe1Ec9XWCcufljqB@ilbers.de X-Gm-Message-State: AFq9FYL+QSFTzXhDxu/iiXiay0lDmgitiPdB7SJDJwRqoRbGtKfl37nx o9cxlL5MBtnm8LsdFe2FzMXePQ+ikrHILN/+nr9on7WSbXcMWWdbVihQ X-Received: by 2002:a05:600c:3c98:b0:4a0:20b4:ba93 with SMTP id 5b1f17b1804b1-4a7c1c845a2mr72240415e9.16.1793117881158; Tue, 27 Oct 2026 09:18:01 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="ATskLddPioheegRP83psAuDrCz/R5bocCp2BigWfXC+j/5DBCw==" Received: by 2002:a05:600c:4f13:b0:49b:4bf4:c7b4 with SMTP id 5b1f17b1804b1-4a92734a885ls215075e9.2.-pod-prod-00-eu; Tue, 27 Oct 2026 09:17:49 -0700 (PDT) X-Received: by 2002:a05:600c:1d05:b0:49e:65f2:db64 with SMTP id 5b1f17b1804b1-4a7c0485179mr66974285e9.5.1793117869201; Tue, 27 Oct 2026 09:17:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1793117869; cv=none; d=google.com; s=arc-20260327; b=eWSgghvevVIrp7Ao5obVkZlMkO02T2sRE+jtt4u3NJc4iY21H3xwqRtuRSHXkVu5LE uY/32HBFl+fJeV6Daamq1mx6FpGTSewV3ek8HrP+AB3TAvTkpiA8adlecpbS0TfyESzK kNQIsW1KJoehp/YhpoJoUi4L5QjQS4+WtNjqYn4CNZUZ6nLghMBQF6zwu6n1hkPLg5bs NHKca5cUmB8GVHUUBDP4Cn44e1APWHjKFFlDeHYm910u8yp8kgonESn9UeOd1GcC2UKX lxUyb2r61E7dllJb1TzyzHH1ELpdCc1/RXy/q2nZAvjarOn7dL2ZcvIDzulXHVdAh8hG XwOQ== 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=VdHANZut16saGv2D0y+V9VkuBp/fQWxYl6GgqW/gkrNjBfWaal2UBlB77dLOIL8LZ8 nIM4dgGe2Q2v0qtMz7oNZ3gcJLYFDC2zdFzWU5tPtfljBVQwzpWyrXJed4Z4aw5X8kxt /jOV76Ui8K5ahj0ZdG2yG+XRy2qcEFMptRuWNZU0U2FXU/MfgMrVjc35gSu1FhIHMWiB Y3O8/xpwZdphxLXjw6C8eSBTMn9jtv6tx+qXYUizlRWQT6uAbTOt1kDur4SxxhRc3X48 X5lRIWdI1MscVMfUVHLWG6x5/OJXrbxt3ED/6y7n9UBEnX8AWfenVHroPlrE9VJgGpS/ k40g==; 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-4a92ef73194si745e9.2.2026.10.27.09.17.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Oct 2026 09:17:49 -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.corp (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 69RGFR7J019857 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Oct 2026 17:15:48 +0100 From: Aliaksei Karpovich To: isar-users@googlegroups.com Cc: Aliaksei Karpovich Subject: [PATCH v2 2/2] testsuite: add test for rootfs sstate Date: Tue, 27 Oct 2026 17:15:17 +0100 Message-ID: <20261027161524.129118-2-akarpovich@ilbers.de> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261027161524.129118-1-akarpovich@ilbers.de> References: <20261027161524.129118-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: bfZTLikptsCa 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/20261027161524.129118-2-akarpovich%40ilbers.de.