From 27a50cab21f754ac1009b83e7de247f5aadf64d1 Mon Sep 17 00:00:00 2001 From: Prudhvi Godithi Date: Fri, 14 Jun 2024 11:19:57 -0700 Subject: [PATCH] New label to gradleCheckFlakyTestDetector Signed-off-by: Prudhvi Godithi --- build.gradle | 2 +- ...tChecker.groovy => gradleCheckFlakyTestDetector.groovy} | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) rename vars/{gradleCheckFlakyTestChecker.groovy => gradleCheckFlakyTestDetector.groovy} (91%) diff --git a/build.gradle b/build.gradle index 8613d4a2..b5404de2 100644 --- a/build.gradle +++ b/build.gradle @@ -127,7 +127,7 @@ jacocoTestReport { } } -String version = '6.5.0' +String version = '6.5.1' task updateVersion { doLast { diff --git a/vars/gradleCheckFlakyTestChecker.groovy b/vars/gradleCheckFlakyTestDetector.groovy similarity index 91% rename from vars/gradleCheckFlakyTestChecker.groovy rename to vars/gradleCheckFlakyTestDetector.groovy index 68a3f68d..c528c8d3 100644 --- a/vars/gradleCheckFlakyTestChecker.groovy +++ b/vars/gradleCheckFlakyTestDetector.groovy @@ -7,6 +7,11 @@ * compatible open source license. */ +/** Library to detect Gradle Check flaky tests and create GitHub issue in OpenSearch repository. + @param Map args = [:] args A map of the following parameters + @param args.issueLabels - GitHub labels that will be added to the issue created in OpenSearch repository. + */ + import gradlecheck.FetchPostMergeFailedTestClass import gradlecheck.FetchPostMergeTestGitReference import gradlecheck.FetchPostMergeFailedTestName @@ -49,7 +54,7 @@ void call(Map args = [:]) { repoUrl: "https://github.com/opensearch-project/OpenSearch", issueTitle: "[AUTOCUT] Gradle Check Flaky Test Report for ${failedTest}", issueBodyFile: "${failedTest}.md", - label: 'autocut,>test-failure', + label: "${args.issueLabels}", issueEdit: true ) }