[llvm] [CI] Support multiple jobs in metrics container (PR #124457)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 26 01:39:35 PST 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 f46eb1430992ba1abe246dfd0b4ccf8229fe0ab7...71c132d21dbd966762de906d18dd9a228475843a .ci/metrics/metrics.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- metrics.py	2025-01-26 09:34:35.000000 +0000
+++ metrics.py	2025-01-26 09:39:08.430501 +0000
@@ -258,13 +258,13 @@
         upload_metrics(current_metrics, grafana_metrics_userid, grafana_api_key)
         print(f"Uploaded {len(current_metrics)} metrics", file=sys.stderr)
 
         for workflow_metric in reversed(current_metrics):
             if isinstance(workflow_metric, JobMetrics):
-                workflows_to_track[workflow_metric.job_name] = (
-                    workflow_metric.workflow_id
-                )
+                workflows_to_track[
+                    workflow_metric.job_name
+                ] = workflow_metric.workflow_id
 
         time.sleep(SCRAPE_INTERVAL_SECONDS)
 
 
 if __name__ == "__main__":

``````````

</details>


https://github.com/llvm/llvm-project/pull/124457


More information about the llvm-commits mailing list