From patchwork Tue Nov 24 17:13:47 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Quaresma X-Patchwork-Id: 105428 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.22997.1795540444854774833 for ; Tue, 24 Nov 2026 09:14:04 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=k24NX1bC; dkim=pass header.i=@oss.qualcomm.com header.s=google header.b=I+pa4aRM; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: oss.qualcomm.com, ip: 205.220.168.131, mailfrom: jose.quaresma@oss.qualcomm.com) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AOFKv3L2569582 for ; Tue, 24 Nov 2026 17:14:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=qtNS0tDbEQl FakWdzDdCfGFjw0ed4G5hkRNoarp8OdQ=; b=k24NX1bCZQ4QfzD4Y/sRZPRJayA ZJw39Yfg67kt79cPHmzKpALU1cs5CMaQgFNGXjVeJYv8QfzU/UelkzezBDcN1KYm 7YCsJMI2/PsRoi9riMkRCNaNKqstI9bM7o0kbzy+5hli6f1o+EZ5EzYvbsjIzWNF Mq+0TP8i8wUWx6u3Wq9MXv5eT4c7azGcISiDTf6wfKINAeEKoyn7fg4/MZy57R0q rVIFfy2XTOQD3hMgGgR82stBWwIYnbkLiR86yce3O6NLkN5dD80BQYs6P8SMXHol GMFem+uKHpTBn8wFRMzI5rWYFFHhvdIq3R2lONn3aHE9S1d52+i37jPkLMQ== Received: from mail-yw1-f200.google.com (mail-yw1-f200.google.com [209.85.128.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j4w6svk8g-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 24 Nov 2026 17:14:04 +0000 (GMT) Received: by mail-yw1-f200.google.com with SMTP id 00721157ae682-8b4fc2d32caso68974267b3.2 for ; Tue, 24 Nov 2026 09:14:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795540443; x=1796145243; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=qtNS0tDbEQlFakWdzDdCfGFjw0ed4G5hkRNoarp8OdQ=; b=I+pa4aRMQ9HUR1CQgGlVPmDahZAQZWfxJGEV9c3NT4lS486BnaIjMBhh9KW4DtkejY M8sqLphCf+qvwhgnqpNdVs0Y1KQ+7McA2ztbUGhCygX/HE/cTHnpTDaF5odHJyStVNl4 gugIThiCU58fg7DAdULBMATOrxA0hW6gjxHCO35XSYGnOq9qiwUS6C1Z+4q3F3dwAAL2 5t3aEPHAPE1PnnpFRLvR5QW11CUELZY8jfhmVzEcyvzCV15KPi8kMgGnPf8rMFDzUj1r MB3JTP+jX/BFRPgj/f/ou4C/okzAnStZBUgrkM8YLAdBhw2pYWUYH3sMkI+62nDtCH/+ Py6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795540443; x=1796145243; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=qtNS0tDbEQlFakWdzDdCfGFjw0ed4G5hkRNoarp8OdQ=; b=whJJcrDi4w9AJadVmhdTN//M01N3G0VHVjJ+J6gcnuIqRCA+Ar/YVXSf/i9yVKdxqt U9bDyRkKLeJPIXt11riQ+bCiGjiNHP9p7X1ea5b2hADrIlxJySW6g9gSNQIEd6voFGBo YKtL7EA5I7FB9+8hBvr9KY9x6yi2LUrddoClgE+SU0kr4Rf4/jCINSZ8HcNgW4EXyn36 XKewBDx1yrkAMVTavZ0pBoid48zmE0J67LAvymh9aIAwxhX8SiAZHHhqdMZWPxSjD1nc uQHEv2N43Z4858v7gAgM59lfYIUXUK/2rSGD5JQsODjdFf9fQt5wo9Zje59ASdDcuzX4 o+9g== X-Gm-Message-State: APuU4Z+gks2KZPRv9iLhGz9fbRVyYvJJkTbfrZPfsOf4rYx2VTFSQY21 9840sLgfbwrUzy4wgxI+ljPmSntpioZX8vlfQhvgNMd6i9sgtsrbW9+l/AKFOze7pc/2EVz4f3x 7n6TW1W9Mp3DzvbZN/cqrLk3i+4hKPKGbAcrtKr4fmZFYbemW8ckwSJ1nQjke0AXcATRZifLwr8 trcskaRjrz62FA1ai33+YT X-Gm-Gg: AZFdTZcq0WL5oTDtPxGPdK5lGXGdjZVjYxhb/q21QLGauCIJ0V/ScNSs3HjHDofNRN+ tI9MOHIKJ0P+PDZg+DTv62xZxcH+5yRIqFt2DONKzz/U67Pyx4ce+wzJgdy9CWSmGHIKkoaHSiA o/AT5j8qsZ8y0fiQEL3rXJQyQn5AtqdRflxwn5cRAbXp0M4tVjNciYsVj8w/1xBYkGorLDGo0jf Tjiy65KKhBA5No8x69WmAA9fDllRU/CnuvX6fnD/tp/0WrYR8kb95PRKOTWMV3Ptu6eTqoSUZSq Hz7SKjzkVUSTDBLi//bHu7ngLSSA7t0G7QM+97M3ZpnHTCQlsbNiBBKpR1koD2cZSR8cc2VZl5b 0IX4meDQ4Hl9SgF9ZDHIMVocdR6tMww3rMRqjb5TUV1l1paol0Snl6IzBLRx8NDA= X-Received: by 2002:a05:690c:79a:b0:8b4:c989:d936 with SMTP id 00721157ae682-8b5204c4342mr50637287b3.63.1795540443229; Tue, 24 Nov 2026 09:14:03 -0800 (PST) X-Received: by 2002:a05:690c:79a:b0:8b4:c989:d936 with SMTP id 00721157ae682-8b5204c4342mr50637207b3.63.1795540442632; Tue, 24 Nov 2026 09:14:02 -0800 (PST) Received: from toster.lan ([185.228.162.222]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4b33a596f9csm9632479f8f.12.2026.11.24.09.14.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 09:14:01 -0800 (PST) From: Jose Quaresma To: openembedded-core@lists.openembedded.org Cc: Richard Purdie , Jose Quaresma Subject: [RFC wrynose][PATCH 1/5] checklayer: Improve debug output Date: Tue, 24 Nov 2026 17:13:47 +0000 Message-ID: <20261124171356.951415-2-jose.quaresma@oss.qualcomm.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261124171356.951415-1-jose.quaresma@oss.qualcomm.com> References: <20261124171356.951415-1-jose.quaresma@oss.qualcomm.com> MIME-Version: 1.0 X-Proofpoint-GUID: LkzNNd7XL8kI908BEY2SZRUehyr0TrAX X-Proofpoint-Spam-Info: AW1haW4tMjYxMTI0MDA2NyBTYWx0ZWRfXz10SPh+yhG3S s48eefKYDUhULeG7tJ1b2/5s8noHGNpoFghxACCDOKPdSyYNQjuCgQkj3+zCaLQZNvxEysimSpy g4XUvrv0+3HS+es+BAg5RiapoV1Gm18= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTI0MDA2NyBTYWx0ZWRfX1GHs6kQ2fwyQ ZzsWzq6tFOqxm5UsQ5hSemYJgHkOag2ERNIiepY/z4+7yzP0Ozk7R/xlK0u2qXeX0jHY+Ud14MX Ig2So0WeyvJ/zvDX4OM67D7diHC5HL6vdvSJ5VGp5LSoDEVZwGbGWDvEG/3IUsqd9eb3Owv0D+0 Nsyr2xGop/jXreIruolC+NPy8D8TSO95C/DLFi5qPNfe3WiWTk62p6CmtVHACc6EemmVnCBQjkI nhQXOoJC6oQ3AAMGq6s3v+42tVUxM9FJrVrUYYumSNVuZUy6g/QZ6BAeAXt7HrsJDupVc+qO4cS qW5QbYcGqJx9MixPCN9uA22cdzRW43qDuVx4WVOvG6xCIUa7yLvQYhchhs27LSN1Wqp7vYJ+rF7 L+AGhe4ZqNi8GxZ/E7DgSyXsTNEU5tgnHGTlC7vhAeMJUDRf8nbqbL2lcYaJztEUBZsefLq54qo vtM4nnHvydWuFLpTbwg== X-Proofpoint-ORIG-GUID: LkzNNd7XL8kI908BEY2SZRUehyr0TrAX X-Authority-Analysis: v=2.4 cv=V8DoQuni c=1 sm=1 tr=0 ts=6b05c5dc cx=c_pps a=NMvoxGxYzVyQPkMeJjVPKg==:117 a=qOKIifoFPMYe9XV0Ag7/Dg==:17 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=ag1SF4gXAAAA:8 a=EUspDBNiAAAA:8 a=EPGeQEHa4kSpGNn_6JcA:9 a=kLokIza1BN8a-hAJ3hfR:22 a=Yupwre4RP9_Eg_Bd0iYG:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-24_04,2026-11-23_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 bulkscore=0 spamscore=0 impostorscore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 phishscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611240067 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 17:14:11 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251045 From: Richard Purdie When tasks don't match, the printdiff output alone can be misleading about which tasks didn't match. Print the mismatches explicitly to aid debugging. Signed-off-by: Richard Purdie (cherry picked from commit a2e37fab7c7f8aac4a5b1bcfb696a3fe263326bc) Signed-off-by: Jose Quaresma --- scripts/lib/checklayer/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/lib/checklayer/__init__.py b/scripts/lib/checklayer/__init__.py index 274dc7578f..aa19a8e2ae 100644 --- a/scripts/lib/checklayer/__init__.py +++ b/scripts/lib/checklayer/__init__.py @@ -422,6 +422,9 @@ def compare_signatures(old_sigs, curr_sigs): if not sig_diff: return None + for task in sig_diff: + print("%s changed %s -> %s" % (task, sig_diff[task][0], sig_diff[task][1])) + # Beware, depgraph uses task=. whereas get_signatures() # uses :. Need to convert sometimes. The output follows # the convention from get_signatures() because that seems closer to From patchwork Tue Nov 24 17:13:48 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Quaresma X-Patchwork-Id: 105429 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.23140.1795540446776554461 for ; Tue, 24 Nov 2026 09:14:06 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=UEwPEaOE; dkim=pass header.i=@oss.qualcomm.com header.s=google header.b=bIunauEC; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: oss.qualcomm.com, ip: 205.220.168.131, mailfrom: jose.quaresma@oss.qualcomm.com) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AOFL8hU4124246 for ; Tue, 24 Nov 2026 17:14:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=JIBP6xSJyru 9yLEYE5zEQbw4y2B1KzVJw/c2+9KbRT8=; b=UEwPEaOEcp4M5/az5GEkUiwsX2p tJ9SyktdPtB4ItOrLqSh+QdAhOgQPmsiR2nj2oiqQvdR6CzOXYVgRk68/O6vhwT7 FPmgJo/mdq11iJevxDQorBrDPqUHCUE5hCP84O4rJyzedqLkOIQCQGVkkYUZXe7V rkyGpbmjJIpMUo6AvCvy/1GKs3nAQ3aqK5Ap0BGohH0Urzpwr/5VYENIKhpGcgUQ z0DQYYvcchAZpD72F1kTPzj+36HtRFk4RiGAlPnjfmctgPQRU6WlZpesKjCKKd8r HnytVcSUD+alzK0cnPPdmhDD5OEB+wR/kyllxq4RnbEs8E9+/YKyuX//iyg== Received: from mail-yw1-f198.google.com (mail-yw1-f198.google.com [209.85.128.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j54rhay8e-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 24 Nov 2026 17:14:06 +0000 (GMT) Received: by mail-yw1-f198.google.com with SMTP id 00721157ae682-836caf085e0so64560687b3.1 for ; Tue, 24 Nov 2026 09:14:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795540445; x=1796145245; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=JIBP6xSJyru9yLEYE5zEQbw4y2B1KzVJw/c2+9KbRT8=; b=bIunauECmQPICPhIf0wpKbPwkzXL0YWvV8TSFZLXadMd4UTWkFYPsUuO7zfNcUKNcM nQwFoR+1/FpRqX/RB5JvTnxOMZKpAL3++xToHLQJU0tj+0+zITqRpDHimrzl8ZNr7YNF b52xWu/K809RI9hF0grOXpheNRLVIaBlUjCyAvkSz6gM8fsNJaNJmUrMVI8F6dCkKabo VZmKrkF5sWTfZAnkXAdxPrj1VXt5ii7G1ONdO1v1yyGSrzB3B8VcsUHRQJVGFXKJhgNR WHDz8jyXI7RshAMYrW/gY/6XBng3xOgJjx4vaVb34h1LpIxT1YVcSXU/rUCOespIQQ/Q GwYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795540445; x=1796145245; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=JIBP6xSJyru9yLEYE5zEQbw4y2B1KzVJw/c2+9KbRT8=; b=MFR9eeghD7IyhupiOqSHRW6vlwhW0cx51lg1MtKwSjdTlCuPIw4S+xCJeReoW5TeTd VB2RSBQiYm1Br/1CkuGUIO9iYrEg3ruJhyYsKx2R0CbuVBv6EuqJf5a0A9I9boI8MnpQ jhijDkPWQ7f6GB8qTB+HafMC9v28tX889r5QozoLv1eJSwIUqBG5vw4VWNwuFq1mhMXD ArJ/xKJeeLzrn9+L4bjmfRFuuVXjgBnmDPQ6hoabp96jfiFMuBmC/Y7kvUfRvR47u16u gh1A6sJW1Yg4cVRxuH+DSQyx05Z1ru9xTkWSXLG6I4tnyQ+lAf0WgzKMVndiqsmaqvyy D+Vg== X-Gm-Message-State: APuU4Z9KGH2HB/M8ZOIVVECSHjYyx8v9EebKC1xI+kW6B3XNOWI9Lacd 7v6K8TdimB9IzD99/wKEmrTDMG+G7ayselZV0f1OA5Po//QvCX5Q+GCWbsaIU6k8r7dXngDHXkp 9/WFK1rX2Gi/pNWqYHHKXfhyjWH/VsR/AXqR2NE8Bh56EpT0vDAOJCejgTg12jtUUURxVEV+onL W8qrtqaX5OedkUBMZnp8ct X-Gm-Gg: AZFdTZfZwJNUtBwTCsN4pFsg6xWylY5ptNGZNBR9bm+rYruWoS90rLiJP+XQ+nEuPtT YnDHVJ98zL98jA1BYutZImOPjvrVBTpN9s2upqD8KIn1ZnLi4BQvGZwtCJxPHW6NdHgsFbCyP8+ UaYaR4eeiOiVpS1Lol3AH3rlSj4Ty9Jm7VhOKnX3nmZLVQr6skzyPMJQMGaBLy3ygYI+V3POOPV rJevOeVE2AmvCM3O32OvoX3ETBnL/qg0ylDSDM5ocyJj0o0rMeo2asL3TjriOOzOHn1Y8koNM5w 7D8YfTu8Bm+oeM9UpaSTLfR7iNgt3Y27rEjeB6wSPxYsJ7xZP243FxZU2ObE41heOnYd+YQt9Cy mG/42waLAfSqVWGhrF7iiztzvKmMHp79PTPSxACgXS6YTPXQGoKNglbzcaXXgppc= X-Received: by 2002:a05:690c:e18:b0:8b4:fc2d:2fa2 with SMTP id 00721157ae682-8b5204db17bmr63843847b3.38.1795540445204; Tue, 24 Nov 2026 09:14:05 -0800 (PST) X-Received: by 2002:a05:690c:e18:b0:8b4:fc2d:2fa2 with SMTP id 00721157ae682-8b5204db17bmr63843637b3.38.1795540444458; Tue, 24 Nov 2026 09:14:04 -0800 (PST) Received: from toster.lan ([185.228.162.222]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4b33a596f9csm9632479f8f.12.2026.11.24.09.14.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 09:14:03 -0800 (PST) From: Jose Quaresma To: openembedded-core@lists.openembedded.org Cc: Vinicius Pedrosa , Mathieu Dubois-Briand , Richard Purdie , Jose Quaresma Subject: [RFC wrynose][PATCH 2/5] yocto-check-layer: don't skip entries when dropping invalid layers Date: Tue, 24 Nov 2026 17:13:48 +0000 Message-ID: <20261124171356.951415-3-jose.quaresma@oss.qualcomm.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261124171356.951415-1-jose.quaresma@oss.qualcomm.com> References: <20261124171356.951415-1-jose.quaresma@oss.qualcomm.com> MIME-Version: 1.0 X-Authority-Analysis: v=2.4 cv=BKkmP1QG c=1 sm=1 tr=0 ts=6b05c5de cx=c_pps a=g1v0Z557R90hA0UpD/5Yag==:117 a=qOKIifoFPMYe9XV0Ag7/Dg==:17 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=pGLkceISAAAA:8 a=P-IC7800AAAA:8 a=ag1SF4gXAAAA:8 a=EUspDBNiAAAA:8 a=2V6DY6BgAAAA:8 a=OreDpC4mTmnKIuOQwSkA:9 a=MFSWADHSvvjO3QEy5MdX:22 a=d3PnA9EDa4IxuAV0gXij:22 a=Yupwre4RP9_Eg_Bd0iYG:22 a=ldqKKs2zR4t-S6fqr-1n:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTI0MDA2NyBTYWx0ZWRfXzAHFgCfMZ7e2 UZNo5EHLexGebFx55vyEW6XsWm4ssx20myGs09l6LCV+y0SZthxOKBntceLw0eYI2ZIVCGv257B Zwi5oGW7UdKmtH9O9UZe9RCvN9899Do= X-Proofpoint-GUID: alrSNedc5lQLE8ZqnULHz5vfGr08v_yZ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTI0MDA2NyBTYWx0ZWRfX7GaPJd6aiOZ9 odyPXm0cNzUv8Xj/+0Rn7OH+XPDw3kQZ/Mbexc76c19hJJ9vXVRun+UTYWd0wHQ2jA+OoH5iZb8 v8vr96/1LDuVkAgQEQ3bwBANRr/rk8NGsM68GmFZg3NpaCMQhjpCl1IUmaBIvn5lq9BdbzrS7f+ FrZUVugHlMkRsjjt00F6A+qy/FPA4t1+To0LKf3o2HI8mKb7ILKkG6Yl31JwciGK4dgBMd7momK wq4sle98k8DDKNOnUWx8/LsN3/H4nQ3/FOr794LpgpgdhCAgECNIX871Pjypg4oC9BRFa+i6lX5 yodIYPMeyg8+kCpbY73XmYcS3ubGtLTXFflrkR9YOhtOVvE6oeQWLsQlJRjBZPjG0lQeVv6D5kS yz7KtpRXSXlbvjaXMJ7LP5e2iybltP1cIfb+KKmMWIItn49D7DkyyM4XnQahEBWK0m57IxEwTkI 3g2NBnnRxdGROyex10g== X-Proofpoint-ORIG-GUID: alrSNedc5lQLE8ZqnULHz5vfGr08v_yZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-24_04,2026-11-23_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 clxscore=1015 bulkscore=0 adultscore=0 phishscore=0 spamscore=0 lowpriorityscore=0 impostorscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611240067 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 17:14:11 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251046 From: Vinicius Pedrosa The "Detected layers" loop removes invalid entries from the list it's iterating over. When two invalid layers are adjacent, removing the first skips the second, leaving it in the list. A skipped entry without conf/layer.conf makes the dependency pass fail with KeyError: 'collections'. A skipped BSP+DISTRO entry isn't reported. If no other layer is left to test, the script exits 0. Move the filtering into validate_layers(), which builds a new list containing only valid layers. Keep validation at its original position and update dep_layers when it previously shared the same list, without changing the existing dependency handling. Signed-off-by: Vinicius Pedrosa Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (cherry picked from commit 6050ce9f129ad20ad395c35380855bafb79c530f) Signed-off-by: Jose Quaresma --- scripts/yocto-check-layer | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/scripts/yocto-check-layer b/scripts/yocto-check-layer index 8c8b4dbcad..ca4ada0f35 100755 --- a/scripts/yocto-check-layer +++ b/scripts/yocto-check-layer @@ -48,6 +48,22 @@ def dump_layer_debug(layer): if collections: logger.debug("%s collections: %s" % (layer["name"], ", ".join(collections))) +def validate_layers(layers): + valid_layers = [] + for layer in layers: + if layer['type'] == LayerType.ERROR_BSP_DISTRO: + logger.error("%s: Can't be DISTRO and BSP type at the same time."\ + " Both conf/distro and conf/machine folders were found."\ + % layer['name']) + elif layer['type'] == LayerType.ERROR_NO_LAYER_CONF: + logger.info("%s: Doesn't have conf/layer.conf file, so ignoring"\ + % layer['name']) + else: + logger.info("%s: %s, %s" % (layer['name'], layer['type'], + layer['path'])) + valid_layers.append(layer) + return valid_layers + def main(): parser = argparse.ArgumentParser( description="Yocto Project layer checking tool", @@ -125,19 +141,10 @@ def main(): return 1 logger.info("Detected layers:") - for layer in layers: - if layer['type'] == LayerType.ERROR_BSP_DISTRO: - logger.error("%s: Can't be DISTRO and BSP type at the same time."\ - " Both conf/distro and conf/machine folders were found."\ - % layer['name']) - layers.remove(layer) - elif layer['type'] == LayerType.ERROR_NO_LAYER_CONF: - logger.info("%s: Doesn't have conf/layer.conf file, so ignoring"\ - % layer['name']) - layers.remove(layer) - else: - logger.info("%s: %s, %s" % (layer['name'], layer['type'], - layer['path'])) + layers = validate_layers(layers) + # Keep dep_layers in sync when it previously shared the layers list. + if not args.dependency: + dep_layers = layers if not layers: return 1 From patchwork Tue Nov 24 17:13:49 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Quaresma X-Patchwork-Id: 105427 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.23040.1795540448125979991 for ; Tue, 24 Nov 2026 09:14:08 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=L36RjBP/; dkim=pass header.i=@oss.qualcomm.com header.s=google header.b=IEPQ0z/P; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: oss.qualcomm.com, ip: 205.220.168.131, mailfrom: jose.quaresma@oss.qualcomm.com) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AOFKxpV4123956 for ; Tue, 24 Nov 2026 17:14:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=t4MnyV/+aKV JAZHWuV/WpArtbfRp4Qy0TvmVpnCrqWM=; b=L36RjBP/a/BDLefxuHUAe+lEHfM R6Q8OcBG1QZl4/UxwaVK9qqUL5eVGemzjcYLI+xX64cm0nokC2Qx4zUGdIjrbVjE tH6jGoSOgTpyBl7TdZiX2DkiAGOEiGsxg+qresFpVebM7oMytghSZJIjWTanPKCd Egs4rfFTsu9d0S3Xj6YmGx1WF6rUovYEjlYjws8ubY6ftzsqVHUoSqe9Y3JvZ7V4 nS+k3a5nTQ+0cInjX5ZLkADWKD6H7TMPbUMMhXm5tElOG/iLQH2vEkvVqqwT5oaU abS1cuYLkHCrPaqVYWt5smjqs6lcAZdMMLK7T+9eyzlLO3wfOU7VkY7dNug== Received: from mail-yw1-f199.google.com (mail-yw1-f199.google.com [209.85.128.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j54rhay8m-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 24 Nov 2026 17:14:07 +0000 (GMT) Received: by mail-yw1-f199.google.com with SMTP id 00721157ae682-8b35b88aa94so59990627b3.3 for ; Tue, 24 Nov 2026 09:14:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795540447; x=1796145247; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=t4MnyV/+aKVJAZHWuV/WpArtbfRp4Qy0TvmVpnCrqWM=; b=IEPQ0z/PGopQkotI8mwlGQqgqAIGsJDwERn8EzIANY7XTYk5qqVSZ9zO+yfbpv63i0 OL1M+4ppFINHYNdHUKjF2WjHgx7RYS8O3wlyBC50G2ltC/795c+1ACxfnDN7n3Djtk19 Zfmc/rkuYT0gTi8xW0VsOqnrf+efZaJQ2+9SwQLv0t+g0i5YcDBbkrTYYWFqOsVJix20 ejiLgtSqWTcTJFs8mtrfnZhgLnimM68MUyXbSKEekB5L55giDTJFjvkUHKus0uDIuNbq dMAiHNGBPOY+34yejhV3nG1SsoWL7+96jWqY0z3ozxmdyxmAeOq4MJS2wdsUMs4U8hjb oNpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795540447; x=1796145247; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=t4MnyV/+aKVJAZHWuV/WpArtbfRp4Qy0TvmVpnCrqWM=; b=TBXGDfJIRQQX9C7BfdXljoktnbVj0Bv7iEyjUA6HdwIHTLOWjOk+xflN5Pvr0Uplz/ QoIl/PYTeL7zfBPIyq0B6hOXZu3yWBJXa67A3q7SHvjwqIJMA7LWYDIUa9N+FG9B4XkT LqCRPEIuKJrLqC+kghjFyaAwiwWlRo08+AJcXZ3j6E/L18fsHP/yW2fEj8q7eQwLqMm0 J9qvIR7I3X4W18sZXsFQ+1JelpSIWS/ChtnKcnGdBeateGv7naMzua6xqMRdIz5PiX0l DzKeNuvOMwoLwoLqrkzgCKizXEkK9vwqND6JMX0BCV4mUMTpArjlUnB+zih5YoFjp6AU NIgA== X-Gm-Message-State: APuU4Z/GqkIOPWRqK+QpEXURbPgWr39bULL2xxNGSDmvlDeIo/lQxZFo 1uc0rYxG3f+YUxjmv5vD0q7eTMb719mwME2H7b8iC1hKujPu/Jlw5eAO9mcNCELrx0DWBcV0IJP op/J9aKwnZ28Sa55vYXzQNVyBlnl5UfLnSUFvGLl4u3YjTrBHHin+xCmjs9FBK8z61mTYzXdmdF WpPnkD+L8FpywjlCRQ4Ilt X-Gm-Gg: AZFdTZeznPlqpZwb8gYO3nWoj1ni7Sywq4nyLBhD/QfDe2rkClswSTWkokc6xT+Ukcw d+rZjysXFZQDNzlXxaCe7cPMOhyaFwrMgrxLxMmc3QRduZkWX1QSBDAyWP8xCbUjdOvGVAB202F F1PpIXY6IjzHzVyM8Sn3INYiJC0MlHAVAL/RlreELxCieiQyoLUVmRn/nfAtH6BwcRpbcq4pL9d 3qlRxhcYBKNzza55RTMKLu/EYbC1lVIM1eOeyXSV18dnCuMjhwfggZ0jDyVQCd9EWgrlmeofEHC DOCJM+eN9qI08q2Lg/D16vz5XZTCC/CUUv00PtW2MqySFvLRWCW9lzWzXIBVi73tWNIFkPJEjE0 HlkQn4jw7Mi9lU/390q2VY8pSSBooLzOkfWULmDEsqs8VIV+awGBuaTAVK2gUTNQ= X-Received: by 2002:a05:690c:e3e7:b0:8b4:c1ef:94be with SMTP id 00721157ae682-8b520435b67mr54679937b3.19.1795540446757; Tue, 24 Nov 2026 09:14:06 -0800 (PST) X-Received: by 2002:a05:690c:e3e7:b0:8b4:c1ef:94be with SMTP id 00721157ae682-8b520435b67mr54679807b3.19.1795540446165; Tue, 24 Nov 2026 09:14:06 -0800 (PST) Received: from toster.lan ([185.228.162.222]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4b33a596f9csm9632479f8f.12.2026.11.24.09.14.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 09:14:05 -0800 (PST) From: Jose Quaresma To: openembedded-core@lists.openembedded.org Cc: Otavio Salvador , Luciano Dittgen , Richard Purdie , Jose Quaresma Subject: [RFC wrynose][PATCH 3/5] yocto-check-layer: Add --run-tests to select the tests to run Date: Tue, 24 Nov 2026 17:13:49 +0000 Message-ID: <20261124171356.951415-4-jose.quaresma@oss.qualcomm.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261124171356.951415-1-jose.quaresma@oss.qualcomm.com> References: <20261124171356.951415-1-jose.quaresma@oss.qualcomm.com> MIME-Version: 1.0 X-Authority-Analysis: v=2.4 cv=BKkmP1QG c=1 sm=1 tr=0 ts=6b05c5df cx=c_pps a=72HoHk1woDtn7btP4rdmlg==:117 a=qOKIifoFPMYe9XV0Ag7/Dg==:17 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=alK4_DS-AAAA:8 a=ag1SF4gXAAAA:8 a=EUspDBNiAAAA:8 a=2V6DY6BgAAAA:8 a=sIxgEDDCWNsi49mcXwoA:9 a=kA6IBgd4cpdPkAWqgNAz:22 a=rOCknGvZllDBBwZ8Yz5I:22 a=Yupwre4RP9_Eg_Bd0iYG:22 a=ldqKKs2zR4t-S6fqr-1n:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTI0MDA2NyBTYWx0ZWRfX1LBykUCLp67/ gUIXVDaCVFrbPyIr+A6dkK67YaX6jyI0FQfq+iww1bLkmruK4TXuPPgR81XNllhLwXz9vGj9Cgb pkPWBXHBeMRPO8/fvOdsF2Ouqh8Vnw8= X-Proofpoint-GUID: UoduvBq4JNqNdfavVc3SZ5OhQhbrzZmG X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTI0MDA2NyBTYWx0ZWRfX/7xPdw9pIzlL SvWD1zaQT4/D79oxzIoSedITctXivgtBg6sjpcHALjJ7D/z+9RU/Njqp4Ab1AqHqOI5H6viwSlJ o/bTDYhSVpH5mUp+JUDZ9cACu2me6+76gqteHU3iLCfK6xNNmO/Ad7gJ2E2vC2VwRg8BnWUJZFI LnhIjB6EP38B1/1fcwUw0/RKKzKF0d9TIC0OH2xjzO/7wptVYOr2v/4VDAGPPbNrx7fcda26CiV efGn/UgqhNMpEEXcEp1SaESuKONleccZt75tMtP51IdJBeWzv832g+qOd6Usd4kja+UA9WGku88 ewz1mHIArIzWfhu0eTkmupkFuwVblCMJwV7Wmii+pmcdBs6wk7oykPt1uI/otz2g74l/equ3gVY BPevTEggZzWjyNYASXzPnI6Nq6GFSRllK994RsD4oyXSkCaIRVROQ1hS1gIpkKGZFA6CnmlfV8e eXfhT/mUJDmykUygIpQ== X-Proofpoint-ORIG-GUID: UoduvBq4JNqNdfavVc3SZ5OhQhbrzZmG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-24_04,2026-11-23_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 clxscore=1015 bulkscore=0 adultscore=0 phishscore=0 spamscore=0 lowpriorityscore=0 impostorscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611240067 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 17:14:11 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251047 From: Otavio Salvador The common and distro tests ignore --machines, so a BSP layer checked in several runs, one per group of machines, repeats them in each. Add --run-tests, taking [.[.]] as oe-test does, so the common tests can run once and only the BSP ones in the others. A name matching no test is an error rather than a run that checked nothing. Tested on meta-freescale with "--run-tests common distro" and "--run-tests bsp --machines imx8mm-ddr4-evk imx8mn-ddr4-evk". Suggested-by: Luciano Dittgen AI-Generated: Uses Claude Code (Claude Opus 5.5) Signed-off-by: Otavio Salvador Signed-off-by: Richard Purdie (cherry picked from commit a72b58e99fcb3d873cabf0c29f07585fbd2de2e4) Signed-off-by: Jose Quaresma --- scripts/yocto-check-layer | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/yocto-check-layer b/scripts/yocto-check-layer index ca4ada0f35..4634672162 100755 --- a/scripts/yocto-check-layer +++ b/scripts/yocto-check-layer @@ -32,14 +32,14 @@ CASES_PATHS = [os.path.join(os.path.abspath(os.path.dirname(__file__)), 'lib', 'checklayer', 'cases')] logger = scriptutils.logger_create(PROGNAME, stream=sys.stdout) -def test_layer(td, layer, test_software_layer_signatures): +def test_layer(td, layer, test_software_layer_signatures, run_tests): from checklayer.context import CheckLayerTestContext logger.info("Starting to analyze: %s" % layer['name']) logger.info('Distro: %s' % td['bbvars']["DISTRO"]) logger.info("----------------------------------------------------------------------") tc = CheckLayerTestContext(td=td, logger=logger, layer=layer, test_software_layer_signatures=test_software_layer_signatures) - tc.loadTests(CASES_PATHS) + tc.loadTests(CASES_PATHS, modules=run_tests, modules_required=run_tests) return tc.runTests() def dump_layer_debug(layer): @@ -86,6 +86,8 @@ def main(): help='check that software layers do not change signatures (on by default)') group.add_argument('--without-software-layer-signature-check', action='store_false', dest='test_software_layer_signatures', help='disable signature checking for software layers') + parser.add_argument('--run-tests', nargs='+', metavar='TEST', default=[], + help='Tests to run, as [.[.]] (default: all)') parser.add_argument('-n', '--no-auto', help='Disable auto layer discovery', action='store_true') parser.add_argument('-d', '--debug', help='Enable debug output', @@ -235,7 +237,7 @@ def main(): layers_tested = layers_tested + 1 continue - result = test_layer(td, layer, args.test_software_layer_signatures) + result = test_layer(td, layer, args.test_software_layer_signatures, args.run_tests) results[layer['name']] = result results_status[layer['name']] = 'PASS' if results[layer['name']].wasSuccessful() else 'FAIL' layers_tested = layers_tested + 1 From patchwork Tue Nov 24 17:13:50 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Quaresma X-Patchwork-Id: 105430 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.23165.1795540449785063090 for ; Tue, 24 Nov 2026 09:14:09 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=egwZ9Sav; dkim=pass header.i=@oss.qualcomm.com header.s=google header.b=gJWolJxX; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: oss.qualcomm.com, ip: 205.220.168.131, mailfrom: jose.quaresma@oss.qualcomm.com) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AOFL1i31872647 for ; Tue, 24 Nov 2026 17:14:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=qQadHb1//+v teUFI0ZjqgPSqT+5fBq/4PEdKDUDvQwY=; b=egwZ9SavyIxrH/FfCFI//aOVbzC seuYI8kkmq0GtOm5CAoHXr9vjtdgmLsM686L5vO1y2kl8/QTGYOokwphnmaCGZvu 4Mt0BGCfV0r7GwEZDWQoGW5/JNxq7Y0ZLV85okPWXpGNmpm3jBSQK+xqGcbmeDeu WoaFg/81tGnLE8xk6KH/S0auGPIuIeuQtoxARBDf27XJfSzAgAaBH1N2fnmFsaKu RwLUxjocBsdY9xgrTRY4AdVDs/AR0XYNrv8tOHPrxWZboT494Nnh8/6t54IQs9+G 7nxRT6dNhYPYBa3HH+ptt1dF3e8eo2z1gBwd0Zdi9gt7Vz/JtZLdbhJb7DA== Received: from mail-yw1-f198.google.com (mail-yw1-f198.google.com [209.85.128.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j5cxk8kbj-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 24 Nov 2026 17:14:09 +0000 (GMT) Received: by mail-yw1-f198.google.com with SMTP id 00721157ae682-8b3ad09ad82so65037577b3.3 for ; Tue, 24 Nov 2026 09:14:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795540448; x=1796145248; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=qQadHb1//+vteUFI0ZjqgPSqT+5fBq/4PEdKDUDvQwY=; b=gJWolJxXQpCuuEyuBNPWcPB6q0AZ0wbgsJ7dvNBLdY30/E80+Ft8BENUxRa57cd3UK 8R8izI3WNADCkd2QMCPI0bPdFh4ysFh6YvXB9qLMs/hCobSQxr7gZMcTocTmB+1ab1FI N5OCXzWN1OOYn0OAWVKab57KEh2eLMdQXRnHAYEx0OruJSlUN4FxAAPMX+KQDs1dRY9n 5w4wVwA7+uWdIQq8oh+ppghwKkEuQZf+Rm1DlzBCEwImrJBemLYpGTCC8fWbyPgc/NW8 5okNn8eZp0Cls9X7H/hxlN8RwKvaBxiRE8RojIkmP01QxL+jttOqraQTR5EjqvauxwJ3 eEuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795540448; x=1796145248; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=qQadHb1//+vteUFI0ZjqgPSqT+5fBq/4PEdKDUDvQwY=; b=zIQpF0YmMAoeBZ2S3VF/Wn1loF7bGVj0VWjj7Hx9TqOPQRBwU4jnRkTqSgScvUnU0H Kig5+eK95htYkbOspRHyJPTP9cgjjhmtb13HDuUQmdLbTaGcccVtUnx6s9SEJUxc+hfH Rd9XQzh0NwPinPsYeGkeQ3zRCYB4BzGklebaup/z7L/I/udyqVvkjSGBGPBh0rSuirwf qh9EA59ctDnoquJYHpCO9F7GvKuHPDEmZhdMFxGbNij2r6v7gpgjCETVFqOrJJOv3d3N 1MqklSEk4v8+F1cm7kWbZbnsEA6mfeZ8GkTiG0I0nVlcDE8CZoXcP6LD3JtlPr1hR53A R/yQ== X-Gm-Message-State: APuU4Z8sLkfzPwzwfVrBS4PN16CEjoF76vadfFErbwD/n26qI8XxKYBD 48q/HXvzxzrrS9tICYK8yztzyqqBmEokNReondrKGtzsWhhOfKRcXm8fRuIahH5xPmY2/2Exvkn LMbYux+ZG1P6d1JUGHckPjCkWNlwh/Xpsg8yLihZwt765Ud5GG4jqYgYvpSVVDkK48FVg5YQFR5 kPSJQaNKv5RR0mwlIPVX85 X-Gm-Gg: AZFdTZcmbrFa/ObcgLZ8f9dYm/JRvbOjrhOWS1DSOigRXSwz968UhRrjhffGii9t2eK Ht1YGbUeDqp6Dh5L7iI2zKLuffGCYkf1HG7rPl5Advil1MxEOrM8G/d1ySSGWdtVA3HOs5jklZp 6igt3zP+LpAKNtZS8ZqVEIuXKZ50mj7KjKTtRC7Jk2VEVUeH/fTcG43UtwOMhBI11wNSbTKZRDV wEGecnf1JOWCVX3F3KdTkGD+4UC4XRC8zBSoTMr7aGn3Ly2PyJhCXOeBX2PcjnLRhm6eXHDVNSP qBtToFTv57pJqaFKf6aOVTn1YTvjwl+/QhrcDqmvLIWLVUYAQy9vM+83FqHmg/Oirsihfz53c8A Q/qtc8bdZ/FS4v63+p5QIZh8ZUbT6Ka3dS15sFzN8c/btywe4MiQ9PecQDduyP58= X-Received: by 2002:a05:690c:e1ce:10b0:8b5:6873:52c5 with SMTP id 00721157ae682-8b5687359damr6204027b3.5.1795540448289; Tue, 24 Nov 2026 09:14:08 -0800 (PST) X-Received: by 2002:a05:690c:e1ce:10b0:8b5:6873:52c5 with SMTP id 00721157ae682-8b5687359damr6203957b3.5.1795540447803; Tue, 24 Nov 2026 09:14:07 -0800 (PST) Received: from toster.lan ([185.228.162.222]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4b33a596f9csm9632479f8f.12.2026.11.24.09.14.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 09:14:06 -0800 (PST) From: Jose Quaresma To: openembedded-core@lists.openembedded.org Cc: Otavio Salvador , Luciano Dittgen , Richard Purdie , Jose Quaresma Subject: [RFC wrynose][PATCH 4/5] yocto-check-layer: Skip initial signatures unless test_signatures runs Date: Tue, 24 Nov 2026 17:13:50 +0000 Message-ID: <20261124171356.951415-5-jose.quaresma@oss.qualcomm.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261124171356.951415-1-jose.quaresma@oss.qualcomm.com> References: <20261124171356.951415-1-jose.quaresma@oss.qualcomm.com> MIME-Version: 1.0 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTI0MDA2NyBTYWx0ZWRfX5vkvdeqD+Lqw veCV/9PRmwabs4Sa2bExQ9lzXumYiEiHfDGGvZavhX/GIRFA7UY5XhVNooJ/lM9oiljt5dcdqf4 ZA/ehocFbP6mAxiUBpJ7YXplA4SReRa1JUStpQE7YHw77Vq3XEE82eNogZZfi0K9iPEDkeKk1Hh F+XCGD6suAOBijEuwxrH8HKKPshM9/rXaSKYjLRUcgPu9n+d6R/exE8BXuBgTh5He2H7Rd9Tz6a TDAywJNzSYOYtEi8iRK7FLjaa7Dgbr/Txvf808DFbIrAJ9P+Pk0tCxBwdXUNpCEh9eT4BYWDIef P8VZELzQnJgr/km3WKImuxLOfIA61vp3XleF436FmtxZHk68SyuGJALdcaWr4RjVmvqqOX2BCpv 6LTEdaHFe6WV9A1ZAnLINvkeuHPqXtgIlOWZ007SEoeD//dzLonlypAz0aQObG8xfRUpWkmNNxX +9MgX1/K01grXu2bzTQ== X-Proofpoint-GUID: rsBzgfGPko047STjBbfMhiAihreoFqDU X-Proofpoint-ORIG-GUID: rsBzgfGPko047STjBbfMhiAihreoFqDU X-Authority-Analysis: v=2.4 cv=TLbQ2Fla c=1 sm=1 tr=0 ts=6b05c5e1 cx=c_pps a=g1v0Z557R90hA0UpD/5Yag==:117 a=qOKIifoFPMYe9XV0Ag7/Dg==:17 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=alK4_DS-AAAA:8 a=ag1SF4gXAAAA:8 a=EUspDBNiAAAA:8 a=2V6DY6BgAAAA:8 a=T52UmR4tAmSjifIU3wUA:9 a=MFSWADHSvvjO3QEy5MdX:22 a=rOCknGvZllDBBwZ8Yz5I:22 a=Yupwre4RP9_Eg_Bd0iYG:22 a=ldqKKs2zR4t-S6fqr-1n:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTI0MDA2NyBTYWx0ZWRfX4IWPEVjc4S1R 8FbE+jdQunMx8D3Qcp5ekBZGxb3pW6yHIyMlQTS7sByLHytfw/0fk5GnjFYjLkIw28fr3czJjvx HVoxhW2wjmluf3tE/eBcVPBiOEU93B8= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-24_04,2026-11-23_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 spamscore=0 clxscore=1015 suspectscore=0 malwarescore=0 priorityscore=1501 lowpriorityscore=0 adultscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611240067 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 17:14:12 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251048 From: Otavio Salvador Only test_signatures compares against the world signatures dumped before the layer is added, so a run without it, such as "--run-tests bsp", spent a world parse on a dump it never used. Dump them only when --run-tests selects common tests, as it does by default. Tested on meta-freescale with "--run-tests bsp": no initial dump, same results. Suggested-by: Luciano Dittgen AI-Generated: Uses Claude Code (Claude Opus 5.5) Signed-off-by: Otavio Salvador Signed-off-by: Richard Purdie (cherry picked from commit 34c0e63b2d14ca1eeb30cf6cd087d5cb5327e19f) Signed-off-by: Jose Quaresma --- scripts/yocto-check-layer | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/yocto-check-layer b/scripts/yocto-check-layer index 4634672162..4017b3a251 100755 --- a/scripts/yocto-check-layer +++ b/scripts/yocto-check-layer @@ -221,7 +221,9 @@ def main(): logger.info('Getting initial signatures ...') td['builddir'] = builddir try: - td['sigs'], td['tunetasks'] = get_signatures(td['builddir']) + # Only test_signatures, a common test, compares against them + if not args.run_tests or 'common' in [t.split('.')[0] for t in args.run_tests]: + td['sigs'], td['tunetasks'] = get_signatures(td['builddir']) except RuntimeError as e: logger.info(str(e)) results[layer['name']] = None From patchwork Tue Nov 24 17:13:51 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Quaresma X-Patchwork-Id: 105431 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.23075.1795540451894278822 for ; Tue, 24 Nov 2026 09:14:11 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=A/4M5BG0; dkim=pass header.i=@oss.qualcomm.com header.s=google header.b=YeEXVD1o; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: oss.qualcomm.com, ip: 205.220.168.131, mailfrom: jose.quaresma@oss.qualcomm.com) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AOFKtBG2569557 for ; Tue, 24 Nov 2026 17:14:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=p6qSq0b//wK 5UUTRMSLfUuz6EkM1BGOEkezNedaaTY0=; b=A/4M5BG0A3iuQmIDD/n8kxTzeTg S6sMca2tdJCXUEw3WljhiRRq6lPH7w9uaVWzBtt1PDrenZmZTnxlFshmE1Tzwd6F JcZv7/GBvbLVTUJCbqQPgSeFaEy4KViZdSg2C5UnNO80fYV8cbNyM6jxCbTjI5EH tb3ZRAyCKHzL63dEtugsZAZPMbShomkVJ4GkczoUVcwB1hKCMqSTkIjwnq/gQy7z A7R6irSt6WjTwQIQY1qZlYUfHu6rrLLiuDiXiRYtIVTPzwvfX6vbBXHOeJyo3Vj2 qVtDERa/WMYB82ySEcWrc1IKz+t20XbrTtb5mI7vEKFGoc5gK3BYYPBv82g== Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j4w6svk9q-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 24 Nov 2026 17:14:11 +0000 (GMT) Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-92106c98714so99383336d6.3 for ; Tue, 24 Nov 2026 09:14:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795540450; x=1796145250; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=p6qSq0b//wK5UUTRMSLfUuz6EkM1BGOEkezNedaaTY0=; b=YeEXVD1oAzyMnDcp/wwdYa0zsmEHCYOfRb1nsnCGgLS4/DrH697jKHpafRPBgxCWnJ /Pqf5zPX24B19tnq9qefLTqyzIfOJYD8Sn1PzlRRyFrCsNuWoLojgFKOH80UqYc1vTnw 2QS6Bg7ymCNgg55kFI2KXE8PFy2GJ2+JdNtc/UfRmnc1IlGVhe6Nt5Zau5hFNsKqw8Qf nM62VXAjdAAZ88Sf+AJNZCotXrMCdLDrgShfIoBIO65pQYK+VFxympkjTYh5qz7GaV6m xfSt+AwCng0FTkPMN02fyMkfPzNzQPzT6Cbysk1CWmrq0auYXf91yWMuo+9zt5jNxnaT 2BGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795540450; x=1796145250; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=p6qSq0b//wK5UUTRMSLfUuz6EkM1BGOEkezNedaaTY0=; b=CsiPn0kZPkpuh4Ejw388sDvUivxMc7kkI7F/rK+UDioGvAcchiJ3TSYJt3QdF49Bqu 1U8HU9T+YhgYpXifjwHvQdg8He4FWObA+odyHXyPhgidSlsYTr0wfsR62XPW53YAt5Np Y5nDEOiTYf4IkZc/m4g9Yl9cOn2axCslO0w4CmkbgFzakv0dZR+plY1X2p1MwpWAqJ6k sR97P0sbo5WKzogHGbaV2K+kroi5Py+pWnYEOBYhx7LilOyoztiurz6Z/aP5E4jOFwjo e9LQNZfJ/Fhgml2dSHkYtP6CTgob5giERs5xWW6AL0LoRuPhtc+R7mms8NY8PD/XDC1R hfLQ== X-Gm-Message-State: APuU4Z+6gg2ZbfeVyI9oDqEvZ+vNsK9OVmgdx8dEp/LHkBwiZJXhWxgy e0BBgd9c/qQmAdTIpRdAlKzMbSFdUFxKipDjfKlESVIuZOSpd7AthZlPGV/AvCs7eCkip8f+/Tf E+cHBKkbO9gC0yk20JsWhqhSdPJ5Bzco/E8EdMK87AOGKoq2dJxpqQM6RuPNEZ2NtkGlFDegGa6 TesGUlsui0dQt9Eug0jVFF X-Gm-Gg: AZFdTZexlMt2ngO4zKKrQR5IOXpL9ccy1sQ0WvADNLk9dWOxS2/sKpMtc+XwVxkgPW3 EULa1iGmGt513Cb3+CygdzLFDVMIhgM+vpBG5EmbXSj/9cmIXWuO6nh8levRFeEVqQDRUH6HIUj RkpUOIPx2zrrN1rPay82Cc6gPl6lpLli2rbSdimSfWxQKn2paCKJQx/Tn4T9rgyb+kBcrduuTIL 405e7h7LidbE6pmxyJebOfvfdaQ7XZt3JJaJp11/q6c9twUo89GEiWXsUUkDh+QNZjL+fesShge ohwJGHKzOevX5FwNaawZ5D+FPvRPOS5teClnT2H1wuAujnAUWkh3bNSoGYObBhAQn8v2+Xdtegn SuHEx5LgwbMz9A0J1/snUh1+oTr5NSBrNPvL1C0aDwHne8dg2NUS9Ou08wqWLx5E= X-Received: by 2002:a05:620a:28d5:b0:949:a623:515b with SMTP id af79cd13be357-949ba9c69c9mr2611572385a.22.1795540450192; Tue, 24 Nov 2026 09:14:10 -0800 (PST) X-Received: by 2002:a05:620a:28d5:b0:949:a623:515b with SMTP id af79cd13be357-949ba9c69c9mr2611563685a.22.1795540449507; Tue, 24 Nov 2026 09:14:09 -0800 (PST) Received: from toster.lan ([185.228.162.222]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4b33a596f9csm9632479f8f.12.2026.11.24.09.14.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 09:14:08 -0800 (PST) From: Jose Quaresma To: openembedded-core@lists.openembedded.org Cc: Otavio Salvador , Luciano Dittgen , Paul Barker , Richard Purdie , Jose Quaresma Subject: [RFC wrynose][PATCH 5/5] checklayer: Share each world signature dump between the tests needing it Date: Tue, 24 Nov 2026 17:13:51 +0000 Message-ID: <20261124171356.951415-6-jose.quaresma@oss.qualcomm.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261124171356.951415-1-jose.quaresma@oss.qualcomm.com> References: <20261124171356.951415-1-jose.quaresma@oss.qualcomm.com> MIME-Version: 1.0 X-Proofpoint-GUID: xmFouT8A08TXpmfoJDuHiRtqf72Le9Fz X-Proofpoint-Spam-Info: AW1haW4tMjYxMTI0MDA2NyBTYWx0ZWRfX85Hp3JCYJ9WA ci0It+chEGvAMzqKVrwHx90IYMpzdnfocZRCgc+GuDZTULc83h5BY2iEeXQErog/jvV/r3N0SIL 3FtALrlILr8k4eZvTx7WE/gNCt/spcI= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTI0MDA2NyBTYWx0ZWRfXxTwh9ZhTv5QN VnUFMlNnxYAmRGfXCR50L4xD9C191YkIuStzNHL7iGDE6exdlvuJwy5h+YTLkJUpr/0p03En2gB EUuh8kfRHe13AAxngcJLHER4PZAT6pSJ0gugoPWGRd+DdoPr9w4E5OO3lSEnUN+9aD/nG32w42J cVENoGe8F+4dqLpQh9OxAfExrPZ5A5Nxi99dF5NRsp6RILJ5zXKJjbVuX+NjZCZNicZibg+AuET rHiVijgvMjr79DspY2IeeBPr2v9THThl3XJCDHEowZKiCxl5GD0+iOgdtH05Ynyy0864MVNFba2 UaShBUhWc8tblWtRZzVS9D3fmhwj7Py+3VOK4hsl2QcX4uRfjuTU4f1x2jX2hC4eG0mSEubn/9R 8ACsW8LY4dFvbr33BzJybn90sg29HUTZMvQeyjAY7sT5ELF42LsoN/aKUe6OsSmDAVo2ncwRHMH qDPrgRidRB2bvlvfePw== X-Proofpoint-ORIG-GUID: xmFouT8A08TXpmfoJDuHiRtqf72Le9Fz X-Authority-Analysis: v=2.4 cv=V8DoQuni c=1 sm=1 tr=0 ts=6b05c5e3 cx=c_pps a=wEM5vcRIz55oU/E2lInRtA==:117 a=qOKIifoFPMYe9XV0Ag7/Dg==:17 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=alK4_DS-AAAA:8 a=ag1SF4gXAAAA:8 a=EUspDBNiAAAA:8 a=2V6DY6BgAAAA:8 a=TaT9bM_6USgai8DJsUMA:9 a=OIgjcC2v60KrkQgK7BGD:22 a=rOCknGvZllDBBwZ8Yz5I:22 a=Yupwre4RP9_Eg_Bd0iYG:22 a=ldqKKs2zR4t-S6fqr-1n:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-24_04,2026-11-23_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 bulkscore=0 spamscore=0 impostorscore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 phishscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611240067 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 17:14:12 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251049 From: Otavio Salvador test_signatures and test_world dump the same world signatures, with and without -k, and so do test_machine_signatures and test_machine_world for each machine; when the dump succeeds, the second only repeats a world parse. Make get_signatures() always run bitbake with -k and return the error along with the signatures, and dump once in setUpClass(): for the common tests, and per machine for the BSP ones. test_world and test_machine_world check the stored error, the signature tests use the stored signatures. Tested on meta-freescale with two machines: 5 world dumps instead of 8, same results; a recipe breaking world on one machine fails test_machine_world for that machine only, now listing all its errors. Suggested-by: Luciano Dittgen Suggested-by: Paul Barker AI-Generated: Uses Claude Code (Claude Opus 5.5) Signed-off-by: Otavio Salvador Signed-off-by: Richard Purdie (cherry picked from commit 530be0c29e906a312a61322e73e20309731c4569) Signed-off-by: Jose Quaresma --- scripts/lib/checklayer/__init__.py | 28 +++++++++++++------------- scripts/lib/checklayer/cases/bsp.py | 15 +++++++++----- scripts/lib/checklayer/cases/common.py | 20 +++++++++++------- scripts/yocto-check-layer | 4 +++- 4 files changed, 40 insertions(+), 27 deletions(-) diff --git a/scripts/lib/checklayer/__init__.py b/scripts/lib/checklayer/__init__.py index aa19a8e2ae..9d79ae9cd0 100644 --- a/scripts/lib/checklayer/__init__.py +++ b/scripts/lib/checklayer/__init__.py @@ -287,7 +287,12 @@ def check_command(error_msg, cmd, cwd=None): raise RuntimeError(msg) return output -def get_signatures(builddir, failsafe=False, machine=None, extravars=None): +def get_signatures(builddir, machine=None, extravars=None): + ''' + Returns the world signatures, the tasks of each tune and None, or the + error when some recipes failed, with the signatures of the others + (None when none were written). + ''' import re # some recipes needs to be excluded like meta-world-pkgdata @@ -304,25 +309,20 @@ def get_signatures(builddir, failsafe=False, machine=None, extravars=None): cmd += ' ' if machine: cmd += 'MACHINE=%s ' % machine - cmd += 'bitbake ' - if failsafe: - cmd += '-k ' - cmd += '-S lockedsigs world' + cmd += 'bitbake -k -S lockedsigs world' sigs_file = os.path.join(builddir, 'locked-sigs.inc') if os.path.exists(sigs_file): os.unlink(sigs_file) + error = None try: check_command('Generating signatures failed. This might be due to some parse error and/or general layer incompatibilities.', cmd, builddir) except RuntimeError as ex: - if failsafe and os.path.exists(sigs_file): - # Ignore the error here. Most likely some recipes active - # in a world build lack some dependencies. There is a - # separate test_machine_world_build which exposes the - # failure. - pass - else: - raise + # Most likely some recipes active in a world build lack some + # dependencies: the caller decides whether that is fatal. + error = str(ex) + if not os.path.exists(sigs_file): + return (None, None, error) sig_regex = re.compile(r"^(?P[^:]*:[^:]*):(?P[^:]*) .$") assignment_regex = re.compile(r"^\s*(?P\S+)\s*\+?=") @@ -362,7 +362,7 @@ def get_signatures(builddir, failsafe=False, machine=None, extravars=None): if not sigs: raise RuntimeError('Can\'t load signatures from %s' % sigs_file) - return (sigs, tune2tasks) + return (sigs, tune2tasks, error) def get_depgraph(targets=['world'], failsafe=False): ''' diff --git a/scripts/lib/checklayer/cases/bsp.py b/scripts/lib/checklayer/cases/bsp.py index b76163fb56..6bf04b5b00 100644 --- a/scripts/lib/checklayer/cases/bsp.py +++ b/scripts/lib/checklayer/cases/bsp.py @@ -14,6 +14,10 @@ class BSPCheckLayer(OECheckLayerTestCase): if self.tc.layer['type'] not in (LayerType.BSP, LayerType.CORE): raise unittest.SkipTest("BSPCheckLayer: Layer %s isn't BSP one." %\ self.tc.layer['name']) + # test_machine_world and test_machine_signatures share one world + # dump per machine + self.machine_sigs = {machine: get_signatures(self.td['builddir'], machine=machine) + for machine in self.td['machines'] or []} def test_bsp_defines_machines(self): self.assertTrue(self.tc.layer['conf']['machines'], @@ -45,10 +49,9 @@ class BSPCheckLayer(OECheckLayerTestCase): msg = [] for machine in self.td['machines']: # In contrast to test_machine_signatures() below, errors are fatal here. - try: - get_signatures(self.td['builddir'], failsafe=False, machine=machine) - except RuntimeError as ex: - msg.append(str(ex)) + error = self.machine_sigs[machine][2] + if error: + msg.append(error) if msg: msg.insert(0, 'The following machines broke a world build:') self.fail('\n'.join(msg)) @@ -80,7 +83,9 @@ class BSPCheckLayer(OECheckLayerTestCase): tunes = {} # Preserve ordering of machines as chosen by the user. for machine in self.td['machines']: - curr_sigs, tune2tasks = get_signatures(self.td['builddir'], failsafe=True, machine=machine) + curr_sigs, tune2tasks, error = self.machine_sigs[machine] + if curr_sigs is None: + raise RuntimeError(error) # Invert the tune -> [tasks] mapping. tasks2tune = {} for tune, tasks in tune2tasks.items(): diff --git a/scripts/lib/checklayer/cases/common.py b/scripts/lib/checklayer/cases/common.py index d20559e163..812bb6e637 100644 --- a/scripts/lib/checklayer/cases/common.py +++ b/scripts/lib/checklayer/cases/common.py @@ -11,6 +11,11 @@ from checklayer import get_signatures, LayerType, check_command, compare_signatu from checklayer.case import OECheckLayerTestCase class CommonCheckLayer(OECheckLayerTestCase): + @classmethod + def setUpClass(cls): + # test_world and test_signatures share one world dump + cls.world_sigs, _, cls.world_error = get_signatures(cls.td['builddir']) + def test_readme(self): """ Test that the layer contains a valid README file and that is meets @@ -98,7 +103,8 @@ class CommonCheckLayer(OECheckLayerTestCase): are not actually buildable, so here we fail when "bitbake -S none world" fails. ''' - get_signatures(self.td['builddir'], failsafe=False) + if self.world_error: + raise RuntimeError(self.world_error) def test_world_inherit_class(self): ''' @@ -106,10 +112,9 @@ class CommonCheckLayer(OECheckLayerTestCase): class, which can do additional per-recipe test cases. ''' msg = [] - try: - get_signatures(self.td['builddir'], failsafe=False, machine=None, extravars='BB_ENV_PASSTHROUGH_ADDITIONS="$BB_ENV_PASSTHROUGH_ADDITIONS INHERIT" INHERIT="yocto-check-layer"') - except RuntimeError as ex: - msg.append(str(ex)) + _, _, error = get_signatures(self.td['builddir'], machine=None, extravars='BB_ENV_PASSTHROUGH_ADDITIONS="$BB_ENV_PASSTHROUGH_ADDITIONS INHERIT" INHERIT="yocto-check-layer"') + if error: + msg.append(error) if msg: msg.insert(0, 'Layer %s failed additional checks from yocto-check-layer.bbclass\nSee below log for specific recipe parsing errors:\n' % \ self.tc.layer['name']) @@ -135,8 +140,9 @@ class CommonCheckLayer(OECheckLayerTestCase): raise unittest.SkipTest("Not testing for signature changes in a software layer %s." \ % self.tc.layer['name']) - curr_sigs, _ = get_signatures(self.td['builddir'], failsafe=True) - msg = compare_signatures(self.td['sigs'], curr_sigs) + if self.world_sigs is None: + raise RuntimeError(self.world_error) + msg = compare_signatures(self.td['sigs'], self.world_sigs) if msg is not None: self.fail('Adding layer %s changed signatures.\n%s' % (self.tc.layer['name'], msg)) diff --git a/scripts/yocto-check-layer b/scripts/yocto-check-layer index 4017b3a251..9b00bf5b8f 100755 --- a/scripts/yocto-check-layer +++ b/scripts/yocto-check-layer @@ -223,7 +223,9 @@ def main(): try: # Only test_signatures, a common test, compares against them if not args.run_tests or 'common' in [t.split('.')[0] for t in args.run_tests]: - td['sigs'], td['tunetasks'] = get_signatures(td['builddir']) + td['sigs'], td['tunetasks'], error = get_signatures(td['builddir']) + if error: + raise RuntimeError(error) except RuntimeError as e: logger.info(str(e)) results[layer['name']] = None