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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/gitlab_quality/test_tooling/click_house/client.rb +11 -1
- data/lib/gitlab_quality/test_tooling/code_coverage/click_house/test_health_score_snapshot.sql +1 -1
- data/lib/gitlab_quality/test_tooling/code_coverage/click_house/test_health_score_snapshotter.rb +1 -2
- data/lib/gitlab_quality/test_tooling/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16e76c285873fa517a3432827f9feae3b05e619532f5be6999fd59263abc71c6
|
|
4
|
+
data.tar.gz: 89cef526698da6a68dc7f814b846535a1d6967940acecaa6dcb87562b570a054
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b51b8e300fd0a6ef9edcd0463953e30805f4299fa784d19ecbb37482c4cd221a4a80d0d336c91ab9b8fcd65823dce11407613134176a31df2f2cda09333745cc
|
|
7
|
+
data.tar.gz: 78af01f5df6c8dc147ec0ded7353926fc7810b21feeda0e1c872924f738b6041deff8df8bcc55a5333edae3f669d85745d615354ab82403a8a4bef71f469454d
|
data/Gemfile.lock
CHANGED
|
@@ -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
|
data/lib/gitlab_quality/test_tooling/code_coverage/click_house/test_health_score_snapshot.sql
CHANGED
|
@@ -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
|
data/lib/gitlab_quality/test_tooling/code_coverage/click_house/test_health_score_snapshotter.rb
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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.
|
|
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-
|
|
11
|
+
date: 2026-07-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: climate_control
|