From 6a0014ac44fc8716d8eda7cd4ca84e14d87a1e4b Mon Sep 17 00:00:00 2001 From: Jason Pascucci Date: Thu, 29 Oct 2026 12:42:34 -0700 Subject: [PATCH] [no-ci] Display the logs when driver installation fails Print the nvidia installer and dkms build logs on failure. --- ci/tools/install_gpu_driver.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/ci/tools/install_gpu_driver.sh b/ci/tools/install_gpu_driver.sh index 3205f4fc403..a18938782f5 100755 --- a/ci/tools/install_gpu_driver.sh +++ b/ci/tools/install_gpu_driver.sh @@ -137,7 +137,21 @@ host_install() { ( cd "$d" \ && sh installer.run --silent --dkms --no-questions \ - --accept-license --ui=none --no-cc-version-check --kernel-module-type="$KMT" ) + --accept-license --ui=none --no-cc-version-check --kernel-module-type="$KMT" ) || { + local installer_status=$? log + echo "::error::NVIDIA driver installer exited with status ${installer_status}" >&2 + # The silent installer reports only a summary; expose the actual build errors. + for log in /var/log/nvidia-installer.log \ + /var/lib/dkms/nvidia*/"$VERSION"/build/make.log \ + /var/lib/dkms/nvidia*/"$VERSION"/*/*/log/make.log; do + if [ -f "$log" ]; then + echo "::group::${log}" + cat "$log" || echo "::warning::could not read ${log}" >&2 + echo "::endgroup::" + fi + done + return "$installer_status" + } modprobe nvidia nvidia_uvm nvidia_modeset # Bring nvidia-persistenced back up. NVML state-changing calls from