[libcxx-commits] [libcxx] [llvm] [llvm][CI] Add metrics collection for libc++ premerge testing. (PR #152801)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Aug 22 11:14:07 PDT 2025
================
@@ -81,6 +90,139 @@ class GaugeMetric:
time_ns: int
+ at dataclass
+class AggregateMetric:
+ aggregate_name: str
+ aggregate_queue_time: int
+ aggregate_run_time: int
+ aggregate_status: int
+ workflow_id: int
+
+
+def create_and_append_libcxx_aggregates(
+ workflow_metrics: list[JobMetrics]) -> list[JobMetrics,AggregateMetric]:
+ """
+ Find libc++ JobMetric entries and create aggregate metrics for them.
+
+ Sort the libc++ JobMetric entries by workflow id, and for each workflow
+ id group them by stages. Create an aggreate metric for each stage for each
+ unique workflow id. Append each aggregate metric to the workflow_metrics
+ list.
+
+ How aggreates are computed:
+ queue time: Time from when first job in group is created until last job in
+ group has started.
+ run time: Time from when first job in group starts running until last job
+ in group finishes running.
+ status: logical 'or' of all the job statuses in the group.
----------------
cmtice wrote:
Done.
https://github.com/llvm/llvm-project/pull/152801
More information about the libcxx-commits
mailing list