gitlab_quality-test_tooling 3.19.1 → 3.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5fb5356dd9a684e76ccf4de875f66d77ee818bef86d1cd9792eb8db9d688cfe9
4
- data.tar.gz: 75e5afd55644a124fbf09f4fe0edd8f298fb2614f54dd0884a8a18002d2fe6d8
3
+ metadata.gz: 16e76c285873fa517a3432827f9feae3b05e619532f5be6999fd59263abc71c6
4
+ data.tar.gz: 89cef526698da6a68dc7f814b846535a1d6967940acecaa6dcb87562b570a054
5
5
  SHA512:
6
- metadata.gz: 35ff364a8fbbd437bef5e94a6bedccf66b8288965fd6c136ce6c21baa3d9052ac44281e54dd3a11eb92dae156f6e9e123756fa526ddb24fd39c00450b1d7187e
7
- data.tar.gz: 1de79819dcb8aadf7ef3994f54387008ff9d1e15ea4a0b0590caebe9cf2af99a2821dcc7008b7bff5b2df9da69d4103622624983ce7434272ec2e5663c1e6695
6
+ metadata.gz: b51b8e300fd0a6ef9edcd0463953e30805f4299fa784d19ecbb37482c4cd221a4a80d0d336c91ab9b8fcd65823dce11407613134176a31df2f2cda09333745cc
7
+ data.tar.gz: 78af01f5df6c8dc147ec0ded7353926fc7810b21feeda0e1c872924f738b6041deff8df8bcc55a5333edae3f669d85745d615354ab82403a8a4bef71f469454d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab_quality-test_tooling (3.19.1)
4
+ gitlab_quality-test_tooling (3.20.1)
5
5
  activesupport (>= 7.0)
6
6
  amatch (~> 0.4.1)
7
7
  fog-google (~> 1.24, >= 1.24.1)
@@ -12,6 +12,14 @@ module GitlabQuality
12
12
  DEFAULT_BATCH_SIZE = 100_000
13
13
  LOG_PREFIX = "[ClickHouse]"
14
14
 
15
+ # ClickHouse keeps executing a statement after the HTTP client hangs
16
+ # up, so a short read timeout turns a slow-but-succeeding query into a
17
+ # failed job while the work completes server-side anyway. Every caller
18
+ # is a batch job that can afford to wait for the real result; none is
19
+ # interactive.
20
+ OPEN_TIMEOUT = 10
21
+ READ_TIMEOUT = 600
22
+
15
23
  def initialize(url:, database:, username: nil, password: nil, logger: ::Logger.new($stdout, level: 1))
16
24
  @url = url
17
25
  @database = database
@@ -102,7 +110,9 @@ module GitlabQuality
102
110
  body: body,
103
111
  headers: { "Content-Type" => content_type },
104
112
  query: { database: database, **query_opts }.compact,
105
- basic_auth: !!(username && password) ? { username: username, password: password } : nil
113
+ basic_auth: !!(username && password) ? { username: username, password: password } : nil,
114
+ open_timeout: OPEN_TIMEOUT,
115
+ read_timeout: READ_TIMEOUT
106
116
  }.compact)
107
117
  end
108
118
  end
@@ -14,7 +14,7 @@
14
14
  -- Parameter substitution uses {name} braces, replaced via gsub in
15
15
  -- TestHealthScoreSnapshotter#build_sql after each value passes a regex check:
16
16
  -- {snapshot_date} : the date stamp for this run, e.g. '2026-05-07'
17
- -- {pillar} : quarantine | slow (names the view and tags the rows)
17
+ -- {pillar} : quarantine | slow | flaky (names the view and tags the rows)
18
18
  INSERT INTO code_coverage.test_health_score_history
19
19
  (snapshot_date, level, `group`, stage, section, pillar, score, rag_status, formula_version, factors)
20
20
  SELECT
@@ -24,8 +24,7 @@ module GitlabQuality
24
24
 
25
25
  # One INSERT per pillar. The token names the view
26
26
  # (test_health_scores_<pillar>) and tags the row's `pillar` column.
27
- # Flaky is excluded until it is scored live.
28
- PILLARS = %w[quarantine slow].freeze
27
+ PILLARS = %w[quarantine slow flaky].freeze
29
28
 
30
29
  DATE_PATTERN = /\A\d{4}-\d{2}-\d{2}\z/
31
30
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GitlabQuality
4
4
  module TestTooling
5
- VERSION = "3.19.1"
5
+ VERSION = "3.20.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_quality-test_tooling
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.19.1
4
+ version: 3.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab Quality
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-07-02 00:00:00.000000000 Z
11
+ date: 2026-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control