This is an automated email from the ASF dual-hosted git repository.

Amar3tto pushed a commit to branch fix-probers
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/fix-probers by this push:
     new 430b1df220f Fix groovy
430b1df220f is described below

commit 430b1df220f85c4c54f96d2983bcb7e5368e2aeb
Author: Vitaly Terentyev <[email protected]>
AuthorDate: Sat Jul 11 00:19:43 2026 +0400

    Fix groovy
---
 .test-infra/metrics/src/test/groovy/ProberTests.groovy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.test-infra/metrics/src/test/groovy/ProberTests.groovy 
b/.test-infra/metrics/src/test/groovy/ProberTests.groovy
index 93ff97e6783..6f9befc2c20 100644
--- a/.test-infra/metrics/src/test/groovy/ProberTests.groovy
+++ b/.test-infra/metrics/src/test/groovy/ProberTests.groovy
@@ -36,14 +36,14 @@ class ProberTests {
     def dashboardNames = allDashboards.title
     // Validate at least one expected dashboard exists
     assert dashboardNames.contains('Post-commit Test Reliability') : 'Expected 
dashboard does not exist'
-    assert dashboardNames.size > 0 : "No dashboards found. Check Grafana 
dashboard initialization script."
+    assert dashboardNames.size() > 0 : "No dashboards found. Check Grafana 
dashboard initialization script."
   }
 
   @Test
   void CheckGrafanaStalenessAlerts() {
     def alertsJson = 
"${grafanaEndpoint}/api/alerts?dashboardQuery=Source%20Data%20Freshness".toURL().text
     def alerts = new JsonSlurper().parseText(alertsJson)
-    assert alerts.size > 0
+    assert alerts.size() > 0
     alerts.each { alert ->
       assert alert.state == 'ok' : "Input data is stale! ${alert}\n   See: 
${grafanaEndpoint}/d/data-freshness"
     }

Reply via email to