From a61f8bb60c87d41fadcf098419b36238f980dd2d Mon Sep 17 00:00:00 2001 From: Subhobrata Dey Date: Thu, 21 Mar 2024 21:13:06 +0000 Subject: [PATCH 1/2] fix minor bug in lock handler Signed-off-by: Subhobrata Dey --- .../kotlin/org/opensearch/alerting/MonitorRunnerService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alerting/src/main/kotlin/org/opensearch/alerting/MonitorRunnerService.kt b/alerting/src/main/kotlin/org/opensearch/alerting/MonitorRunnerService.kt index 0763bcae4..418e20a8e 100644 --- a/alerting/src/main/kotlin/org/opensearch/alerting/MonitorRunnerService.kt +++ b/alerting/src/main/kotlin/org/opensearch/alerting/MonitorRunnerService.kt @@ -313,7 +313,7 @@ object MonitorRunnerService : JobRunner, CoroutineScope, AbstractLifecycleCompon runJob(job, periodStart, periodEnd, false) } finally { monitorCtx.client!!.suspendUntil { monitorCtx.lockService!!.release(lock, it) } - logger.debug("lock ${lock!!.lockId} released") + logger.debug("lock ${lock?.lockId} released") } } } @@ -332,7 +332,7 @@ object MonitorRunnerService : JobRunner, CoroutineScope, AbstractLifecycleCompon runJob(job, periodStart, periodEnd, false) } finally { monitorCtx.client!!.suspendUntil { monitorCtx.lockService!!.release(lock, it) } - logger.debug("lock ${lock!!.lockId} released") + logger.debug("lock ${lock?.lockId} released") } } } From 53533276af5d63675fdd66c5b0d0b292103c03d9 Mon Sep 17 00:00:00 2001 From: Subhobrata Dey Date: Tue, 16 Apr 2024 18:48:03 +0000 Subject: [PATCH 2/2] dummy commit Signed-off-by: Subhobrata Dey --- .github/workflows/test-workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-workflow.yml b/.github/workflows/test-workflow.yml index ebc4c2cec..0be68fc07 100644 --- a/.github/workflows/test-workflow.yml +++ b/.github/workflows/test-workflow.yml @@ -52,7 +52,7 @@ jobs: cp ./alerting/build/distributions/*.zip alerting-artifacts # This step uses the codecov-action Github action: https://github.com/codecov/codecov-action - name: Upload Coverage Report - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} # This step uses the upload-artifact Github action: https://github.com/actions/upload-artifact