[llvm] [GitHub] Collect statistics in test-suite workflow (PR #210316)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 22 21:55:58 PDT 2026


https://github.com/lukel97 updated https://github.com/llvm/llvm-project/pull/210316

>From 88a84dc5340182d582fcf28e2f509ee2689fc05a Mon Sep 17 00:00:00 2001
From: Luke Lau <luke at igalia.com>
Date: Fri, 17 Jul 2026 20:24:46 +0800
Subject: [PATCH 1/2] [GitHub] Collect statistics in test-suite workflow

This allows comparing the statistic counters in the results.json artifacts
---
 .github/workflows/test-suite/configure-and-build.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/test-suite/configure-and-build.sh b/.github/workflows/test-suite/configure-and-build.sh
index 3b78f88f9c6ca..96d79999be00a 100755
--- a/.github/workflows/test-suite/configure-and-build.sh
+++ b/.github/workflows/test-suite/configure-and-build.sh
@@ -7,6 +7,7 @@ cmake -B build.$1 \
       -C cmake/caches/O3.cmake \
       -GNinja \
       -DTEST_SUITE_BENCHMARKING_ONLY=ON \
-      -DTEST_SUITE_RUN_BENCHMARKS=OFF
+      -DTEST_SUITE_RUN_BENCHMARKS=OFF \
+      -DTEST_SUITE_COLLECT_STATS=ON
 ninja -C build.$1
 llvm-lit build.$1 -o results.$1.json

>From 6acfb8bd9a6ba57c930790699a73e88a41533b7e Mon Sep 17 00:00:00 2001
From: Luke Lau <luke at igalia.com>
Date: Thu, 23 Jul 2026 12:55:30 +0800
Subject: [PATCH 2/2] Enable assertions in LLVM build

Otherwise clang won't emit stats
---
 .github/workflows/test-suite/llvm.cmake | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.github/workflows/test-suite/llvm.cmake b/.github/workflows/test-suite/llvm.cmake
index 529797a1b8817..ce7bff4f88885 100644
--- a/.github/workflows/test-suite/llvm.cmake
+++ b/.github/workflows/test-suite/llvm.cmake
@@ -2,6 +2,7 @@ set(CMAKE_BUILD_TYPE Release CACHE STRING "")
 set(LLVM_TARGETS_TO_BUILD "AArch64;RISCV;X86" CACHE STRING "")
 set(LLVM_ENABLE_PROJECTS "clang;lld" CACHE STRING "")
 set(LLVM_APPEND_VC_REV OFF CACHE BOOL "")
+set(LLVM_ENABLE_ASSERTIONS ON CACHE BOOL "")
 set(CMAKE_C_COMPILER_LAUNCHER sccache CACHE STRING "")
 set(CMAKE_CXX_COMPILER_LAUNCHER sccache CACHE STRING "")
 set(CLANG_ENABLE_STATIC_ANALYZER OFF CACHE BOOL "")



More information about the llvm-commits mailing list