[llvm] [ci] upload any generated clang reproducers as artifacts (PR #136157)

Matheus Izvekov via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 18 13:45:40 PDT 2025


https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/136157

>From da14ee11663bbb7bcf4201208641125c8253447e Mon Sep 17 00:00:00 2001
From: Matheus Izvekov <mizvekov at gmail.com>
Date: Thu, 17 Apr 2025 13:20:07 -0300
Subject: [PATCH] [ci] upload any generated clang reproducers as artifacts

Make sure any generated clang reproducers end up as artifacts.
---
 .ci/monolithic-linux.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.ci/monolithic-linux.sh b/.ci/monolithic-linux.sh
index 6461c9d40ad59..d2557554cb0bc 100755
--- a/.ci/monolithic-linux.sh
+++ b/.ci/monolithic-linux.sh
@@ -28,10 +28,14 @@ if [[ -n "${CLEAR_CACHE:-}" ]]; then
   ccache --clear
 fi
 
+mkdir -p artifacts/reproducers
+
+# Make sure any clang reproducers will end up as artifacts.
+export CLANG_CRASH_DIAGNOSTICS_DIR=`realpath artifacts/reproducers`
+
 function at-exit {
   retcode=$?
 
-  mkdir -p artifacts
   ccache --print-stats > artifacts/ccache_stats.txt
   cp "${BUILD_DIR}"/.ninja_log artifacts/.ninja_log
 



More information about the llvm-commits mailing list