Skip to content

Commit 03244ae

Browse files
fix check and log message
1 parent c4ccc21 commit 03244ae

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/bean-instantiations-startup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
- name: Extract and validate startup bean instantiation metrics
7979
run: |
8080
# Configuration variables
81-
STARTUP_LOG_PATTERN="Bean instantiation graph exported to startupBeans\.dot \(([0-9]+) edges, longest dependency chain: \[([^\]]*)\]\)"
81+
STARTUP_LOG_PATTERN="Bean instantiation graph exported to startupBeans\.dot \(([0-9]+) edges, longest dependency chain length: \[([^\]]*)\]\)"
8282
MIN_INSTANTIATED_BEANS=20
8383
MAX_INSTANTIATED_BEANS=94
8484
MAX_STARTUP_DEPENDENCY_CHAIN_LENGTH=9

src/main/java/de/tum/cit/aet/artemis/core/config/BeanInstantiationTracer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void printDependencyGraph() {
9797
out.printf(" \"%s\" -> \"%s\";%n", edge.first(), edge.second());
9898
}
9999
out.println("}");
100-
log.debug("Bean instantiation graph exported to startupBeans.dot ({} edges, longest dependency chain: {})", edges.size(), longestChain.get());
100+
log.debug("Bean instantiation graph exported to startupBeans.dot ({} edges, longest dependency chain length: {})", edges.size(), longestChain.get().size());
101101
}
102102
catch (IOException e) {
103103
log.error("Failed to write startupBeans.dot", e);
@@ -110,7 +110,6 @@ public void printDependencyGraph() {
110110
log.debug("Startup long bean instantiation chain {} (length {}): {}", i++, reversed.size(), String.join(" → ", reversed));
111111
}
112112

113-
// Log the single longest chain
114113
List<String> longest = longestChain.get();
115114
if (!longest.isEmpty()) {
116115
List<String> forward = new ArrayList<>(longest);

0 commit comments

Comments
 (0)