gitlab_quality-test_tooling 3.20.0 → 3.20.2
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6d63cdc47b44dd111330eaffb4e37c889d8785eb395094eec7398c97870f889f
|
|
4
|
+
data.tar.gz: bbe3389c97486d566bb8a948da3a88cf94633857d8eee5ad9fbb53e6ba38aef5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 81d28ad1a352c06db086546c5eef55f9f82aa982904e4f3e03ab1c7e509d0a18fde12f6e77e7a09eda3c549dd15ff1d0090f532a2da60eda68d31eba77cee93f
|
|
7
|
+
data.tar.gz: 8aeb35ec5c0fc54e86c9cb029f44c62feb9dbc1e5031f6d4aaba07a9a3e3791a739841da7a1080bf1c28c05c81baee57a42742dca5ab60d1420e8e74360b9b9c
|
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
|
|
@@ -35,7 +35,7 @@ module GitlabQuality
|
|
|
35
35
|
private
|
|
36
36
|
|
|
37
37
|
def find_testcase(test)
|
|
38
|
-
testcase =
|
|
38
|
+
testcase = find_issue(test)
|
|
39
39
|
return unless testcase
|
|
40
40
|
|
|
41
41
|
if testcase_needs_updating?(testcase, test)
|
|
@@ -45,20 +45,6 @@ module GitlabQuality
|
|
|
45
45
|
end
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
-
def find_testcase_by_iid(test)
|
|
49
|
-
iid = testcase_iid_from_url(test.testcase)
|
|
50
|
-
|
|
51
|
-
return unless iid
|
|
52
|
-
|
|
53
|
-
find_issue_by_iid(iid)
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
def testcase_iid_from_url(url)
|
|
57
|
-
return warn(%(\nPlease update #{url} to test case url)) if url&.include?('/-/issues/')
|
|
58
|
-
|
|
59
|
-
url && url.split('/').last.to_i
|
|
60
|
-
end
|
|
61
|
-
|
|
62
48
|
def new_issue_description(test)
|
|
63
49
|
quarantine_section = test.quarantine? && test.quarantine_issue ? "\n\n### Quarantine issue\n\n#{test.quarantine_issue}" : ''
|
|
64
50
|
|
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.20.
|
|
4
|
+
version: 3.20.2
|
|
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-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: climate_control
|