tkobayas commented on code in PR #6860:
URL: https://github.com/apache/incubator-kie/pull/6860#discussion_r3892386704
##########
script/ci/CiComputeBuildScopes.java:
##########
@@ -166,13 +167,30 @@ public static void main(String[] args) throws Exception {
writeLines(affectedOut, affected);
writeLines(changedOut, changed);
+ Map<String, Set<Path>> categories =
parseModuleCategories(cwd.resolve("pom.xml"), cwd);
+
+ for (String cat : categories.keySet()) {
+ Set<String> catAffected = affected.stream()
+ .filter(ga -> categorizeGa(ga, gaToDir,
categories).equals(cat))
+ .collect(Collectors.toCollection(LinkedHashSet::new));
+ writeLines(partitionedPath(affectedOut, cat), catAffected);
+ }
+
int total = gaToDir.size();
int ignored = total - affected.size() - upstreamAll.size();
- System.out.println("total=" + total
- + " changed=" + changed.size()
- + " affected=" + affected.size()
- + " upstream=" + upstreamAll.size()
- + " ignored=" + ignored);
+ StringBuilder sb = new StringBuilder();
+ sb.append("total=").append(total)
+ .append(" changed=").append(changed.size())
+ .append(" affected=").append(affected.size())
+ .append(" upstream=").append(upstreamAll.size())
+ .append(" ignored=").append(ignored);
+ for (String cat : categories.keySet()) {
+ long catCount = affected.stream()
+ .filter(ga -> categorizeGa(ga, gaToDir,
categories).equals(cat))
+ .count();
+ sb.append(" affected-").append(cat).append("=").append(catCount);
+ }
Review Comment:
outdated
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]