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 < X-Patchwork-Id: 5255 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:57 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f185.google.com (mail-lj1-f185.google.com [209.85.208.185]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 66GEfu2K031933 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 16 Jul 2026 16:41:57 +0200 Received: by mail-lj1-f185.google.com with SMTP id 38308e7fff4ca-39c791b2842sf14808851fa.3 for ; Thu, 16 Jul 2026 07:41:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1784212910; cv=pass; d=google.com; s=arc-20260327; b=FMF3BYUbpSWTe+4w33Ndrt7eIsXgmrTZlNQjtLUv+fd8+mUoS8GqtXClefBfmrcPEe kHQqG/O29yx5l6kgdn4yjeO+1taApqJbZkr1lW5QRFsgmNBgEquYRtO13NhI8PhqHeIK bQ94Ukj7wCti1i3ymnuNrBgNBns2wTZfekcYcOgIYQBIvbZ7O0+xGKGHwzpovt8Sv2E+ nhc0R/jTzyzGtgs5qU6HWR/HoVstUvguuFcoLmlKy8fjNbIGyGTdlukg3SR2lcFmkJpG tN++HT4/V6PAAmW183zGkF1GvPfpyJqBg6le3sRK8deW7ydVyS3xAWXbprtbVZ7XFAgI mUkQ== 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:to:from:sender:dkim-signature; bh=+luIjvsj/7DfG5aPjEtfeDZi5Nt9B1yfF9Vbs4tdzFw=; fh=zmRA3pjmvSQjBSWKNu5HEe90uUNkYvNd0TwMem/oHHY=; b=knxVca8jYOwJOAJAh4QEpXc4DpbVh2myy+LZchbqr2bn9ZEMzdSzT5dvBE73mXRCUo kZcREivmVwVCbtqJ2OGx2JAX6UHl3/XZb9pImpYBbFcp+vNdVHGkIkobvKWNP2+gDLtY 57mfczvDHj9QE+3y1lbnwI/iytbnJGSyw5NVbI7gQao0kH+Lcbb/xhspnkS8oMFz7lUG L2QFHY0MoDSGM/FXh5KamcdF1bK8bWjXWLYXtQXC3hu4t6+Mxim/USuLq7l8w3XBQyNK jwIw7zGL8IU5glxyueNL2MYXn1wMvxCxTPyjMcJdU9FPpBli1+BEfOjV9hxg9e1VLYPV gnAw==; 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 :references:in-reply-to:message-id:date:subject:to:from:sender:from :to:cc:subject:date:message-id:reply-to:content-type; bh=+luIjvsj/7DfG5aPjEtfeDZi5Nt9B1yfF9Vbs4tdzFw=; b=xZD9GDrukX54hgsQfi0K+4l8erKemM6dbe780uJtK1LEcNsdIcYT8wmGndEPGen6Bl ol9f0FPYfXMXfSVGqZ1upF1M5WRhGpHhOC/RVvOe7dkDkGJxnXodlAh1UAB7PKWic0fs lOVhtjmiAMudyNNMX9NnW1mmwNDlM6d9fNyK6aqcADftr1voXt7BJqFHzk9H00OwgzPq 1Hncp1G+MXnnpQv/CyDImltSTGLZwub4Cxb4WzbkMuWGQUrfbZXNONsJY59TcO90bt0y iE/+0BLc56izOveVwhZwbOGQg8WNS/Eq2U1Qhlh/cgqmbj6qJ7xkfzGX8mzuK9QFWCMH UIdw== 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:references:in-reply-to: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=+luIjvsj/7DfG5aPjEtfeDZi5Nt9B1yfF9Vbs4tdzFw=; b=kS4hA45SUrWl0gjAIsvwq1knBb+onQYaUDzv7oWp6HhCHlm7kDlhbS0MSjoIKfWPFQ 4X1bUw/WhlXvKNvruovxeokggeIJD8zA4wecewUKi1sfEfK5DMj2LW6Ih25Udda4ATsb rgqlhUFgXlfLWn3T1rNqs9OqQQRqx9fVIxFvAGlWMxfNQWv1Q8fvHiHWHtGA3T1k3/jk zai7phOEVtT+KWM6gWe+CqRvtevdRBM/vt3AXPM4La+6hFIMXuNv4t+n+e8fNi6YTGMW Kc0ibrTgLJfWrOBEjJlggIUs2FbyUOBlWvjRGQ7rFbcemzUmzP2lFBaSfixHNpveL8fK MbVw== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AHgh+Rpyd/onMp1aOtEkDy78v/4ONdIbBBGsZ4d/je+aLnOBcWi3dkuLivabdsgQKCKIrrIx+KVYwQE=@isar-build.org X-Gm-Message-State: AOJu0Ywwk77HcHnmf17lzOBdFDhKwspy/QAVJPCbR3llhHc1PUK5FR+i lBhaeyKlG3bweY7E868uUo91e2UFnbI4eXdCv1SSGBAIkYNnswX2RJa2 X-Received: by 2002:a05:651c:23d2:10b0:39c:63ea:9957 with SMTP id 38308e7fff4ca-39caa868b12mr34808061fa.17.1784212910180; Thu, 16 Jul 2026 07:41:50 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="Aa7YSPTvto2f1QZzRJNvfeNNCDOL6K8DoSoOI0L2UrToo3am6g==" Received: by 2002:a2e:9548:0:b0:396:6761:b4ac with SMTP id 38308e7fff4ca-39eae6b7102ls27811fa.0.-pod-prod-09-eu; Thu, 16 Jul 2026 07:41:47 -0700 (PDT) X-Received: by 2002:a05:651c:f03:b0:39b:8c6:a6c9 with SMTP id 38308e7fff4ca-39caa8af2a4mr38036191fa.25.1784212907480; Thu, 16 Jul 2026 07:41:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1784212907; cv=none; d=google.com; s=arc-20260327; b=eC73I3YPAzlMFNCoeftPst6jtBvCgcbLY6ik4DcQ6Xn9zGWwBlE5JZAatooKNrb7Z0 4eIyfY33vD+xC+yV1nBwUEH3+EDycwvsYYmXrfKgLeZsB28yZVjOhOkEOFRIg12EXM2o FX3zdJZd1rpXSfOOEIHwoAQIOkctceU87/W/NC/TEQJ0y43DDm4Jtz99h5tymW+GsLL2 ToxwTk8HedUxacL5cuHK1psqTuDxX7sIng6dTKrpYKjZQR62cjBMQxyEyW0ATBVzHSDf UW6VFHqp9nmeTrQJsSSwsJY9TvBl19fTUCTbAUedd5BwfgurhMRZsKSBl1tCv00xfrsX CWRA== 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:to:from; bh=OzcnT7MCAJDG8dMR/TojQNS0K29gvWWdRf5ItYCS98c=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=QM3AKxAL2R2PWYQrwp5T6yuh3qrMHNVqcuRdUN+XgemIp2iZnHoCNTR7cBmpdy2bKd dtXUjgRS3SU+wgDNJFtcS6w6xNXqIEFIiOwOWtHciLa9Il87vdxIbKVH2q3Xx0zl0x4z 8UZpqID6hDJdskij77EUh+TKm37vgOiow5xlzPYYAteVvRdNg7aoVd3hfGKc0NWRck+O 4fC7BikErqYEqLszTzsQuBu2oLIHQZjPEAfEEdmD4YloqxzEF2IWd2YCmGtQ7mm8my6k CnF7EKXj/Q+JYKujlKn6vD4MvB/7cV4htCkHAIJgLhGreoHnKQZ4UwVRdOXYOCG9OnVg OlXA==; 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 38308e7fff4ca-39c84913569si4908321fa.2.2026.07.16.07.41.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Jul 2026 07:41:47 -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 66GEfj7K031903 for ; Thu, 16 Jul 2026 16:41:46 +0200 From: Zhihang Wei To: isar-users@googlegroups.com Subject: [PATCH v2 2/2] ci: Add GitLab CI pipeline for rootless builds Date: Thu, 16 Jul 2026 16:41:45 +0200 Message-Id: <20260716144145.1495181-2-wzh@ilbers.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20260716144145.1495181-1-wzh@ilbers.de> References: <20260716144145.1495181-1-wzh@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: 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?= Add a GitLab CI pipeline to test rootless builds. The pipeline reuses the existing test-container and is intended to run on a rootless shell runner. Signed-off-by: Zhihang Wei --- .gitlab-ci.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0711f200..c880663b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,6 +34,36 @@ variables: when: always expire_in: 1 week +.rootless-build: &rootless-build + stage: build + variables: + RUNNER_AFTER_SCRIPT_TIMEOUT: 15m + before_script: + - export http_proxy=$HTTP_PROXY + - export https_proxy=$HTTPS_PROXY + - export ftp_proxy=$FTP_PROXY + - export no_proxy=$NO_PROXY + - export DISTRO_APT_PREMIRRORS=$DISTRO_APT_PREMIRRORS + after_script: + - | + if [[ -n "${SSTATE_LOCATION}" ]] && [[ -d "sstate-cache" ]]; then + echo "=== Upload sstate artifacts to ${SSTATE_LOCATION} ===" + ./scripts/isar-sstate --filter '^(?!isar-image-)' upload "sstate-cache" "${SSTATE_LOCATION}" + ./scripts/isar-sstate info -v "${SSTATE_LOCATION}" + fi + + artifacts: + name: "logs-$CI_JOB_ID" + paths: + - build/testsuite/tmp*/work/*/*/*/temp + - build/testsuite/job-results + - build/testsuite/vm_start + reports: + junit: + - build/testsuite/job-results/job*/results.xml + when: always + expire_in: 1 week + .test-container: &test-container image: ghcr.io/ilbers/isar/test-container:1 @@ -113,6 +143,17 @@ full-ci-isar: script: - scripts/ci_build.sh --sstate 1 -T full + +dev-rootless-ci: + tags: + - shell-rootless + <<: *rootless-build + rules: + - if: $TESTSUITE == 'dev-rootless' || $CI_PIPELINE_SOURCE != 'schedule' + script: + - scripts/run-tests.sh --debug --clean-rootless-files testsuite/citest.py:test_dev$ -p rootless=1 + + sstate-cache-info: stage: build when: manual