Skip to content

Commit c31b670

Browse files
authored
[llvmn][CI] Update libc++ metrics to count running & queued aggregates. (#155298)
Update the code that collects the workflow_queue_size and the running_workflow_count data to also collect those statistics for the libc++ aggregates.
1 parent f13a35c commit c31b670

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.ci/metrics/metrics.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,29 @@ def github_get_metrics(
336336
name_suffix = GITHUB_JOB_TO_TRACK[name_prefix][job.name]
337337
metric_name = name_prefix + "_" + name_suffix
338338

339+
ag_metric_name = None
340+
if libcxx_testing:
341+
job_key = None
342+
if job.name.find("stage1") != -1:
343+
job_key = "stage1"
344+
elif job.name.find("stage2") != -1:
345+
job_key = "stage2"
346+
elif job.name.find("stage3") != -1:
347+
job_key = "stage3"
348+
if job_key:
349+
ag_name = (
350+
name_prefix + "_" + GITHUB_JOB_TO_TRACK[name_prefix][job_key]
351+
)
352+
339353
if task.status != "completed":
340354
if job.status == "queued":
341355
queued_count[metric_name] += 1
356+
if libcxx_testing:
357+
queued_count[ag_name] += 1
342358
elif job.status == "in_progress":
343359
running_count[metric_name] += 1
360+
if libcxx_testing:
361+
running_count[ag_name] += 1
344362
continue
345363

346364
job_result = int(job.conclusion == "success" or job.conclusion == "skipped")

0 commit comments

Comments
 (0)