From d5faa5f51f0aa82fba17513528ea9725cd5e471a Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 3 Jun 2025 12:48:43 +0200 Subject: Invocation server: also show counts in headings Often, the simple number, e.g., for failed actions can already give valuable information. For example, when investigating flakiness, the count of failed actions already gives a hint whether a change increased or decreased flakiness which can be valuable before even investigating if the nature of the failure has changed. As we have that information available and an additional number in a heading does not clutter the page too much, let's just show it. --- doc/invocations-http-server/server.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/invocations-http-server/server.py') diff --git a/doc/invocations-http-server/server.py b/doc/invocations-http-server/server.py index 3ac1043f..f9f57aff 100755 --- a/doc/invocations-http-server/server.py +++ b/doc/invocations-http-server/server.py @@ -519,6 +519,7 @@ class InvocationServer: else: failed_build_actions.append(action_data(k, v, graph)) params["failed_actions"] = failed_build_actions + failed_test_actions + params["failed_actions_count"] = len(params["failed_actions"]) # non-failed actions with output output_actions = [] @@ -528,6 +529,7 @@ class InvocationServer: actions_considered.add(k) output_actions.append(action_data(k, v, graph)) params["output_actions"] = output_actions + params["output_actions_count"] = len(output_actions) # longest running non-cached non-failed actions without output candidates = [] @@ -554,6 +556,7 @@ class InvocationServer: action["name_prefix"] = "%5.1fs" % (t,) non_cached.append(action) params["non_cached"] = non_cached + params["non_cached_count"] = len(non_cached) start_time = profile.get("start time") build_start_time = profile.get("build start time") build_stop_time = profile.get("build stop time") -- cgit v1.2.3