]> git.lttng.org Git - lttng-ci.git/commitdiff
jjb: print hardware details
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 12 Jan 2024 16:16:25 +0000 (11:16 -0500)
committerMichael Jeanson <mjeanson@efficios.com>
Fri, 12 Jan 2024 18:31:55 +0000 (13:31 -0500)
Print the hardware details of the CI node at the beginning of the build.

Change-Id: I675d950f687df72f90f89d296b1a68b9207d0f93
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
scripts/babeltrace/build.sh
scripts/binutils-gdb/build.sh
scripts/common/print.sh
scripts/librseq/build.sh
scripts/liburcu/build.sh
scripts/lttng-tools/build.sh
scripts/lttng-ust/build.sh

index 6191ecc4adbe3a658721cdf2ba1cee02b28790fe..d7c79fbffdc49a754f6b10ecdb13a373df59eef1 100755 (executable)
@@ -210,6 +210,7 @@ esac
 
 # Print build env details
 print_header "Build environment details"
+print_hardware || true
 print_os || true
 print_tooling || true
 
index 94bded9d9d0962cae4f434cde9ea7190111b9bdd..e96422081d81eccc5dadad6de6fe1f3cdbc0150e 100755 (executable)
@@ -200,6 +200,8 @@ macos-*)
 esac
 
 # Print build env details
+print_header "Build environment details"
+print_hardware || true
 print_os || true
 print_tooling || true
 
index e13ddd0e43ae667418980d53df2c880b9aa372d3..e101a9c24df3c088cd4fa3a3d817a319a08fd4ae 100755 (executable)
@@ -12,6 +12,19 @@ print_blue() {
        echo -e "${COLOR_BLUE}$1${COLOR_NONE}"
 }
 
+print_hardware() {
+    if command -v lscpu >/dev/null 2>&1; then
+        print_blue "CPU Details"
+        lscpu
+    fi
+
+    print_blue "Memory Details"
+    free
+
+    print_blue "Storage Details"
+    df -H -T
+}
+
 print_os() {
     set +ex
 
index 981f30fc56d11a785ea4d6bedb84c80a6ca6b691..5a10c2e7a522cdcc033ee007c021772433a0a7b3 100755 (executable)
@@ -180,6 +180,7 @@ esac
 
 # Print build env details
 print_header "Build environment details"
+print_hardware || true
 print_os || true
 print_tooling || true
 
index f72a41927067500fa134c07e3399456269c30846..cc4d15c85462a00b004b7eeb8a3de9b6157bd13e 100755 (executable)
@@ -198,6 +198,7 @@ esac
 
 # Print build env details
 print_header "Build environment details"
+print_hardware || true
 print_os || true
 print_tooling || true
 
index f5cafe4dde250f2d8192393f22d45c5d2c09f128..ceec4bb153233cbd1411f0f94e49f7a22cc0c43b 100755 (executable)
@@ -285,6 +285,7 @@ fi
 
 # Print build env details
 print_header "Build environment details"
+print_hardware || true
 print_os || true
 print_tooling || true
 
index d9de73c4fe06599a3dd145fafc30ffe37f0723a3..7c7bb35425bede8e26846bec3fe8d3aebec2f566 100755 (executable)
@@ -201,6 +201,7 @@ esac
 
 # Print build env details
 print_header "Build environment details"
+print_hardware || true
 print_os || true
 print_tooling || true
 
This page took 0.029861 seconds and 4 git commands to generate.