From patchwork Thu Jul 16 14:41:44 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhihang Wei X-Patchwork-Id: 5254 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Thu, 16 Jul 2026 16:41:56 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wr1-f60.google.com (mail-wr1-f60.google.com [209.85.221.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 66GEftOO031921 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 16 Jul 2026 16:41:55 +0200 Received: by mail-wr1-f60.google.com with SMTP id ffacd0b85a97d-47345535410sf6726739f8f.1 for ; Thu, 16 Jul 2026 07:41:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1784212910; cv=pass; d=google.com; s=arc-20260327; b=f534kwhKQYNLSCHkaU+v9rAdG12YX/RlfTeE4wy888RK4IFBnOlOtvWwBBmRVULDZE zKbIAo3ejC9iSwa28vHdKVqSpHn7LtZxcT9La6OCLnIwWPpf3WS8xx/IC8x+icUn6l9e xqQwDMyWa/01Y3rlB5AEOZtaIq8yhfE7PvL5fAdbLo06NQPQNEwHgpJaZkOvr0Ke73Yg EMxkYquYo2gJU9OdHP49Xuc9mqNr1ofujmrNln79hsrm7+p8PbsXnMmo+d9UMChnnxE8 Z1tMWek6O9WJrf5aNZ+ngsAsACNaZTfDoLdUF6nxRQnciEaer2t3iFt0A/QKUJHDgCv6 qbJw== 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:message-id:date :subject:to:from:sender:dkim-signature; bh=N+QzFnUqtEITUyyBLbiaplpE1YigRFZYjtIYm+4C7GA=; fh=ZPQKAealCjifCJgzu8MFv5zKwTMs74s6OG/xcRTQxxg=; b=D5cSomY9+SKLHHplasSZ/Nk/kBTgGBZV+nUwZCzvv7dpzkISuMp6y5F9NOeXaTXf3E igq46p92W5ZeERr7qPmCkukuneeolGc8NlGH2CQRiiYq5pWCa/vidj1iHpJlQoxpC6Uf sIfWzPY80je5mXJFStIvXsGny2tWxTtOHyb3MQ6RDybJDe+JSehf0q5BnKmDChvGYOfz Wu5GngtCbdyn4C/K8aChMWE4xPMlcrj5J15+lvYlzkqZbL3+Rlo6IW23PvMk2/98Ve79 oTpNgE0/7UKIJTg3A/Wz5YkjCDiloCikW/Vp8nePugQq4bV/QXOtqFlRV7/LEZ9FUdYb YWUg==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1784212910; x=1784817710; 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 :message-id:date:subject:to:from:sender:from:to:cc:subject:date :message-id:reply-to:content-type; bh=N+QzFnUqtEITUyyBLbiaplpE1YigRFZYjtIYm+4C7GA=; b=dykyei8i5CdcvR4OtnlnnNAkLw6TpGcp74AEyeq9ER5Mi/o7worlnMpz1vD+/Eh3Wz 3iqC+DiOSyLAWxl2GPWWpXwW/gtYog/55E3cLIs5tHmvaCbBsYImszMlw/egcsUDuZ7t S45klXTft7QqEgY9FD7La+zgyvzBcDBlC0a8uoaVhNYwn7v+Rlb+6clpgpwITBFZTh66 ujUg/c5GuXM46JRw9P3upT9ByiEoFTsnAK5PpX3T6/4d30w6sCDtRAvKyLUQ9YQb8i8i JsQGzdptK78vgftqSZ8rTAjsxWG6eeGGsHTa9T4WfhIHEkin5GHZRm8uTABlxU02su3T 5SUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784212910; x=1784817710; 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:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to:content-type; bh=N+QzFnUqtEITUyyBLbiaplpE1YigRFZYjtIYm+4C7GA=; b=P2Uflzs/b7yn/8Yz3QCV/t13gHoWYr69bY2FFgBbIvYicXPj8283eeM8dmuvhPuWdI tIUbaf0owuiOrkoGJ9Hy67s2keTg8FqKXkmPpFaIHgnAxR/YHjQVjno0LELxQ6x7XnJK hb1BA52g7RAeqolR7tb5G39N7KaUzfBONRTDo39pbw0F0GqksfOihZZo58jIsSAy+FxO j23Kx2wQSmDvvMemmGLjg5FH57EBNFve2AXMBpJ8yTJSZZPOPJDMj/GlF0aby4mozOmR KDa1r2zwdtRZ5scRHory1/YpxZ+57/XzmYHGYG61WdPGMbYPFTsE4Ooy9jKPMwH8j60/ JZIQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AHgh+Ro9dtTbDaeRecWXj7OHH1I58ThTwrntdHr8fX7jp4uvmNvZcIWX4+4UlpLDMN8dcMjh2lD0ciE=@isar-build.org X-Gm-Message-State: AOJu0YxoNmZ9tKzzPSrpk/DVuqyySgB3yFMlqybOzaxYjfGoQyY5D8Wl UIPYuxRGze8rfzuFcH+yIbo2qCaB73lgdyzLEzCt3XhAGRNzkfVE4FYf X-Received: by 2002:a05:6000:4a08:b0:47e:9f03:e542 with SMTP id ffacd0b85a97d-47f4889fbddmr13539229f8f.45.1784212909830; Thu, 16 Jul 2026 07:41:49 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="Aa7YSPRb6eCdXGHNCNYZzfehpZ5Cc3rxh+MqpwET4vYeqSvoog==" Received: by 2002:adf:ee10:0:b0:47f:55e4:b9f6 with SMTP id ffacd0b85a97d-47f5b849804ls444479f8f.0.-pod-prod-02-eu; Thu, 16 Jul 2026 07:41:47 -0700 (PDT) X-Received: by 2002:a5d:64e7:0:b0:475:f0d1:eb69 with SMTP id ffacd0b85a97d-47f488b75famr13828764f8f.54.1784212906705; Thu, 16 Jul 2026 07:41:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1784212906; cv=none; d=google.com; s=arc-20260327; b=I6Xgm/msYoRE2RNrfsNghaT9qTXeVfAzcpgnEQ7mSJQDe/Z7k4tsvTOJCrc949aqat sehMShPifq/6Yi5h7vaVJEybIsGV82SYWlJHRehanXq1vuvCjSb0VJvVytJs8sXHdD6K FHlxZ/VoeudfcxWSSphrzg4Gg0UqE2YfyHIvrlfN7il4V754LcxHvBbRRvW3bh+ZOdTD 0/LDgSoJh3ysWtAKTgCfCiKZm3tygM4WhhpdxbEqSr/WhPPblzEFDhVEMcWNbypmyfZV IA4rReb95vpE8Xu2RbLAXNOsdxW7iDbTQw2qv0YrioqM0GiUL8u3gxnnhV+oURlW99f2 60uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from; bh=Fk5peY1DAvdWcEhQi8hAlGT1wN+B0Ym2wyJXAaxVkR0=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=KR9bRbGkLMgxfFLTRgIIWwevaOqy96A75Q2sU0SxHJTKvGGGjHxKCXBe+iQXibQt4/ C2SZEOJjG92aO9aL45CjI8955S2Id0BF88pNBFarHBd64HcfNcLaipdlIKbEol4/EDnD 2g2wu9ranwPFfW9rABdgoabbcNc1HG5B+75m0DKuF9V1TPdBCYcLM+mXcvjaEq7A3oek aQjOAPhJkrhVQGgZzxmgF2W8OWMTwAlNDV2Lrh4Ql9j5mC3qYLj/ETFxA8IdFfvgbKY6 nDXBX8A8H6AwDqJgMN8vNDBahu3hAiicrg5emag7v7N5NS8Tr7WICJbtv8+/pBOH/VYv Y/sA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id ffacd0b85a97d-47f465174a9si175720f8f.7.2026.07.16.07.41.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Jul 2026 07:41:46 -0700 (PDT) Received-SPF: pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from debian-zwei.m.ilbers.de ([88.130.203.42]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPA id 66GEfj7J031903 for ; Thu, 16 Jul 2026 16:41:46 +0200 From: Zhihang Wei To: isar-users@googlegroups.com Subject: [PATCH v2 1/2] testsuite: Support cleanup on rootless build files in test-container Date: Thu, 16 Jul 2026 16:41:44 +0200 Message-Id: <20260716144145.1495181-1-wzh@ilbers.de> X-Mailer: git-send-email 2.39.5 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: wzh@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@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?= When running tests with rootless builds, some files created with the user namespace inside the container cannot be removed by the calling user after the test-container exits without sudo. Add the `--clean-rootless-files` option to the test-container entrypoint to clean up such files before leaving the container. The cleanup is only performed for rootless builds and only removes files that cannot be cleaned up without sudo outside the container. Other build artifacts are left untouched so they remain available for CI artifact collection and post-test inspection. Signed-off-by: Zhihang Wei --- .../dockerdata/test-container-entrypoint | 38 +++++++++++++++++-- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/testsuite/dockerdata/test-container-entrypoint b/testsuite/dockerdata/test-container-entrypoint index e4714942..745d181b 100755 --- a/testsuite/dockerdata/test-container-entrypoint +++ b/testsuite/dockerdata/test-container-entrypoint @@ -17,6 +17,8 @@ else shift 1 fi +clean_rootless_files=0 + export args="--max-parallel-tasks=1 --disable-sysinfo" for arg in $*; do case "$arg" in @@ -29,15 +31,19 @@ for arg in $*; do --shell) export start_shell=1 ;; + --clean-rootless-files) + clean_rootless_files=1 + ;; --help) cat <