From 0470a9568dbf15b2d3cf45976786adeac322b62a Mon Sep 17 00:00:00 2001 From: "Aleksei.Cherepanov" Date: Mon, 13 Feb 2023 16:27:47 +0100 Subject: [PATCH] [Maven] Fix flaky test-plugins Logging in maven has been slightly changed, so it no longer matches the old patterns. It was flaky because sometimes it loaded the plexus artifact (and sometimes it didn't) and such event was shown in the log with different log message --- .../src/it/test-plugins/verify.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-plugins/verify.groovy b/libraries/tools/kotlin-maven-plugin-test/src/it/test-plugins/verify.groovy index edb1cc4c369..7521a6ba576 100644 --- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-plugins/verify.groovy +++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-plugins/verify.groovy @@ -26,10 +26,10 @@ State state = buildLogFile.readLines().collect { it.replaceAll("\\u001b[^m]*m", def m = pattern.matcher(line) if (m.find()) { acc.currentPlugin = m.group(1) - } else if (line.startsWith("[INFO] Downloaded:") || - line.startsWith("[INFO] Downloading:") || - line.startsWith("Downloaded:") || - line.startsWith("Downloading:") || + } else if (line.startsWith("[INFO] Downloaded") || + line.startsWith("[INFO] Downloading") || + line.startsWith("Downloaded") || + line.startsWith("Downloading") || line.startsWith("[INFO] PERF:")) { // ignore line } else if (acc.currentPlugin == "kotlin-maven-plugin") {