[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] automation: Enable parallel build with cppcheck analysis


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Thu, 18 May 2023 14:24:15 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bKM0BHsOw2bp+YWztYBo8GjCfLhaPqBDI4+n/Jlij88=; b=g8+1iFVNOZaD8FlYDQQWe0e4odBlRs+N6xA36mcypXqqBziX728OT69mZet6nbd5fPAPbvzp+8xi35r5wc5QHc42/ojBXuptPJ0Ic1zRY5t3Q+nr6ptVXGSyzIDKuOMYbAKMTtPFP0VdbYjcpt5rnRwNJ8A/ZthnrHbMGMS9pAuQ1DwWqnSMF1ZNgnh6jAEflpUfZ+AH5GkShEDz6IO1JA7F/5ZZ1Jj3T0LqRWD9V8MMfQ+nqS2IxRiQ8mRO38HGbMSN+WXOZWlwTRiCOinmgWsgtcd5ymk28+xy6A3q9w/JAnMzEoRKVNTSbM2knJxRJN07bV5P9XayWIqb3zpXtg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XTmm9UlEQWtuk2D7fA0Dr+jvyIN/GkgbQoHzz81aybSSt1uWx6ZBbDfU1zt61TFWIbFKgDOMmI0AbZEidhbtuYeRb4IlBYbA0gc2y0VehjtFoVc0nbQw1h94RQ8a5f778uIQcynTh3XOiXeSXtya+JofG5ewPD79W4VNATtEUSewRLyS/ALztr3mFMQhd5Dw68TjYO9H5aAQbBDASXGlkGW6WrwmQ89nivU88eQwICs2/43JEULVIObVeiJhLe+v/XAovdTK7yPMs9VmZy1oHpPeOgdRUrqsNoBKcbTM6r9v7AQtleSx8uPZ/CK69dNwwaqfkPn9Sm/+ht4fBEARig==
  • Cc: Michal Orzel <michal.orzel@xxxxxxx>, Doug Goldstein <cardoe@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, <luca.fancellu@xxxxxxx>
  • Delivery-date: Thu, 18 May 2023 12:24:37 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

The limitation was fixed by the commit:
45bfff651173d538239308648c6a6cd7cbe37172

Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
---
 automation/scripts/build | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/automation/scripts/build b/automation/scripts/build
index 9085cba35281..38c48ae6d826 100755
--- a/automation/scripts/build
+++ b/automation/scripts/build
@@ -39,10 +39,8 @@ cp xen/.config xen-config
 mkdir -p binaries
 
 if [[ "${CPPCHECK}" == "y" ]] && [[ "${HYPERVISOR_ONLY}" == "y" ]]; then
-    # Cppcheck analysis invokes Xen-only build.
-    # Known limitation: cppcheck generates inconsistent reports when running
-    # in parallel mode, therefore do not specify -j<n>.
-    xen/scripts/xen-analysis.py --run-cppcheck --cppcheck-misra
+    # Cppcheck analysis invokes Xen-only build
+    xen/scripts/xen-analysis.py --run-cppcheck --cppcheck-misra -- -j$(nproc)
 
     # Preserve artefacts
     cp xen/xen binaries/xen
-- 
2.25.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.