From 46c57f70884828b3e96e9ac24545508f13964784 Mon Sep 17 00:00:00 2001 From: Graham Davison Date: Thu, 20 Jul 2023 11:40:44 -0700 Subject: [PATCH 1/2] Adds failure condition to TeamCity sweeper run to match region failures --- .teamcity/settings.kts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.teamcity/settings.kts b/.teamcity/settings.kts index d7c3f8f530f..e597075fa3b 100644 --- a/.teamcity/settings.kts +++ b/.teamcity/settings.kts @@ -447,6 +447,16 @@ object Sweeper : BuildType({ } } + failureConditions { + failOnText { + conditionType = BuildFailureOnText.ConditionType.REGEXP + pattern = """Sweeper Tests for region \(([-a-z0-9]+)\) ran unsuccessfully""" + failureMessage = """Sweeper failure for region "${'$'}1"""" + reverse = false + reportOnlyFirstMatch = false + } + } + features { feature { type = "JetBrains.SharedResources" From 2b122a496a3592428de38ab62492dd07cfeac4b0 Mon Sep 17 00:00:00 2001 From: Graham Davison Date: Thu, 20 Jul 2023 14:24:37 -0700 Subject: [PATCH 2/2] Fixes dependencies --- .teamcity/settings.kts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.teamcity/settings.kts b/.teamcity/settings.kts index e597075fa3b..b13c11ee525 100644 --- a/.teamcity/settings.kts +++ b/.teamcity/settings.kts @@ -2,6 +2,8 @@ import jetbrains.buildServer.configs.kotlin.* // ktlint-disable no-wildcard-impo import jetbrains.buildServer.configs.kotlin.buildFeatures.golang import jetbrains.buildServer.configs.kotlin.buildFeatures.notifications import jetbrains.buildServer.configs.kotlin.buildSteps.script +import jetbrains.buildServer.configs.kotlin.failureConditions.failOnText +import jetbrains.buildServer.configs.kotlin.failureConditions.BuildFailureOnText import jetbrains.buildServer.configs.kotlin.triggers.schedule import java.io.File import java.time.Duration