From patchwork Thu Sep 17 22:16:59 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 98652 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19BA8C982DC for ; Thu, 17 Sep 2026 22:17:21 +0000 (UTC) Received: from mail-wm2-f12.google.com (mail-wm2-f12.google.com [74.125.225.140]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1872.1789683434225802872 for ; Thu, 17 Sep 2026 15:17:14 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=rdnY/3Nz; spf=pass (domain: smile.fr, ip: 74.125.225.140, mailfrom: yoann.congal@smile.fr) Received: by mail-wm2-f12.google.com with SMTP id 5b1f17b1804b1-49e6598dd44so674785e9.1 for ; Thu, 17 Sep 2026 15:17:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1789683432; x=1790288232; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=yftN6kbef3aA7lDqgxCMXRlc5Pv1nKkwSvb4UFeV9I8=; b=rdnY/3Nz9GiJ63quLC20VbSukAPLlAY3Z1kmj1anPVIFAwIIOPE9siPgd9ZcUmmd2L DdWZ6AmfY81F3QNgyQdIdFXj9150DxUZUGtnSucvbNFcPLehmmMQ3ZgC49WMab3itJRb K1BRN0DC9/BgfopJYol8+OoAxvW2vGYEaoHcA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789683432; x=1790288232; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=yftN6kbef3aA7lDqgxCMXRlc5Pv1nKkwSvb4UFeV9I8=; b=K7RTstL/4cfiQ8EhX/YOY9kGP1GFJaDm4TeX0oiaCdupXmw4Cld8wihfFJ+IfmJUwV 1Aj2xeW9oraTMKGjvLQdw9E9oAUDSRjBY6gUNAMvAecaLS6z9FC71LHUHJ0ECMPQuF62 CrYv3+7+QfPMQm3KlFLx4X6fYKyIWnAp0p36LWlcvSWW6aFs5plIHFPlhECjE2AVJ2nW 0/8WVf8iPfhH8JeIQJYw3osoVy6+kdbTrI9E5JxhGmAhaW1HLZXLu1PpxOmwO2t8wYcw SYk4zv7Dmb8Eet+xtLj1gS7tp0Hktm9eab3F0yDsDmoghu4a5tXzFbMVq1EMZW8rEcGo RXFw== X-Gm-Message-State: AFuF++mDFAP6ZKr9HMWv4NqhC4OHH1lYyeyl20o0+U6xnmOVMImcC4Da 6VrM7UZJYMS+N3TeZhf3vO3zjatQ4tmfvE7BcQRzdRW7RXdh71TkbDH6PHlQyqoZjS37DuYzMVR /TXXiroU= X-Gm-Gg: AYBFou3PkWpA+wJbIy7KOT17sHht+LZ6W4vu1xGSmqd8MTssyeTI8/39abt3Gk0VZiC boxQFt6AXCFUrC1WB92DVtRmJyT9pk0WpR/gSr7Rkr2IELr1p++HcBYQiUu8E9ET50q765WHxcD RUp9H2zRytK7T9154lBxhmmSiEbO5T4tEmb9vzofifxyoZK8pv4dukKpPXQe2k+q3guwTaCEfPz btQ4akM5CARqLnYsl/4AHVWG9Kts63aW10rWNwKb8G5wD4/c/25xuSq5Y/VOu+O/OhVsE//g99+ X4kgSrxOob9rkN0x6n6JAsOOv0IDfom1ejj7SIA2beWWVOt9RZ+X9/v60gEfEsicEi8gNp9sSig +E6ONm4tDtStm1w2vC2GpQ4HNuua+wiFGgzlByuTU675xjUiMeBLXW6BIGPtD5VQSRs7GOxVBFY 94hFT2e2+6ZnKKTmYEEQz9JInyWLPAJRk7U3cbz5wYBmU3xdAAODzmSjK26XyJewEmMz2JZvHBV 3CeU8T5hvmW0Ie/FpblGVetIt7oOJeE8uhNSxCb3pefA1Ao0QyUugvhVT0kdoVjbTN0lyRhtng= X-Received: by 2002:a05:600c:6211:b0:49c:fa20:cbfb with SMTP id 5b1f17b1804b1-49fc5728f84mr3106865e9.18.1789683432450; Thu, 17 Sep 2026 15:17:12 -0700 (PDT) Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fbd247809sm185737725e9.11.2026.09.17.15.17.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2026 15:17:12 -0700 (PDT) From: Yoann Congal To: bitbake-devel@lists.openembedded.org Subject: [bitbake][wrynose][2.18][PATCH 1/7] fetch2/git.py: add filter_regex parameter to latest_versionstring Date: Fri, 18 Sep 2026 00:16:59 +0200 Message-ID: <5dc6a868e227e7e8034367ad204ad02e752a12c5.1789683244.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 17 Sep 2026 22:17:21 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20224 From: Chen Qi We want to be able to do stable version upgrade for recipes. For example, 1.0.0 -> 1.0.1 instead of 1.0.0 -> 1.1.0. To to this, we need an extra paramter to latest_versionstring so that we are able to filter out the versions we need. Using regex has the advantage of adapting to different version schemes. Signed-off-by: Chen Qi Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (cherry picked from commit 51842f8bc83203ff19e202361d2bb66e0c9f6381) Signed-off-by: Daniel Turull Signed-off-by: Yoann Congal --- lib/bb/fetch2/git.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py index 5134ec04c..0649429e5 100644 --- a/lib/bb/fetch2/git.py +++ b/lib/bb/fetch2/git.py @@ -975,7 +975,7 @@ class Git(FetchMethod): raise bb.fetch2.FetchError("Unable to resolve '%s' in upstream git repository in git ls-remote output for %s" % \ (ud.unresolvedrev, ud.host+ud.path)) - def latest_versionstring(self, ud, d): + def latest_versionstring(self, ud, d, filter_regex=None): """ Compute the latest release name like "x.y.x" in "x.y.x+gitHASH" by searching through the tags output of ls-remote, comparing @@ -1015,6 +1015,10 @@ class Git(FetchMethod): pver = m.group('pver').replace("_", ".") + if filter_regex: + if not re.match(filter_regex, pver): + continue + if verstring and bb.utils.vercmp(("0", pver, ""), ("0", verstring, "")) < 0: continue From patchwork Thu Sep 17 22:17:00 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 98654 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5573AC982DD for ; Thu, 17 Sep 2026 22:17:21 +0000 (UTC) Received: from mail-wm2-f12.google.com (mail-wm2-f12.google.com [74.125.225.140]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1873.1789683434765494600 for ; Thu, 17 Sep 2026 15:17:15 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=2KvuD1eq; spf=pass (domain: smile.fr, ip: 74.125.225.140, mailfrom: yoann.congal@smile.fr) Received: by mail-wm2-f12.google.com with SMTP id 5b1f17b1804b1-49b912d3931so877275e9.3 for ; Thu, 17 Sep 2026 15:17:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1789683433; x=1790288233; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=IbNm2GWtD3aZGg1aVHDtPUgwbtMwLOdA87VtMcfVh/g=; b=2KvuD1eqsuYGsRvpCWwVLwo2dnPDd8UYGuksbnjtZ1ULj4m/4DE72CBU7vE8UTIujR TZ1lkEGMc1VTFaJfo6SGQl52h3tZ+nv2O4hNR3clF4Gu/TCWlssw8lKGQX2KAGpTOvqD dwC2/BiZ1fFfL6YXZ3ZY/kKGHq98KiP+4TNFA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789683433; x=1790288233; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=IbNm2GWtD3aZGg1aVHDtPUgwbtMwLOdA87VtMcfVh/g=; b=kEoJxgCERpAoP7ZyMeBGmWPhwNbxuUFUliHj+EImSPl8++GY0DCqYu9HmNqz5T8fJd /DfvE4hdTwx5og8mxHKb5iU0u+xixbBFD1J4DjtDngP1e69BRAy/4DniW+gB50/FiveU QNGOVBR+z0FkIh/Tb5s8MR69OynMHfSlQgb3c9i5gjxHwsBarinkDDCJLAUv0myYGIJc GMrNi9N/OksS95qhbTegGzZrszyfdngFo8Hfkz2euavXnVmzkqMLpxKuzh/aN30CdepZ 1dVDiWVgJ/+lZYpRHfxuWj1tYwDNqQL1v8lYQ3GMbfNJoRfPMpT7BUH3P+RRL/iIXJxn 8f8w== X-Gm-Message-State: AFuF++lfHhfwGlqNP4f0E7Ctuzfnmuk+jHcEJDifyjnY/Wjucd8I03M/ xuyoWTg/Y0cA1CW5WV+uFWiLlizMBw6nTuw8ZLZjaqPuXltZELKCzEN4Lix8QL66HEd2BrP2qlo JmA8qqPI= X-Gm-Gg: AYBFou2hZMjsuuhb8v2vthUpOT8f/HwGHLFfslk75QltqkNY5IZNWOUb3qmLSfPJ4Ce kaDqIev5NoORR7q0xVrnpYTePz8NX3KFf1uIM7ywKyJScm2zcDKLQ92W7ENrVLdJar3olEH5Sfc xtHOREr43Qx21G2iwY0ql7xdtuOUFfoczzSvB2rNZvubEmJCnSs+EuxiohUOLBZzKdeLmyh5UoD tKFGsRdTbKlSNBU4GOPKSXZOxtxnM9zdGFuFpEu+qtG3L+IU6Y3Wv8DZkAj0QbZi2swKLse90h/ ZyMNVc7uBjo5xxobuVJPuC0pVi2F5RTLnxVuG+C9J9PfsWSm5LkrMG9JyWjEdQftLk/ELr0DRTc St6gFniludA33J+vbEtxJyORvL3efWwNDYEmE5ZcFZiNvbS8YxnGuzElIhDBmGJlBplY7J+J/wr uTZM420ztCc7I0sfK+J6bsTLiLUbckHT05VTx6/fZXqMuvLHIVNwV3a66MFU+jTOMdnkSgmHfQ+ BLxdI7cBmsYKQYxk8mQN/hpBrRNcUR2Dnz4ohFI/3URXEnEDiOa4r/txLfg/+ffy7wIV+QTSEg= X-Received: by 2002:a05:600c:3f0b:b0:49b:d45:703e with SMTP id 5b1f17b1804b1-49fc56aa68amr3374645e9.8.1789683432938; Thu, 17 Sep 2026 15:17:12 -0700 (PDT) Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fbd247809sm185737725e9.11.2026.09.17.15.17.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2026 15:17:12 -0700 (PDT) From: Yoann Congal To: bitbake-devel@lists.openembedded.org Subject: [bitbake][wrynose][2.18][PATCH 2/7] fetch2/wget.py: add filter_regex parameter to latest_versionstring Date: Fri, 18 Sep 2026 00:17:00 +0200 Message-ID: <9a668f8fff0266a51f49968968cccb2cfa52156c.1789683244.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 17 Sep 2026 22:17:21 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20225 From: Chen Qi We want to be able to do stable version upgrade for recipes. For example, 1.0.0 -> 1.0.1 instead of 1.0.0 -> 1.1.0. To to this, we need an extra paramter to latest_versionstring so that we are able to filter out the versions we need. Using regex has the advantage of adapting to different version schemes. Signed-off-by: Chen Qi Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (cherry picked from commit b1c4a431b080ee328fbf21543258e226a464c118) Signed-off-by: Daniel Turull Signed-off-by: Yoann Congal --- lib/bb/fetch2/wget.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py index fc83b301a..c292dfe7e 100644 --- a/lib/bb/fetch2/wget.py +++ b/lib/bb/fetch2/wget.py @@ -515,7 +515,7 @@ class Wget(FetchMethod): return fetchresult - def _check_latest_version(self, url, package, package_regex, current_version, ud, d): + def _check_latest_version(self, url, package, package_regex, current_version, ud, d, filter_regex=None): """ Return the latest version of a package inside a given directory path If error or no version, return "" @@ -538,6 +538,11 @@ class Wget(FetchMethod): newver = self._parse_path(package_regex, str(line)) if newver: + if filter_regex: + # filter_regex is derived from PV, and uses . as separator + # while upstream may be using _ as separator + if not re.match(filter_regex, re.sub('_', '.', newver[1])): + continue bb.debug(3, "Upstream version found: %s" % newver[1]) if valid == 0: version = newver @@ -555,7 +560,7 @@ class Wget(FetchMethod): return "" - def _check_latest_version_by_dir(self, dirver, package, package_regex, current_version, ud, d): + def _check_latest_version_by_dir(self, dirver, package, package_regex, current_version, ud, d, filter_regex=None): """ Scan every directory in order to get upstream version. """ @@ -599,7 +604,7 @@ class Wget(FetchMethod): ud.user, ud.pswd, {}]) pupver = self._check_latest_version(uri, - package, package_regex, current_version, ud, d) + package, package_regex, current_version, ud, d, filter_regex) if pupver: version[1] = pupver @@ -660,7 +665,7 @@ class Wget(FetchMethod): return package_custom_regex_comp - def latest_versionstring(self, ud, d): + def latest_versionstring(self, ud, d, filter_regex=None): """ Manipulate the URL and try to obtain the latest package version @@ -701,11 +706,11 @@ class Wget(FetchMethod): dirver_pn_regex = re.compile(r"%s\d?" % (re.escape(pn))) if not dirver_pn_regex.search(dirver): return (self._check_latest_version_by_dir(dirver, - package, package_regex, current_version, ud, d), '') + package, package_regex, current_version, ud, d, filter_regex), '') uri = bb.fetch.encodeurl([ud.type, ud.host, path, ud.user, ud.pswd, {}]) else: uri = regex_uri return (self._check_latest_version(uri, package, package_regex, - current_version, ud, d), '') + current_version, ud, d, filter_regex), '') From patchwork Thu Sep 17 22:17:01 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 98653 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E324C982DF for ; Thu, 17 Sep 2026 22:17:21 +0000 (UTC) Received: from mail-wm2-f13.google.com (mail-wm2-f13.google.com [74.125.225.141]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1874.1789683435102233444 for ; Thu, 17 Sep 2026 15:17:15 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=QVmfTxjn; spf=pass (domain: smile.fr, ip: 74.125.225.141, mailfrom: yoann.congal@smile.fr) Received: by mail-wm2-f13.google.com with SMTP id 5b1f17b1804b1-49e79a408deso521725e9.2 for ; Thu, 17 Sep 2026 15:17:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1789683433; x=1790288233; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=4p06dazv7lsL4h5jv8LyDYtG4pQpyAhvuN7/g1+0Gi8=; b=QVmfTxjn7Yd7gr155Vgz+5JtYcmUmYoTmM8IGpTEq2/hADvE1XGCuj4NmVxDPD+FAa /wuqqe4uDJSIvedcvJFE65kWwiEncoIMryLxJYHBYCE9VMkJmGfGqg7Rv54n+T+XKyEj wizSOB6Qm+3XWdlQ5htN47CNXALcf5SHI9p8s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789683433; x=1790288233; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=4p06dazv7lsL4h5jv8LyDYtG4pQpyAhvuN7/g1+0Gi8=; b=NPcKzTqGI8RGra5x1fQAQ5mNx9O4BF3nMA4qg6Ffcpgg8b06iMtxTDAb+DmPhgdPEH SiClmWOOR/4ZfdwRQLMyTyn/UWyyK9hUn/OELLnxlLDqdEe0ZqcoxwURUtOhTpU04IUS fvJ5iNQnMCSuIRcnJ2UL4CxY2v+4V+1fVE4wunlXqKIC23NPWB09h7HfHCEgtWC2xxwY IjLThl5FHjrQZvnBwP7n9AKnxhyz0vx30MD7rPIWMpwu3YHEIbpSoz0w4GI10M2iT1vM urg0kpJBxm+0oncw5efRcs/nYc0FaaoEJedVb8CpNI2x+WWO+RP7/itAqXjO5nIz79GW /yhg== X-Gm-Message-State: AFuF++k3kl2+5Dw5sfjtB9o63pmXkoYVDrznpToz8uW+KHDk4l2m4NdA 6USW7EITk/WdbUwGTSu1Kt7zhpTfU6S7P5X4cSBrXiQTEwMuueavsH6+l58veelibhgcD+987z9 Pauc56nI= X-Gm-Gg: AYBFou3ppTSRtOMBdmsltX4cqQmITRUwgCY42NnUVaIxJIIarpyhztEPRLuGnfb5sna HRd6zWUnT3s4cMxQEQa2bmdTHliyVXrye3eTN/DTjmU9k86Yv6aPJRoHqSTH3eO07NgiTfZHOol oMhuDBK0YueFNU+C1a0m1fS5RyfD0C7Lvgi4eeyeg3yFz5Wtv6XWg4ENf6ymALLDTTkO54RFqLD gLvwNCtcBLoXWnqyszDSs1c/1YBeaqu67JjTlqwOFWrVaA51qKKA1cTVE31gWcZPHr6YHOYYCXw 9DtKV4UJTXIHeUQ8x8Su1jedVYrJew0quMqzlZWh8lmGVMCsauUb+9/Ok4ZA2OiioH1bMo6xeyb +h5+FNFbx4BX8GDIMbHiCdGEjYD4BtPCkM6UPDVFLOWlZ8MlMnlmbHkhGgKQDPRSnTpA6kjOB8r NU2b8XkTurG8m2jLLv02Ey2suBRamjJnYWsFukQyuepJJQgqSzNEKUgCHBM7Yw94q4v36yI+XpM aaLZ9awvu3fTwGGPw88Kx840q5OZXrSzjfvmqZLf2BNBrac42ybmaXE68dVDkPz60JN4w4GO/I= X-Received: by 2002:a05:600c:34d0:b0:495:6e68:5df2 with SMTP id 5b1f17b1804b1-49fc56ef520mr3417955e9.12.1789683433370; Thu, 17 Sep 2026 15:17:13 -0700 (PDT) Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fbd247809sm185737725e9.11.2026.09.17.15.17.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2026 15:17:13 -0700 (PDT) From: Yoann Congal To: bitbake-devel@lists.openembedded.org Subject: [bitbake][wrynose][2.18][PATCH 3/7] fetch2/crate.py: add filter_regex parameter to latest_versionstring Date: Fri, 18 Sep 2026 00:17:01 +0200 Message-ID: X-Mailer: git-send-email 2.47.3 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 17 Sep 2026 22:17:21 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20226 From: Chen Qi We want to be able to do stable version upgrade for recipes. For example, 1.0.0 -> 1.0.1 instead of 1.0.0 -> 1.1.0. To to this, we need an extra paramter to latest_versionstring so that we are able to filter out the versions we need. Using regex has the advantage of adapting to different version schemes. Signed-off-by: Chen Qi Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (cherry picked from commit 592477f225868e227110477f52691e031903430a) Signed-off-by: Daniel Turull Signed-off-by: Yoann Congal --- lib/bb/fetch2/crate.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/bb/fetch2/crate.py b/lib/bb/fetch2/crate.py index eb1fd5719..6133d3756 100644 --- a/lib/bb/fetch2/crate.py +++ b/lib/bb/fetch2/crate.py @@ -13,6 +13,7 @@ BitBake 'Fetch' implementation for crates.io import hashlib import json import os +import re import subprocess import bb from bb.fetch2 import logger, subprocess_setup, UnpackError @@ -155,18 +156,20 @@ class Crate(Wget): with open(mdpath, "w") as f: json.dump(metadata, f) - def latest_versionstring(self, ud, d): + def latest_versionstring(self, ud, d, filter_regex=None): """ Return the latest version available when versionsurl is the [name]/versions URL. """ from functools import cmp_to_key json_data = json.loads(self._fetch_index(ud.versionsurl, ud, d)) versions = [(0, i["num"], "") for i in json_data["versions"]] + if filter_regex: + versions = [v for v in versions if re.match(filter_regex, v[1])] versions = sorted(versions, key=cmp_to_key(bb.utils.vercmp)) return (versions[-1][1], "") if versions else ("", "") - def latest_versionstring_from_index(self, ud, d): + def latest_versionstring_from_index(self, ud, d, filter_regex=None): """ Return the latest version available when versionsurl is a Cargo index file. @@ -181,5 +184,8 @@ class Crate(Wget): if not data.get("yanked", False): versions.append((0, data["vers"], "")) + if filter_regex: + versions = [v for v in versions if re.match(filter_regex, v[1])] + versions = sorted(versions, key=cmp_to_key(bb.utils.vercmp)) return (versions[-1][1], "") if versions else ("", "") From patchwork Thu Sep 17 22:17:02 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 98648 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16558C982D9 for ; Thu, 17 Sep 2026 22:17:20 +0000 (UTC) Received: from mail-wm2-f12.google.com (mail-wm2-f12.google.com [74.125.225.140]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1875.1789683435316299135 for ; Thu, 17 Sep 2026 15:17:15 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=c3V7A+E/; spf=pass (domain: smile.fr, ip: 74.125.225.140, mailfrom: yoann.congal@smile.fr) Received: by mail-wm2-f12.google.com with SMTP id 5b1f17b1804b1-49cd38e0e5dso1407225e9.2 for ; Thu, 17 Sep 2026 15:17:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1789683433; x=1790288233; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=7HlQBJ0LFrt1ruDGzJk0CX1WzmAhWgHpSOWGAa8qBTU=; b=c3V7A+E/Ln27NjHketE8VlOdefL/52NJAiMClmYLD3gkS14CZDQ2GS59ZhLmeVh7aK rFsZrb88pyfU3qlqtsM3oW2VBPu7UXjgfK7hy+LSFFv4Ml/ZL2bHB1y991QzpG7qQuTY F97k+bwox6saqqXXSnuVCvOBBOLTcOyRH+cj4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789683433; x=1790288233; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=7HlQBJ0LFrt1ruDGzJk0CX1WzmAhWgHpSOWGAa8qBTU=; b=el98n2VCDt6+ih/iS8PN5kh8OqhUyyOQEg23Zo19GzSL/muekcNB7+4zTZE/525ePI ljitcztCrfjBF6yz0OYwXd2f0K1pUE2HY2zjp71buT9Bmm21omC7At1/PfW+cFFHilTY 2WxyLq2LeXVXogOzY8xWV/Me72Ggd3NNU1w1mPfn1YmDDXA7QTJ4ZKucm6oK3uSLXSWh /rDfPuT6g+v+0ByhSQkccXgU/Z6khTSvIHYCOnyJhv4e6T4tU/4LUW1t3eGpWhGlQo2t aZxF27JrtVcB5+ZaO+2o2pDNGVJiDb/81B+MUZoSPW29951hobNyZwCmTf7WMW1whBeA iMWw== X-Gm-Message-State: AFuF++l4v5z6UtGuAbVWi2rkxabrTqugPgeAYb9nyo4hXY4CC2JRDfq8 6gSmWhrqWqSvX8SqiR6zhYVb4vz5OnCaPzUdCXxudL+Ra3d6NzwzNg2isVCQxDHk3OEJaBux0uD BKFceygA= X-Gm-Gg: AYBFou2jABvyPMe52JzsLHALpaNcRw+8rYNYDkhkzyrvFjeuAvvH9O8N5XrnkO1x432 aA+vZ9HalPM1Ey0Qh32po4H9bLDGrPvgnn67HVQ2w1yaIL4j8VLynV3ZrhF4/TemvnDpoqYoTx0 J7ttPkwp3uuXac9HrMd5xc/xiJ9pPkcvvWk+4I2ghPy+dYVfKUUZWpOt14GMBB4HU0/cDE4Ctlw 9tcEhZjaIrvfBzfgx8xQNl5Y1qYomEM7/BgWhOGwELDVLL8ZzFivWQ9nbolfW8Q4Dn6u41cPABS 4vW6PmTWlZAqstzQPb7N6lHnQGzxHWgGblfF4Jnbs0sdxdlw6qC7CJ/aJrS6VUbTUDeUGmAVVGZ TPe0EnxCeT1ZphSxsshRoApUYwHYlkz0J4mJUnUl4bBoq4H75kv4gcJHsyV7BbBxxV1BsjjmOZf H1CaKMQgFqzwZeCnVi9wbhr/RQfWv3UT1FNaOVo7w7MYfZo0xtzulp+IJaHsmNrTI76nNS9JlYC OKO1X54sk9Ad1Jk/voTdWeVUXG3TvmbHMlxnDmwzcm+9HZF3bDCiT4Jin7L2cL/ANM1DkMQs2E= X-Received: by 2002:a05:600c:3b9d:b0:49f:bd3c:bc1f with SMTP id 5b1f17b1804b1-49fc573b54amr4031625e9.26.1789683433707; Thu, 17 Sep 2026 15:17:13 -0700 (PDT) Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fbd247809sm185737725e9.11.2026.09.17.15.17.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2026 15:17:13 -0700 (PDT) From: Yoann Congal To: bitbake-devel@lists.openembedded.org Subject: [bitbake][wrynose][2.18][PATCH 4/7] fetch2/__init__.py: add filter_regex to default latest_versionstring Date: Fri, 18 Sep 2026 00:17:02 +0200 Message-ID: X-Mailer: git-send-email 2.47.3 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 17 Sep 2026 22:17:20 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20227 From: Chen Qi Add filter_regex parameter to the default latest_versionstring function so that fetchers that do not implement this function can also take the filter_regex parameter. Signed-off-by: Chen Qi Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (cherry picked from commit 52f4d0ffd4a51b8c279eb5df157c90fe7d471a55) Signed-off-by: Daniel Turull Signed-off-by: Yoann Congal --- lib/bb/fetch2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index b9373d2a9..d5f9c7d8e 100644 --- a/lib/bb/fetch2/__init__.py +++ b/lib/bb/fetch2/__init__.py @@ -1735,7 +1735,7 @@ class FetchMethod(object): def generate_revision_key(self, ud, d, name): return self._revision_key(ud, d, name) - def latest_versionstring(self, ud, d): + def latest_versionstring(self, ud, d, filter_regex=None): """ Compute the latest release name like "x.y.x" in "x.y.x+gitHASH" by searching through the tags output of ls-remote, comparing From patchwork Thu Sep 17 22:17:03 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 98649 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59DD0C982DA for ; Thu, 17 Sep 2026 22:17:20 +0000 (UTC) Received: from mail-wm2-f12.google.com (mail-wm2-f12.google.com [74.125.225.140]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.1753.1789683435901046119 for ; Thu, 17 Sep 2026 15:17:16 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=bebRQVO8; spf=pass (domain: smile.fr, ip: 74.125.225.140, mailfrom: yoann.congal@smile.fr) Received: by mail-wm2-f12.google.com with SMTP id 5b1f17b1804b1-49cd4ba9f68so1547645e9.1 for ; Thu, 17 Sep 2026 15:17:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1789683434; x=1790288234; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=yqd3a15kABHbux1buscXySsv8YdsMYpxBdV+ZMbux7A=; b=bebRQVO8L5sXJXmA8BKb8l+Age+YE/J5BoLDH/pVOtk60wGJ0APRN+p9KOF6urtJrn UezZ6uHipL9V2VRAWcaCmYFjXORTT11OTRz15pzuyWRqk4zuKD+CoZ57STZT944fTd7Y f6kNP+ASkPrkZFmDUizttxlvj6gP3jNalnNaA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789683434; x=1790288234; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=yqd3a15kABHbux1buscXySsv8YdsMYpxBdV+ZMbux7A=; b=Y4zdaXY2NBiSF1uVQYa1kLHZZVHUkC7p+waCI4JA9vTmTKSuh7yp42/VAPhTkfTXqE 4rgfpteF+g8tvNAaGwSHsSf24GPXK+s9bmWOUmeFUYrP5oQreBCRuUU5QZ7eoykvdpu9 ziNZJfUXRou4TeKqtHZV7V7cGmxmtqHr1NqK7lG6SX3SPHN4XVU1srTdA9raOEvQE9uX xB2Rzgvi88rG1NY1HKb+a5a9gW0jyZfoFkhpM6h6rha+VnT7n48/FMB4EUi5pHOoGelf dwCkNbxiUs2GQyxao8Y4HUVjf0+X+hFNniY5ssaMjLl2E1slHjL4V4s8t0yzpRrbnCEY +O0g== X-Gm-Message-State: AFuF++kPXtg7oSv0ahPjKRO0EdiDzEQByfwAIn8uK5gytaz1mX6ug/48 LfDXTH+Fq9U2uiTBwNrIxRthkrUd8KQG3ROf9VtOE4ZyHGGATxoM4339an91iK8nhoNDZgnH0bX bgSeE9Bk= X-Gm-Gg: AYBFou0GQp+VUdDALzirLbgzYffMP01RvCfTds2pqhXmp5xQ69XqhvK/9uGPblmFgv8 A27bB+p5Aebq3rkKDcFZbMkCz7coyD4mJdW1zhZLhS5rWsQPcUyNA6KnsdvrPxtlClayupIrGal 5ZDmpQs6DQ0ZPXpO+nMgt/zjIh8UAkyNGAoEnUFNN/QWCoO1xSijDRLh2pPd9zlgEi9UdqtvafX 0onzYIuKAw1iuUj75eImKcqZMq028yoGOb/qFP4m982TQzKECqh4gSd2l37ubznhDnZFJFfN3eC JxGiRBy9gGNr0XMB7MZdfaxl864vE1M8/5jC3iPJxs0fcN6gUg2KNk8hBj7WFD6orjI1nRzoqYY sdCarUgpd+4NkFvvYJQy5/IwgIZE5HsWsfofqiSyw9SI3VEoH1DRZTJkcqNIAXjYry2C0iWTjgO sY8m98s9jLqpzuuU6Osjm9CJ/LnAujqVhcU7SuovBlHHMvbKiX+utINf2QKcP9/rEK2kzZYSx94 IU3cUeZk+Ck9OlEQtqvWmDig4pNrCezGmmXMAnOX8BucGcmThIBwiOmWbfwIfTCWZHrwBYzo1Q= X-Received: by 2002:a05:600c:8b81:b0:49d:15f8:2bdb with SMTP id 5b1f17b1804b1-49fc568125bmr3188645e9.7.1789683434063; Thu, 17 Sep 2026 15:17:14 -0700 (PDT) Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fbd247809sm185737725e9.11.2026.09.17.15.17.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2026 15:17:13 -0700 (PDT) From: Yoann Congal To: bitbake-devel@lists.openembedded.org Subject: [bitbake][wrynose][2.18][PATCH 5/7] bb/tests/fetch.py: add case for filter_regex parameter in latest_versionstring Date: Fri, 18 Sep 2026 00:17:03 +0200 Message-ID: X-Mailer: git-send-email 2.47.3 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 17 Sep 2026 22:17:20 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20228 From: Chen Qi Add bitbake selftest case for fitler_regex parameter in latest_versionstring to ensure no regression. Signed-off-by: Chen Qi Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (cherry picked from commit 63a51b543e17d44c26a82e6ca911ed23e517fc33) Signed-off-by: Daniel Turull Signed-off-by: Yoann Congal --- lib/bb/tests/fetch.py | 78 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 77 insertions(+), 1 deletion(-) diff --git a/lib/bb/tests/fetch.py b/lib/bb/tests/fetch.py index 137505343..c72e4c4e3 100644 --- a/lib/bb/tests/fetch.py +++ b/lib/bb/tests/fetch.py @@ -1577,7 +1577,24 @@ class FetchLatestVersionTest(FetcherTest): # basic example; version pattern "A.B.C+cargo-D.E.F" ("cargo-c", "crate://crates.io/cargo-c/0.9.18+cargo-0.69") : "0.9.29" - } + } + + test_git_stable_uris = { + ("dtc", "git://git.yoctoproject.org/bbfetchtests-dtc.git;branch=master;protocol=https", "65cc4d2748a2c2e6f27f1cf39e07a5dbabd80ebf", "", r"^1\.4\.\d+$") + : ("1.4.0", "1.5.0"), + ("systemd", "git://github.com/systemd/systemd.git;protocol=https;branch=stable/v259-stable", "b3d8fc43e9cb531d958c17ef2cd93b374bc14e8a", "", r"^259\.\d+$") + : ("259.5", "260") + } + + test_wget_stable_uris = { + ("openssh", "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-10.2p1.tar.gz", "10.2p1", "", "", r"^10\.2p\d+$") + : ("10.2p1", "10.3") + } + + test_crate_stable_uris = { + ("cargo-c", "crate://crates.io/cargo-c/0.9.18+cargo-0.69", r"^0\.9\.\d+") + : ("0.9.29", "0.10.0") + } @skipIfNoNetwork() def test_git_latest_versionstring(self): @@ -1634,6 +1651,65 @@ class FetchLatestVersionTest(FetcherTest): r = bb.utils.vercmp_string(v, verstring) self.assertTrue(r == -1 or r == 0, msg="Package %s, version: %s <= %s" % (k[0], v, verstring)) + @skipIfNoNetwork() + def test_git_latest_versionstring_stable(self): + for k, v in self.test_git_stable_uris.items(): + with self.subTest(pn=k[0]): + self.d.setVar("PN", k[0]) + self.d.setVar("SRCREV", k[2]) + self.d.setVar("UPSTREAM_CHECK_GITTAGREGEX", k[3]) + filter_regex = k[4] + ud = bb.fetch2.FetchData(k[1], self.d) + pupver= ud.method.latest_versionstring(ud, self.d, filter_regex=filter_regex) + verstring = pupver[0] + self.assertTrue(verstring, msg="Could not find upstream version for %s" % k[0]) + v_less_or_equal = v[0] + v_larger = v[1] + r = bb.utils.vercmp_string(v_less_or_equal, verstring) + self.assertTrue(r == -1 or r == 0, msg="Package %s, version: %s < %s" % (k[0], v_less_or_equal, verstring)) + r = bb.utils.vercmp_string(verstring, v_larger) + self.assertTrue(r == -1, msg="Package %s, version: %s <= %s" % (k[0], v_larger, verstring)) + + @skipIfNoNetwork() + def test_wget_latest_versionstring_stable(self): + for k, v in self.test_wget_stable_uris.items(): + with self.subTest(pn=k[0]): + self.d.setVar("PN", k[0]) + url = k[1] + self.d.setVar("PV", k[2]) + if k[3]: + self.d.setVar("UPSTREAM_CHECK_URI", k[3]) + if k[4]: + self.d.setVar("UPSTREAM_CHECK_REGEX", k[4]) + filter_regex = k[5] + ud = bb.fetch2.FetchData(url, self.d) + pupver= ud.method.latest_versionstring(ud, self.d, filter_regex=filter_regex) + verstring = pupver[0] + self.assertTrue(verstring, msg="Could not find upstream version for %s" % k[0]) + v_less_or_equal = v[0] + v_larger = v[1] + r = bb.utils.vercmp_string(v_less_or_equal, verstring) + self.assertTrue(r == -1 or r == 0, msg="Package %s, version: %s < %s" % (k[0], v_less_or_equal, verstring)) + r = bb.utils.vercmp_string(verstring, v_larger) + self.assertTrue(r == -1, msg="Package %s, version: %s <= %s" % (k[0], v_larger, verstring)) + + @skipIfNoNetwork() + def test_crate_latest_versionstring_stable(self): + for k, v in self.test_crate_stable_uris.items(): + with self.subTest(pn=k[0]): + self.d.setVar("PN", k[0]) + ud = bb.fetch2.FetchData(k[1], self.d) + filter_regex = k[2] + pupver = ud.method.latest_versionstring(ud, self.d, filter_regex=filter_regex) + verstring = pupver[0] + self.assertTrue(verstring, msg="Could not find upstream version for %s" % k[0]) + v_less_or_equal = v[0] + v_larger = v[1] + r = bb.utils.vercmp_string(v_less_or_equal, verstring) + self.assertTrue(r == -1 or r == 0, msg="Package %s, version: %s < %s" % (k[0], v_less_or_equal, verstring)) + r = bb.utils.vercmp_string(verstring, v_larger) + self.assertTrue(r == -1, msg="Package %s, version: %s <= %s" % (k[0], v_larger, verstring)) + class FetchCheckStatusTest(FetcherTest): test_wget_uris = ["https://downloads.yoctoproject.org/releases/sato/sato-engine-0.1.tar.gz", "https://downloads.yoctoproject.org/releases/sato/sato-engine-0.2.tar.gz", From patchwork Thu Sep 17 22:17:04 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 98651 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A59BC982DB for ; Thu, 17 Sep 2026 22:17:20 +0000 (UTC) Received: from mail-wm2-f13.google.com (mail-wm2-f13.google.com [74.125.225.141]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1878.1789683436398462334 for ; Thu, 17 Sep 2026 15:17:16 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=sODGrGgB; spf=pass (domain: smile.fr, ip: 74.125.225.141, mailfrom: yoann.congal@smile.fr) Received: by mail-wm2-f13.google.com with SMTP id 5b1f17b1804b1-49e6b885ef8so687525e9.1 for ; Thu, 17 Sep 2026 15:17:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1789683435; x=1790288235; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=owMfiEZBb2u9PicQ1R7dhg89/YW+zu1QH2CrueyT8TY=; b=sODGrGgBHAIYvrLql3IDf0FhP1N+yt08IxbT7ZyTrNZIwzfoWLI3G+x6Y4VkX/4yxO L+JKcyMMhiZWeLGiw1m3n6TAvhQ99ifmq4BLFr2armulr+vdyFu/cC6czQeySQV6c8qN 6iuqYabQJprdKU7+1/eEhshV4OsCSJ8WS9c2M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789683435; x=1790288235; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=owMfiEZBb2u9PicQ1R7dhg89/YW+zu1QH2CrueyT8TY=; b=JiQHq7pCkwVlgDAXBF4ho0WQ9ArVoipZ1maNjqCjZl64IX1B4Lwcc5Gjy1RvJQF0n9 PjmDbTlG8/0t2PDxFWHX2pTfDW65LjVeQzu1Wwn+ErNmhg+j0rZE9uvPxaVfjXt/Xzle hXMbburmllDMNFjyecysAwmIh1OpP1vKPcwFwLetKoNpYbkNWsa3XDlYNP6ToW6m4HL7 ed5noZTSVDbPWrVggC/yaMJSjcXSslPaCyG3n9pO65uVPqK/c2RD6+Fm/eT7IkIExJmI YGiSZVzwlLoMwyucmWoUdHneFju39RUWaYLxMyFuntLgRULdZknFpf1jFr8brlVMODiv 3aOg== X-Gm-Message-State: AFuF++ktazte9sOoxFEJwafBVTlVTVHiWyXpLhjXHivW68hLIFG7vWeo cB/Lmp2zscC5spq0/VQLXPe1Tfx0EiIYevHNFko9J/7dJ/x2DxMab9wMk9GVW8IgWyeo2kNk7rF ONWk3Xbw= X-Gm-Gg: AYBFou1O+p/gS7Ke82G6KXguuR60jKQRWCsPci5w7Mt2R2GnoftxiM349Y15kQ3VbEI oFmJGhsDQ7aFaFjDmaXo+e6DIiVn1MQvwizC6GzPcxtu8q6enVia0CD1drG3Um/ApmKGD17P1mW ya1r1yrQFekIruvLUCX/BnPc6ypyZSUfa4eIO8Cr9A8u3so2ZdxX9cA74R0PZWybQupzaGsEV3O jln7pCbevDHTNBYNYw6N0TXXtprSDIm+Z7EC9L5LO8t5oKoIWYuuxmXRQPWkIziT2fRsfeClD9U i5oECU+LoX8JUIOadxCpAyLbnTZwWkLNldfbATIMU9LftGxa6T/mB/4W5p1w8SCyypaxI4p9bql 65YgR5HaSk4KcE6sxk4s3EWWTdq30b270gmQMUIfOXlJw0JZJhC7iHe+1jbhTd/pLNsFpj9ziub 3JVGa0jmmNrKu7PV8ta/6dpek2k5OcCKGRog3NDlic/XtbvTU9tfrniST8YuY8Anm07U04jSUes qb7AaXZhccqJP5ZooWcGGNj4wlrn2fFhRXGb8MhELonLomaBKURuRO1EPheO+1Lm2yHPGuQu8M= X-Received: by 2002:a05:600c:1d16:b0:49f:bc8a:b103 with SMTP id 5b1f17b1804b1-49fc55c5361mr4144675e9.0.1789683434657; Thu, 17 Sep 2026 15:17:14 -0700 (PDT) Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fbd247809sm185737725e9.11.2026.09.17.15.17.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2026 15:17:14 -0700 (PDT) From: Yoann Congal To: bitbake-devel@lists.openembedded.org Subject: [bitbake][wrynose][2.18][PATCH 6/7] tests/fetch: Switch to YP mirror repos instead of github Date: Fri, 18 Sep 2026 00:17:04 +0200 Message-ID: <08922f238e470e8b82f48ea82a0efc6359d65a90.1789683244.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 17 Sep 2026 22:17:20 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20229 From: Richard Purdie We're having issues with github urls, switch many of the test repos to our own mirror copies. Some mirror copies are modified to reduce their size and improve test times. More needs to be done in that area! Signed-off-by: Richard Purdie (cherry picked from commit 9dbf27b9fd04c40c87f25eb6cbd884db5c7f2160) Signed-off-by: Yoann Congal --- lib/bb/tests/fetch.py | 42 ++++++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/lib/bb/tests/fetch.py b/lib/bb/tests/fetch.py index c72e4c4e3..f8aa0fd07 100644 --- a/lib/bb/tests/fetch.py +++ b/lib/bb/tests/fetch.py @@ -1218,7 +1218,7 @@ class FetcherNetworkTest(FetcherTest): def test_git_submodule_dbus_broker(self): # The following external repositories have show failures in fetch and unpack operations # We want to avoid regressions! - url = "gitsm://github.com/bus1/dbus-broker;protocol=https;rev=fc874afa0992d0c75ec25acb43d344679f0ee7d2;branch=main" + url = "gitsm://git.yoctoproject.org/bbfetchtests-bus1-dbus-broker;protocol=https;rev=fc874afa0992d0c75ec25acb43d344679f0ee7d2;branch=main" fetcher = bb.fetch.Fetch([url], self.d) fetcher.download() # Previous cwd has been deleted @@ -1234,7 +1234,7 @@ class FetcherNetworkTest(FetcherTest): @skipIfNoNetwork() def test_git_submodule_CLI11(self): - url = "gitsm://github.com/CLIUtils/CLI11;protocol=https;rev=bd4dc911847d0cde7a6b41dfa626a85aab213baf;branch=main" + url = "gitsm://git.yoctoproject.org/bbfetchtests-cliutils-cli11;protocol=https;rev=474872a222f61e57b16c2feb774610a4595a729e;branch=main" fetcher = bb.fetch.Fetch([url], self.d) fetcher.download() # Previous cwd has been deleted @@ -1244,17 +1244,16 @@ class FetcherNetworkTest(FetcherTest): repo_path = os.path.join(self.tempdir, 'unpacked', 'git') self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/extern/googletest/config')), msg='Missing submodule config "extern/googletest"') self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/extern/json/config')), msg='Missing submodule config "extern/json"') - self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/extern/sanitizers/config')), msg='Missing submodule config "extern/sanitizers"') @skipIfNoNetwork() def test_git_submodule_update_CLI11(self): """ Prevent regression on update detection not finding missing submodule, or modules without needed commits """ - url = "gitsm://github.com/CLIUtils/CLI11;protocol=https;rev=cf6a99fa69aaefe477cc52e3ef4a7d2d7fa40714;branch=main" + url = "gitsm://git.yoctoproject.org/bbfetchtests-cliutils-cli11;protocol=https;rev=fe0e149a0624db734de37dc827af3328855f51cf;branch=main" fetcher = bb.fetch.Fetch([url], self.d) fetcher.download() # CLI11 that pulls in a newer nlohmann-json - url = "gitsm://github.com/CLIUtils/CLI11;protocol=https;rev=49ac989a9527ee9bb496de9ded7b4872c2e0e5ca;branch=main" + url = "gitsm://git.yoctoproject.org/bbfetchtests-cliutils-cli11;protocol=https;rev=141f9dca45bd5ef42e7b1a06637860b7581370c8;branch=main" fetcher = bb.fetch.Fetch([url], self.d) fetcher.download() # Previous cwd has been deleted @@ -1264,11 +1263,10 @@ class FetcherNetworkTest(FetcherTest): repo_path = os.path.join(self.tempdir, 'unpacked', 'git') self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/extern/googletest/config')), msg='Missing submodule config "extern/googletest"') self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/extern/json/config')), msg='Missing submodule config "extern/json"') - self.assertTrue(os.path.exists(os.path.join(repo_path, '.git/modules/extern/sanitizers/config')), msg='Missing submodule config "extern/sanitizers"') @skipIfNoNetwork() def test_git_submodule_aktualizr(self): - url = "gitsm://github.com/advancedtelematic/aktualizr;branch=master;protocol=https;rev=d00d1a04cc2366d1a5f143b84b9f507f8bd32c44" + url = "gitsm://git.yoctoproject.org/bbfetchtests-advancedtelematic-aktualizr;branch=master;protocol=https;rev=d00d1a04cc2366d1a5f143b84b9f507f8bd32c44" fetcher = bb.fetch.Fetch([url], self.d) fetcher.download() # Previous cwd has been deleted @@ -1313,7 +1311,7 @@ class FetcherNetworkTest(FetcherTest): @skipIfNoNetwork() def test_git_submodule_reference_to_parent(self): - self.recipe_url = "gitsm://github.com/gflags/gflags.git;protocol=https;branch=master" + self.recipe_url = "gitsm://git.yoctoproject.org/bbfetchtests-gflags;protocol=https;branch=master" self.d.setVar("SRCREV", "14e1138441bbbb584160cb1c0a0426ec1bac35f1") with Timeout(60): fetcher = bb.fetch.Fetch([self.recipe_url], self.d) @@ -1478,7 +1476,7 @@ class FetchLatestVersionTest(FetcherTest): test_git_uris = { # version pattern "X.Y.Z" - ("mx-1.0", "git://github.com/clutter-project/mx.git;branch=mx-1.4;protocol=https", "9b1db6b8060bd00b121a692f942404a24ae2960f", "", "") + ("mx-1.0", "git://git.yoctoproject.org/bbfetchtests-clutter-mx;branch=mx-1.4;protocol=https", "9b1db6b8060bd00b121a692f942404a24ae2960f", "", "") : "1.99.4", # version pattern "vX.Y" # mirror of git.infradead.org since network issues interfered with testing @@ -1505,11 +1503,11 @@ class FetchLatestVersionTest(FetcherTest): : "0.4.3", ("build-appliance-image", "git://git.yoctoproject.org/poky;branch=master;protocol=https", "b37dd451a52622d5b570183a81583cc34c2ff555", r"(?P(([0-9][\.|_]?)+[0-9]))", "") : "11.0.0", - ("chkconfig-alternatives-native", "git://github.com/kergoth/chkconfig;branch=sysroot;protocol=https", "cd437ecbd8986c894442f8fce1e0061e20f04dee", r"chkconfig\-(?P((\d+[\.\-_]*)+))", "") + ("chkconfig-alternatives-native", "git://git.yoctoproject.org/bbfetchtests-kergoth-chkconfig;branch=sysroot;protocol=https", "cd437ecbd8986c894442f8fce1e0061e20f04dee", r"chkconfig\-(?P((\d+[\.\-_]*)+))", "") : "1.3.59", - ("remake", "git://github.com/rocky/remake.git;protocol=https;branch=master", "f05508e521987c8494c92d9c2871aec46307d51d", r"(?P(\d+\.(\d+\.)*\d*(\+dbg\d+(\.\d+)*)*))", "") + ("remake", "git://git.yoctoproject.org/bbfetchtests-rocky-remake;protocol=https;branch=master", "f05508e521987c8494c92d9c2871aec46307d51d", r"(?P(\d+\.(\d+\.)*\d*(\+dbg\d+(\.\d+)*)*))", "") : "3.82+dbg0.9", - ("sysdig", "git://github.com/draios/sysdig.git;branch=dev;protocol=https", "4fb6288275f567f63515df0ff0a6518043ecfa9b", r"^(?P\d+(\.\d+)+)", "10.0.0") + ("sysdig", "git://git.yoctoproject.org/bbfetchtests-draios-sysdig;branch=dev;protocol=https", "4fb6288275f567f63515df0ff0a6518043ecfa9b", r"^(?P\d+(\.\d+)+)", "10.0.0") : "0.28.0", } @@ -1582,7 +1580,7 @@ class FetchLatestVersionTest(FetcherTest): test_git_stable_uris = { ("dtc", "git://git.yoctoproject.org/bbfetchtests-dtc.git;branch=master;protocol=https", "65cc4d2748a2c2e6f27f1cf39e07a5dbabd80ebf", "", r"^1\.4\.\d+$") : ("1.4.0", "1.5.0"), - ("systemd", "git://github.com/systemd/systemd.git;protocol=https;branch=stable/v259-stable", "b3d8fc43e9cb531d958c17ef2cd93b374bc14e8a", "", r"^259\.\d+$") + ("systemd", "git://git.yoctoproject.org/bbfetchtests-systemd;protocol=https;branch=stable/v259-stable", "b3d8fc43e9cb531d958c17ef2cd93b374bc14e8a", "", r"^259\.\d+$") : ("259.5", "260") } @@ -3267,11 +3265,11 @@ class NPMTest(FetcherTest): 'resolved': 'https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz', 'integrity': 'sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==', 'dependencies': { - 'cookie': 'git+https://github.com/jshttp/cookie.git#aec1177c7da67e3b3273df96cf476824dbc9ae09' + 'cookie': 'git+https://git.yoctoproject.org/bbfetchtests-jshttp-cookie#aec1177c7da67e3b3273df96cf476824dbc9ae09' } }, 'node_modules/array-flatten/node_modules/content-type/node_modules/cookie': { - 'resolved': 'git+https://github.com/jshttp/cookie.git#aec1177c7da67e3b3273df96cf476824dbc9ae09' + 'resolved': 'git+https://git.yoctoproject.org/bbfetchtests-jshttp-cookie#aec1177c7da67e3b3273df96cf476824dbc9ae09' } } }) @@ -3279,7 +3277,7 @@ class NPMTest(FetcherTest): fetcher.download() self.assertTrue(os.path.exists(os.path.join(self.dldir, 'npm2', 'array-flatten-1.1.1.tgz'))) self.assertTrue(os.path.exists(os.path.join(self.dldir, 'npm2', 'content-type-1.0.4.tgz'))) - self.assertTrue(os.path.exists(os.path.join(self.dldir, 'git2', 'github.com.jshttp.cookie.git'))) + self.assertTrue(os.path.exists(os.path.join(self.dldir, 'git2', 'git.yoctoproject.org.bbfetchtests-jshttp-cookie'))) fetcher.unpack(self.unpackdir) self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'npm-shrinkwrap.json'))) self.assertTrue(os.path.exists(os.path.join(self.unpackdir, 'node_modules', 'array-flatten', 'package.json'))) @@ -3292,13 +3290,13 @@ class NPMTest(FetcherTest): swfile = self.create_shrinkwrap_file({ 'packages': { 'node_modules/cookie': { - 'resolved': 'git+https://github.com/jshttp/cookie.git#aec1177c7da67e3b3273df96cf476824dbc9ae09' + 'resolved': 'git+https://git.yoctoproject.org/bbfetchtests-jshttp-cookie#aec1177c7da67e3b3273df96cf476824dbc9ae09' } } }) fetcher = bb.fetch.Fetch(['npmsw://' + swfile], self.d) fetcher.download() - self.assertTrue(os.path.exists(os.path.join(self.dldir, 'git2', 'github.com.jshttp.cookie.git'))) + self.assertTrue(os.path.exists(os.path.join(self.dldir, 'git2', 'git.yoctoproject.org.bbfetchtests-jshttp-cookie'))) @skipIfNoNetwork() def test_npmsw_dev(self): @@ -4005,20 +4003,20 @@ class GoModGitTest(FetcherTest): @skipIfNoNetwork() def test_gomodgit_url_host_only(self): urls = ['gomodgit://go.opencensus.io;version=v0.24.0;' - 'repo=github.com/census-instrumentation/opencensus-go;' + 'repo=git.yoctoproject.org/bbfetchtests-census-instrumentation-opencensus-go;' 'srcrev=b1a01ee95db0e690d91d7193d037447816fae4c5'] fetcher = bb.fetch2.Fetch(urls, self.d) ud = fetcher.ud[urls[0]] - self.assertEqual(ud.host, 'github.com') - self.assertEqual(ud.path, '/census-instrumentation/opencensus-go') + self.assertEqual(ud.host, 'git.yoctoproject.org') + self.assertEqual(ud.path, '/bbfetchtests-census-instrumentation-opencensus-go') self.assertEqual(ud.name, 'go.opencensus.io@v0.24.0') self.assertEqual(self.d.getVar('SRCREV_go.opencensus.io@v0.24.0'), 'b1a01ee95db0e690d91d7193d037447816fae4c5') fetcher.download() fetcher.unpack(self.unpackdir) vcsdir = os.path.join(self.unpackdir, 'pkg/mod/cache/vcs') - self.assertTrue(os.path.exists(os.path.join(vcsdir, 'aae3ac7b2122ed3345654e6327855e9682f4a5350d63e93dbcfc51c4419df0e1'))) + self.assertTrue(os.path.exists(os.path.join(vcsdir, '24e4a8be150f9e7343b72e40000115a175fb2f19d015542f54abb6ccdbd52f14'))) downloaddir = os.path.join(self.unpackdir, 'pkg/mod/cache/download') self.assertTrue(os.path.exists(os.path.join(downloaddir, 'go.opencensus.io/@v/v0.24.0.zip'))) self.assertTrue(os.path.exists(os.path.join(downloaddir, 'go.opencensus.io/@v/v0.24.0.mod'))) From patchwork Thu Sep 17 22:17:05 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 98650 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3E76C982D0 for ; Thu, 17 Sep 2026 22:17:20 +0000 (UTC) Received: from mail-wm2-f12.google.com (mail-wm2-f12.google.com [74.125.225.140]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1879.1789683436886235925 for ; Thu, 17 Sep 2026 15:17:17 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google header.b=JBxIXGO2; spf=pass (domain: smile.fr, ip: 74.125.225.140, mailfrom: yoann.congal@smile.fr) Received: by mail-wm2-f12.google.com with SMTP id 5b1f17b1804b1-49ccff31419so954525e9.3 for ; Thu, 17 Sep 2026 15:17:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google; t=1789683435; x=1790288235; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=+gYPXz8tCVNu5jnv06gWZD30fDoI0MW4XpSVWD4C22Y=; b=JBxIXGO2Jm4Aq2bIAPJMgw1aM4YSzCRvwpa5MoxNyvZX/3tucAPGsPnhedKxw36YN+ jI4pzTNsBSRsDs4WuSQuyl0GB7SI0hSudpsQTHVq7HwqunFTzrKg1Slc1Y0K4vaF3Mgo yLB7xqpkulbs/PGnh96mOP8qFqZ4836o/g7u0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789683435; x=1790288235; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=+gYPXz8tCVNu5jnv06gWZD30fDoI0MW4XpSVWD4C22Y=; b=nQcYtUjdeaiBAyo9mZdk4FCPTZQpfrzZRKgs469rggsL4WIgPKG/tqOQFsiHdjG/Lt svInWGUcEhU61qAWo+xfIuqpZr9gIkCnFppBcTkjB5uYDVtu8F7u2gSn79VIbSx8PX5+ hJGXTQ87SpFOQ2LJX/wh1J0M6olWdGbgw9igtREFsqCfF5ClQhCMmqSgI0bS0MWp0Uld 2jcE6016x1PHtuj2g26WudqpjF3Apy8AR3QPZz6YqOOgiLbvbZAoEsAai5NonyUVjVvJ AUxvZCDtP5bByvLTB6RRjVAs7uQnJJ5ZtshL3QgPpvUAMD18Jvw2hUFjr1MAC7R8MyXj laRQ== X-Gm-Message-State: AFuF++lvBkd+I2pZ8DekYa8tM/NON5/WeTdFycJ7LmmuUJ8WM3vzo1M/ LqG0bK/PnPJR4q/EpAhLrGowb3eYMDzMZV0yx/GZGynpK7L09YzIGSoKEI2KniNmZT5x3KIHYAo 4Y/xKvUM= X-Gm-Gg: AYBFou37cadmnEPLYxZoCcjj26GMkjUkSaD3QPyYi9HnXf7fD0kihvDu0UrxmmbRz1d ARb2fouAsStRtXZ5q52SbuH3UXmpEpOyrLMegKI2Q/CXqCStTOz1avoD+J2yOVO5y7/qtpD91xJ pr0OF/rX5waGjR9cdEzh60sMJMEOl4q4CVsyNaVloHHuSi9/GWzTYhyBKmDJEnW7+X0TiYX3d17 iD/oGA8bQqFmgWJvtU5EAJaKHXG5dA0rJZAMCEFU/bBp+ZfqkwOVlq10CG4hAtf+CD063srDhv/ UDett/xFnWUMJmTZKiDFQqtZB6onY9vkitC5c8McnTEOmeaYnDzBPk9yyeIiyg7nuY8dKkql226 wODCiipXvakMVMkNtRz00kdtrSEPz1HAfSet0F7T2n9JIV8NfqJfE9SICknm7QI3Jz/k084HVtN eH5QF8FThz3SJf/aOlWYa21rhXWToy4Ryb2hvEQuKrTDz0OfmEN/gi+bSS38fQeZx+pUp9o+Ojg gzIoMJJT0ia9j67uXCiYcgLMyjaOvmxBs0Qek3WaM8wW+GjNJcN5xnhyCNtddNhJo/XqPwNZK0= X-Received: by 2002:a05:600c:34cc:b0:49e:6c27:d093 with SMTP id 5b1f17b1804b1-49fc56dbafdmr3457045e9.15.1789683435133; Thu, 17 Sep 2026 15:17:15 -0700 (PDT) Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fbd247809sm185737725e9.11.2026.09.17.15.17.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2026 15:17:14 -0700 (PDT) From: Yoann Congal To: bitbake-devel@lists.openembedded.org Subject: [bitbake][wrynose][2.18][PATCH 7/7] tests/fetch: Drop ftp checkstatus test Date: Fri, 18 Sep 2026 00:17:05 +0200 Message-ID: <84a8d046593840df460c1312365031c817eb8918.1789683244.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 17 Sep 2026 22:17:20 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20230 From: Richard Purdie This single url takes 100s in each of the two tests it is used in, compared to the fraction of a second for the other urls. Nobody should really be using ftp any more anyway, drop this test url. Signed-off-by: Richard Purdie (cherry picked from commit a181827fa0fe6738441b40b5206cc2cadb5f7dce) Signed-off-by: Yoann Congal --- lib/bb/tests/fetch.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/bb/tests/fetch.py b/lib/bb/tests/fetch.py index f8aa0fd07..792ad1489 100644 --- a/lib/bb/tests/fetch.py +++ b/lib/bb/tests/fetch.py @@ -1716,7 +1716,6 @@ class FetchCheckStatusTest(FetcherTest): "https://docs.yoctoproject.org", "https://downloads.yoctoproject.org/releases/opkg/opkg-0.1.7.tar.gz", "https://downloads.yoctoproject.org/releases/opkg/opkg-0.3.0.tar.gz", - "ftp://sourceware.org/pub/libffi/libffi-1.20.tar.gz", ] def _start_checkstatus_server(self):