[libcxx-commits] [libcxx] [libc++] Add dry-run coverage for the LNT tooling to the test-tools builder (PR #214028)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Aug 5 06:39:21 PDT 2026


https://github.com/ldionne updated https://github.com/llvm/llvm-project/pull/214028

>From 314399f089052e6cd34f6f57a4913bde258cc783 Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Tue, 4 Aug 2026 14:04:41 -0400
Subject: [PATCH 1/2] [libc++] Add dry-run coverage for the LNT tooling to the
 test-tools builder

This provides better-than-nothing coverage at a low cost.
---
 libcxx/utils/ci/run-buildbot | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/libcxx/utils/ci/run-buildbot b/libcxx/utils/ci/run-buildbot
index 074400ee32b78..e204c8b604bf9 100755
--- a/libcxx/utils/ci/run-buildbot
+++ b/libcxx/utils/ci/run-buildbot
@@ -317,6 +317,26 @@ test-tools)
 
     step "Compare benchmark results" # perform a no-op comparison, just to run the tool
     "${MONOREPO_ROOT}/libcxx/utils/compare-benchmarks" "${BUILD_DIR}/results.lnt" "${BUILD_DIR}/results.lnt"
+
+    # Exercise LNT tooling with --dry-run. Doing a real run is time consuming and would
+    # submit to a LNT instance, which we obviously don't want.
+    step "Run benchmarks using the LNT flow (dry-run)"
+    "${MONOREPO_ROOT}/libcxx/utils/ci/lnt/run-benchmarks" \
+        --dry-run -vv \
+        --git-repo "${MONOREPO_ROOT}" \
+        --benchmark-commit HEAD \
+        --test-suite-commit HEAD \
+        --machine test-tools \
+        --compiler "${CXX}" \
+        --filter hash.bench.cpp \
+        --output "${BUILD_DIR}/report.json"
+
+    step "Submit a LNT report (dry-run)"
+    "${MONOREPO_ROOT}/libcxx/utils/ci/lnt/submit-benchmarks" \
+        --dry-run -vv \
+        --lnt-url http://localhost:8000 \
+        --test-suite libcxx \
+        "${BUILD_DIR}/results.lnt"
 ;;
 #
 # Various Standard modes

>From c9e502ff51b16d3897cbbcf0059e174a71075f22 Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Wed, 5 Aug 2026 09:39:06 -0400
Subject: [PATCH 2/2] Fix implied file format for LNT submission

---
 libcxx/utils/ci/run-buildbot | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libcxx/utils/ci/run-buildbot b/libcxx/utils/ci/run-buildbot
index e204c8b604bf9..7688944b38edd 100755
--- a/libcxx/utils/ci/run-buildbot
+++ b/libcxx/utils/ci/run-buildbot
@@ -336,7 +336,7 @@ test-tools)
         --dry-run -vv \
         --lnt-url http://localhost:8000 \
         --test-suite libcxx \
-        "${BUILD_DIR}/results.lnt"
+        "${BUILD_DIR}/report.json"
 ;;
 #
 # Various Standard modes



More information about the libcxx-commits mailing list