From 910cb549170c3ff9c0d8b92a7248d3610b0a5f05 Mon Sep 17 00:00:00 2001 From: Prudhvi Godithi Date: Fri, 14 Jun 2024 13:17:12 -0700 Subject: [PATCH] Rename the library to `gradleCheckFlakyTestDetector` and `flaky-test` label to created issue. (#445) 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..0b7cd4e0 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 ) }