Skip to contentSkip to conversation

automation: Enable parallel build with cppcheck analysis

PATCH In review Michal Orzel 3 participants 3 messages May 18, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 automation: Enable parallel build with cppcheck analysis

The limitation was fixed by the commit:
45bfff651173d538239308648c6a6cd7cbe37172

---
 automation/scripts/build | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
automation/scripts/build +2 -4
index 9085cba35281..38c48ae6d826 100755
@@ -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
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Michal Orzel

The limitation was fixed by the commit:
45bfff651173d538239308648c6a6cd7cbe37172

Hi Michal,

Looks good!

Quoted 24 lines

---
automation/scripts/build | 6 ++----

1 file changed, 2 insertions(+), 4 deletions(-)
automation/scripts/build +0 -0
index 9085cba35281..38c48ae6d826 100755
@@ -39,10 +39,8 @@ cp xen/.config xen-config

mkdir -p binaries

if [[ "${CPPCHECK}" == "y" ]] && [[ "${HYPERVISOR_ONLY}" == "y" ]]; then

automation/scripts/build +2 -4
-    # 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
Signature · 1 line
2.25.1
Acked-by on v1 1/1
#2 lore raw
In reply to Michal Orzel
Quoted 4 lines · Michal Orzel

The limitation was fixed by the commit:
45bfff651173d538239308648c6a6cd7cbe37172

Quoted 24 lines
---
 automation/scripts/build | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
automation/scripts/build +2 -4
index 9085cba35281..38c48ae6d826 100755
@@ -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
Signature · 1 line
2.25.1