From patchwork Tue Oct 27 16:15:17 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aliaksei Karpovich X-Patchwork-Id: 5575 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-f61.google.com (mail-wm1-f61.google.com [209.85.128.61]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 69RGI6qT019981 (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-f61.google.com with SMTP id 5b1f17b1804b1-4a318cd95e8sf379095e9.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=YLlQY1erp8dTAp9CP8Ue9SnTUcNVr4STVJAuM9GzJa5h1qAi8BfRUDbE7wh+rCwtwQ DD0KX7qhz0ct2w5HIMvwARPPV4PvqqqUa+XogLT++ayHLTTJe+JUncVcYZrzkJnjXVpg pmnMPx3NvMkFOXiilxL6t0tnLrufPnPFAypdxJA2wkB7YnccmDFf+Tj526rcuEkElcGl Iiy5d0gwlmnZfAcnCbCx7plj9nMflfOSDOOatCGTPDsR6vPjFCM2g1N0d2iCMwegvQhp RHScgVCeJYJQgMyM3VUny7BqH+I7ZPkKR9DUZXTBUX52k9s2/oeC7m1eDzLacPibl9m3 X1bA== 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=FvM2i72Hsw3zWveuMYW06xaFuZGyDmJ5uYCksYfIMGA=; b=lmHCWrqhoDe7w/x9MuzCvfCdPzsoXveVs18ikxgEghisluk1PYcoWahxIVS4XBrb8w f5iY37MzZOHvB2/QyUqxDBu1WyDvgA7LtX8GPIHz7GEk4ZtHt9LH9l2PipmbGLwvtfOv h46FhE+7Mx67V7SJFITLWPxYcIvguY/TjcHM0+oG67lPhItSIu6YArgFcjJ8Z3olM6BW 6ROUt807mejqLAzozCkM0L32nI5n6lvYW+aD/c/i3CpXk5rf0N5ICM3GSv1Zqd0jvWjE VZCoUCRk6hv7NWh+jaWnkX0iHHIM5/PB8UjjKp5Q1Iqd0F8kphCtLFJU53nMWh4KiQ0Y KCTg==; darn=isar-build.org 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=isar-build.org; 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=oS/eKgLxfkzrVa/WWXkHpPPe48oZNdNopYRZSzN2FjmTnjwanUTOv+F3Ab1xGfJo19 Sd7XNA5cVuHkH9HgyekW19dhOPBrBQmNQyqajZ1xU5qNfvc1nGExVAYiUcYMULVNkWhm 5U81Iy4LY9lqU03TXBOYB4nRWjEI1/SE2D42e7dMwrGcIPyLP7BuYwMrhIIMmbvcsJ/A TmxddMuZjXgzBICAovfAMI33mu6HsimkkTkydqpC58LOArAdytYek+amsjwgrfeh+bNZ +eBy3vTtb/wW1T6k2VTQ5ZL+C2+x1XSJhXezxpXH3JVVLDPW2y9tKaRUocFLMLjSqkxX ay3w== 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=ETnpClxl+zmSt3WVVabZ2S/FEAABlaYSCFQjiAh7/q0zq8a8IhtAJRi7CfgPTwsiw4 jCwV24wSq09ouV6M5mPlBJcuxblqPkAzwWaU92eB9M5R9JhxkpSCPxzUFJNfVF+j57oF yfTfxDtjbmHwd8Cpr1tcfHHTAOYOnFRhQbya4jtVVA51wKV5Qdjgq+MP8LOCS9/F4nQJ KLL2ytdIw5zmw08GPQF9/Td/iMa1B3tZb2BX5k9mN3HDZZSnt1nYGi7oGojzk/iVJtAR iaTZOaVTXHT9fLTQ9bZknmZw8JECkRHdIkEV05/16Ja0dKVhuvuwzsqJw4KF9I8V9JPe psQA== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AKwUvBwwMlZoRyre+WfGnxSJjqPOii+AyCovLqlYNtI6RQdwGYAHJ16tfWG+ZdVGRmexaW3EbAlX/UA=@isar-build.org X-Gm-Message-State: AFq9FYKfsu1RwlIEbThPZMkDJCvKZ0Nf53x/lVXqfPGkJHNXHmFwrtKp USdjmU1fkZg5H3UdNkZrEKGYWSWX59YzNKwB8k/c0P1ThMCO7mZ/Wql6 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 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= 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): """