[llvm] [CI] Always upload queue/running count (PR #134814)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 8 01:57:10 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r HEAD~1...HEAD .ci/metrics/metrics.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- metrics.py 2025-04-08 08:52:57.000000 +0000
+++ metrics.py 2025-04-08 08:56:44.720948 +0000
@@ -283,13 +283,13 @@
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
+ 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()
``````````
</details>
https://github.com/llvm/llvm-project/pull/134814
More information about the llvm-commits
mailing list