Skip to content

Commit 14364a4

Browse files
New label to gradleCheckFlakyTestDetector
Signed-off-by: Prudhvi Godithi <pgodithi@amazon.com>
1 parent 31c876f commit 14364a4

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jacocoTestReport {
127127
}
128128
}
129129

130-
String version = '6.5.0'
130+
String version = '6.5.1'
131131

132132
task updateVersion {
133133
doLast {

src/gradlecheck/FetchPostMergeFailedTestClass.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class FetchPostMergeFailedTestClass {
6363
test_class_keyword_agg: [
6464
terms: [
6565
field: "test_class",
66-
size: 500
66+
size: 2
6767
]
6868
]
6969
]

vars/gradleCheckFlakyTestChecker.groovy renamed to vars/gradleCheckFlakyTestDetector.groovy

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
* compatible open source license.
88
*/
99

10+
/** Library to detect Gradle Check flaky tests and create GitHub issue in OpenSearch repository.
11+
@param Map args = [:] args A map of the following parameters
12+
@param args.issueLabels <required> - GitHub labels that will be added to the issue created in OpenSearch repository.
13+
*/
14+
1015
import gradlecheck.FetchPostMergeFailedTestClass
1116
import gradlecheck.FetchPostMergeTestGitReference
1217
import gradlecheck.FetchPostMergeFailedTestName
@@ -46,10 +51,10 @@ void call(Map args = [:]) {
4651
def markdownTable = new CreateMarkDownTable(failedTest, testData, testNameAdditionalPullRequests).createMarkdownTable()
4752
writeFile file: "${failedTest}.md", text: markdownTable
4853
createGithubIssue(
49-
repoUrl: "https://github.com/opensearch-project/OpenSearch",
54+
repoUrl: "https://github.com/prudhvigodithi/OpenSearch",
5055
issueTitle: "[AUTOCUT] Gradle Check Flaky Test Report for ${failedTest}",
5156
issueBodyFile: "${failedTest}.md",
52-
label: 'autocut,>test-failure',
57+
label: args.issueLabels,
5358
issueEdit: true
5459
)
5560
}

0 commit comments

Comments
 (0)