From 2410ba9ae4a32e3ad6b45ac49ea4ef970609d032 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9my=20Coutable?= <remy@rymai.me>
Date: Thu, 27 Jun 2024 17:04:01 +0200
Subject: [PATCH] auto-quarantine: Match interpolated test descriptions
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Rémy Coutable <remy@rymai.me>
---
 keeps/quarantine_flaky_tests.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/keeps/quarantine_flaky_tests.rb b/keeps/quarantine_flaky_tests.rb
index befbbe880126a..0318baca6c44c 100644
--- a/keeps/quarantine_flaky_tests.rb
+++ b/keeps/quarantine_flaky_tests.rb
@@ -31,8 +31,8 @@ module Keeps
   class QuarantineFlakyTests < ::Gitlab::Housekeeper::Keep
     MINIMUM_REMAINING_RATE = 25
     QUERY_URL_TEMPLATE = "https://gitlab.com/api/v4/projects/278964/issues/?order_by=updated_at&state=opened&labels[]=test&labels[]=failure::flaky-test&labels[]=%<flakiness_label>s&not[labels][]=QA&not[labels][]=quarantine&per_page=20"
-    # https://rubular.com/r/WnMxnDPvGGjoGE
-    EXAMPLE_LINE_REGEX = /\bit (?<description_and_metadata>[\w'",: ]*(?:,\n)?[\w\'",: ]+?) do$/m
+    # https://rubular.com/r/OoeQIEwPkL1m7E
+    EXAMPLE_LINE_REGEX = /\bit (?<description_and_metadata>[\w'",: \#\{\}]*(?:,\n)?[\w\'",: ]+?) do$/m
     FLAKINESS_LABELS = %w[flakiness::1 flakiness::2].freeze
 
     def each_change
-- 
GitLab