From 7a040ecc552d9afc7afc531031b3279bb91762ba Mon Sep 17 00:00:00 2001 From: Sayali Gaikawad Date: Fri, 25 Oct 2024 19:42:32 -0700 Subject: [PATCH] test Signed-off-by: Sayali Gaikawad --- src/utils/OpenSearchMetricsQuery.groovy | 1 + vars/updateIntegTestFailureIssues.groovy | 1 + 2 files changed, 2 insertions(+) diff --git a/src/utils/OpenSearchMetricsQuery.groovy b/src/utils/OpenSearchMetricsQuery.groovy index 9ee6172c..4162ed9d 100644 --- a/src/utils/OpenSearchMetricsQuery.groovy +++ b/src/utils/OpenSearchMetricsQuery.groovy @@ -29,6 +29,7 @@ class OpenSearchMetricsQuery { } def fetchMetrics(String query) { + this.script.println('Running query: '+ query) def response = script.sh( script: """ set -e diff --git a/vars/updateIntegTestFailureIssues.groovy b/vars/updateIntegTestFailureIssues.groovy index b8f2f5bf..f38bd0a1 100644 --- a/vars/updateIntegTestFailureIssues.groovy +++ b/vars/updateIntegTestFailureIssues.groovy @@ -52,6 +52,7 @@ void call(Map args = [:]) { if (!failedComponents.isEmpty() && failedComponents.contains(component.name)) { println("Integration test failed for ${component.name}, creating github issue") def testData = [] + println('Retrieving failed component data for '+ component.name) def queryData = componentIntegTestStatus.getComponentIntegTestFailedData(component.name) def totalHits = queryData.hits.hits.collect { it._source } totalHits.each { hit ->