[llvm] [libc++] [WIP] Add metrics collection for libc++ premerge testing. (PR #152801)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 8 14:55:23 PDT 2025


https://github.com/cmtice updated https://github.com/llvm/llvm-project/pull/152801

>From 67142b91ab1cfb76de821852316a687e0303cd26 Mon Sep 17 00:00:00 2001
From: Caroline Tice <cmtice at google.com>
Date: Fri, 8 Aug 2025 14:27:28 -0700
Subject: [PATCH 1/2] [libc++] [WIP] Add metrics collection for libc++ premerge
 testing.

** DRAFT!! DO NOT REVIEW! DO NOT MERGE! **

Work-in-progress, playing around with adding metrics collection
and dashboard for libc++ premerge testing data.
---
 .github/workflows/libcxx-build-and-test.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.github/workflows/libcxx-build-and-test.yaml b/.github/workflows/libcxx-build-and-test.yaml
index 4b29c9296bf9d..739e56e56f459 100644
--- a/.github/workflows/libcxx-build-and-test.yaml
+++ b/.github/workflows/libcxx-build-and-test.yaml
@@ -35,6 +35,7 @@ concurrency:
 
 jobs:
   stage1:
+    name: libc++ Stage1 Testing
     if: github.repository_owner == 'llvm'
     runs-on: llvm-premerge-libcxx-runners
     continue-on-error: false
@@ -72,6 +73,7 @@ jobs:
             **/CMakeOutput.log
             **/crash_diagnostics/*
   stage2:
+    name: libc++ Stage2 Testing
     if: github.repository_owner == 'llvm'
     runs-on: llvm-premerge-libcxx-runners
     needs: [ stage1 ]
@@ -117,6 +119,7 @@ jobs:
             **/CMakeOutput.log
             **/crash_diagnostics/*
   stage3:
+    name: libc++ Stage3 Testing
     if: github.repository_owner == 'llvm'
     needs: [ stage2 ]
     continue-on-error: false

>From 46114b04fe54f4b3c4c2e9b15dab64f8e4b95686 Mon Sep 17 00:00:00 2001
From: Caroline Tice <cmtice at google.com>
Date: Fri, 8 Aug 2025 14:52:02 -0700
Subject: [PATCH 2/2] Update premerge metrics to collect metrics for libc++ 3
 stages.

---
 .ci/metrics/metrics.py | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/.ci/metrics/metrics.py b/.ci/metrics/metrics.py
index 26fdeef1913ab..ec762f65bf85c 100644
--- a/.ci/metrics/metrics.py
+++ b/.ci/metrics/metrics.py
@@ -28,7 +28,10 @@
 # Lists the Github workflows we want to track. Maps the Github job name to
 # the metric name prefix in grafana.
 # This metric name is also used as a key in the job->name map.
-GITHUB_WORKFLOW_TO_TRACK = {"CI Checks": "github_llvm_premerge_checks"}
+GITHUB_WORKFLOW_TO_TRACK = {
+    "CI Checks": "github_llvm_premerge_checks",
+    "Build and Test libc++": "github_libc++_premerge_checks",
+}
 
 # Lists the Github jobs to track for a given workflow. The key is the stable
 # name (metric name) of the workflow (see GITHUB_WORKFLOW_TO_TRACK).
@@ -39,6 +42,11 @@
         "Build and Test Linux": "premerge_linux",
         "Build and Test Windows": "premerge_windows",
     }
+    "github_libc++_premerge_checks": {
+        "libc++ Stage1 Testing": "premerge_libcxx_stage1",
+        "libc++ Stage2 Testing": "premerge_libcxx_stage2",
+        "libc++ Stage3 Testing": "premerge_libcxx_stage3",
+    }
 }
 
 # The number of workflows to pull when sampling Github workflows.



More information about the llvm-commits mailing list