@@ -422,7 +422,7 @@ def pass1_parse(root: Path, tables: GraphTables, *, verbose: bool) -> dict[str,
422422 except ValueError :
423423 slow_sec = 0.0
424424 with _VerbosePassHeartbeats ("[pass1]" , verbose = verbose ):
425- if slow_sec > 0 :
425+ if verbose and slow_sec > 0 :
426426 time .sleep (slow_sec )
427427 for p in iter_java_source_files (root , ignore = ignore ):
428428 n_files += 1
@@ -1415,15 +1415,15 @@ def pass4_routes(
14151415 if verbose :
14161416 _verbose_stderr_line (_PASS4_START )
14171417 with _VerbosePassHeartbeats ("[pass4]" , verbose = verbose ):
1418-
1418+
14191419 for ast in asts .values ():
14201420 stats .routes_skipped_unresolved += ast .routes_skipped_unresolved
1421-
1421+
14221422 routes_by_id : dict [str , RouteRow ] = {}
14231423 exposes_seen : set [tuple [str , str ]] = set ()
1424-
1424+
14251425 http_kinds = frozenset ({"http_endpoint" , "http_consumer" })
1426-
1426+
14271427 for member in sorted (tables .members , key = lambda m : m .node_id ):
14281428 if member .decl .is_constructor :
14291429 continue
@@ -1504,13 +1504,13 @@ def pass4_routes(
15041504 strategy = decl .resolution_strategy ,
15051505 ),
15061506 )
1507-
1507+
15081508 tables .routes_rows = sorted (routes_by_id .values (), key = lambda r : r .id )
1509-
1509+
15101510 for row in tables .routes_rows :
15111511 stats .by_framework [row .framework ] += 1
15121512 stats .by_kind [row .kind ] += 1
1513-
1513+
15141514 n_routes = len (tables .routes_rows )
15151515 if n_routes :
15161516 stats .routes_resolved_pct = 100.0 * sum (
@@ -1522,7 +1522,7 @@ def pass4_routes(
15221522 else :
15231523 stats .routes_resolved_pct = 100.0
15241524 stats .routes_from_brownfield_pct = 0.0
1525-
1525+
15261526 by_layer : dict [str , int ] = defaultdict (int )
15271527 for row in tables .routes_rows :
15281528 by_layer [row .source_layer ] += 1
@@ -1752,7 +1752,7 @@ def _phantom_async_route_id(call: OutgoingCallDecl) -> str:
17521752 tables .call_edge_stats .async_calls_total += 1
17531753 tables .call_edge_stats .async_calls_by_client_kind [call .client_kind ] += 1
17541754 tables .call_edge_stats .async_calls_by_strategy [strategy ] += 1
1755-
1755+
17561756 tables .routes_rows = sorted (route_rows , key = lambda r : r .id )
17571757 tables .client_rows = sorted (tables .client_rows , key = lambda c : c .id )
17581758 tables .declares_client_rows = sorted (
@@ -2024,7 +2024,7 @@ def _micro_factor(member: MemberEntry | None) -> float:
20242024 tables .call_edge_stats .http_calls_match_breakdown [row .match ] += 1
20252025 if row .match == "cross_service" :
20262026 tables .call_edge_stats .cross_service_calls_total += 1
2027-
2027+
20282028 for row in tables .async_call_rows :
20292029 if row .match != "unresolved" :
20302030 continue
@@ -2070,7 +2070,7 @@ def _micro_factor(member: MemberEntry | None) -> float:
20702070 tables .call_edge_stats .async_calls_match_breakdown [row .match ] += 1
20712071 if row .match == "cross_service" :
20722072 tables .call_edge_stats .cross_service_calls_total += 1
2073-
2073+
20742074 inbound_route_ids = {r .route_id for r in tables .http_call_rows } | {r .route_id for r in tables .async_call_rows }
20752075 tables .routes_rows = sorted (
20762076 [
0 commit comments