mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-14 17:06:38 +00:00
[CI] Always upload queue/running count (#134814)
Before this commit, we only pushed a queue/running count when the value was not zero. This makes building Grafana alerting a bit harder. Changing this to always upload a value for watched workflows.
This commit is contained in:
parent
c23e1cb936
commit
fe4f666363
@ -282,6 +282,13 @@ def github_get_metrics(
|
||||
queued_count = collections.Counter()
|
||||
running_count = collections.Counter()
|
||||
|
||||
# Initialize all the counters to 0 so we report 0 when no job is queued
|
||||
# or running.
|
||||
for wf_name, wf_metric_name in GITHUB_WORKFLOW_TO_TRACK.items():
|
||||
for job_name, job_metric_name in GITHUB_JOB_TO_TRACK[wf_metric_name].items():
|
||||
queued_count[wf_metric_name + "_" + job_metric_name] = 0
|
||||
running_count[wf_metric_name + "_" + job_metric_name] = 0
|
||||
|
||||
# The list of workflows this iteration will process.
|
||||
# MaxSize = GITHUB_WORKFLOWS_MAX_PROCESS_COUNT
|
||||
workflow_seen_as_completed = set()
|
||||
|
Loading…
x
Reference in New Issue
Block a user