gitlab-exporter 11.13.0 → 11.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fec1d36895f9b8b24b201cf8f1a3f5a5299c3c80ca73788a1e047f1813f9f4e9
4
- data.tar.gz: 764173307e7039155b008d45db8176926af5d31f2339cc2dba55dd5740e123e2
3
+ metadata.gz: 50218ad0f2683c122db031d1dcadc7f53d17b9336999f1a3469b397282204b59
4
+ data.tar.gz: cf4dde17a48c734c00233fd74438058d7e94a9312c5619eb6eabdb9c3235d53d
5
5
  SHA512:
6
- metadata.gz: add19c72c5fca192cad268b9ca2bfbad9233fed24e7bd72e12e5b1266f95472e234ee25e4e4d76c22867b38b0a26e0f8bcf0344c5dddd35c8b37d072064c7442
7
- data.tar.gz: 6fb8139608431e6e4d166c326f8f8930aad28bad6daf947d5ade08c32181b865b5d94fa0685cf92af14e9b964e98f09bfcfe5461f7d342eeae3b7ece51702fa8
6
+ metadata.gz: c3e8259f3bf5660aa80b08ab44cf77eff1304ae494508d8faa6a0e45184ca96fa69aae03fb6ddbfcd4bcb1d12c1746342c87333268c65101fd0c2b121243eda7
7
+ data.tar.gz: 14f46e6a42d6cd0776f0687cee9f0091ceff4bcd4b3683692ca275b14e20c1f5e4be4b8be26dcc896ac37cb1ff235b7be7989979949acf675c476452f012de27
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab-exporter (11.13.0)
4
+ gitlab-exporter (11.15.0)
5
5
  connection_pool (= 2.2.5)
6
6
  faraday (~> 1.8.0)
7
7
  pg (= 1.2.3)
@@ -135,8 +135,8 @@ module GitLab
135
135
  container_repositories_migration_pending: {
136
136
  select: :container_repositories,
137
137
  where: <<~SQL
138
- migration_state <> 'import_done'
139
- AND created_at < '2022-01-23 00:00:00'
138
+ migration_state <> 'import_done'
139
+ AND created_at < '2022-01-23 00:00:00'
140
140
  SQL
141
141
  },
142
142
  container_repositories_pre_importing: {
@@ -165,21 +165,103 @@ module GitLab
165
165
  },
166
166
  container_repositories_migration_all_free: {
167
167
  select: :container_repositories,
168
- where: "migration_plan = 'free'"
168
+ where: <<~SQL
169
+ migration_plan IN ('free', 'early_adopter')
170
+ OR migration_plan IS NULL
171
+ SQL
169
172
  },
170
173
  container_repositories_migration_pending_free: {
171
174
  select: :container_repositories,
172
175
  where: <<~SQL
173
- migration_state <> 'import_done'
176
+ migration_state <> 'import_done'
174
177
  AND created_at < '2022-01-23 00:00:00'
175
- AND migration_plan = 'free'
178
+ AND (migration_plan IN ('free', 'early_adopter')
179
+ OR migration_plan IS NULL)
176
180
  SQL
177
181
  },
178
182
  container_repositories_import_done_free: {
179
183
  select: :container_repositories,
180
184
  where: <<~SQL
181
- migration_state = 'import_done'
182
- AND migration_plan = 'free'
185
+ migration_state = 'import_done'
186
+ AND (migration_plan IN ('free', 'early_adopter')
187
+ OR migration_plan IS NULL)
188
+ SQL
189
+ },
190
+ container_repositories_stalled_pre_importing: {
191
+ select: :container_repositories,
192
+ where: <<~SQL
193
+ migration_state = 'pre_importing'
194
+ AND (COALESCE(migration_pre_import_started_at, '01-01-1970') < (now() - INTERVAL '10 minutes'))
195
+ SQL
196
+ },
197
+ container_repositories_stalled_pre_import_done: {
198
+ select: :container_repositories,
199
+ where: <<~SQL
200
+ migration_state = 'pre_import_done'
201
+ AND (COALESCE(migration_pre_import_done_at, '01-01-1970') < (now() - INTERVAL '5 minutes'))
202
+ SQL
203
+ },
204
+ container_repositories_stalled_importing: {
205
+ select: :container_repositories,
206
+ where: <<~SQL
207
+ migration_state = 'importing'
208
+ AND (COALESCE(migration_import_started_at, '01-01-1970') < (now() - INTERVAL '5 minutes'))
209
+ SQL
210
+ },
211
+ container_repositories_skipped_not_in_plan: {
212
+ select: :container_repositories,
213
+ where: <<~SQL
214
+ migration_state = 'import_skipped'
215
+ AND migration_skipped_reason = 0
216
+ SQL
217
+ },
218
+ container_repositories_skipped_too_many_retries: {
219
+ select: :container_repositories,
220
+ where: <<~SQL
221
+ migration_state = 'import_skipped'
222
+ AND migration_skipped_reason = 1
223
+ SQL
224
+ },
225
+ container_repositories_skipped_too_many_tags: {
226
+ select: :container_repositories,
227
+ where: <<~SQL
228
+ migration_state = 'import_skipped'
229
+ AND migration_skipped_reason = 2
230
+ SQL
231
+ },
232
+ container_repositories_skipped_deny_list: {
233
+ select: :container_repositories,
234
+ where: <<~SQL
235
+ migration_state = 'import_skipped'
236
+ AND migration_skipped_reason = 3
237
+ SQL
238
+ },
239
+ container_repositories_skipped_canceled: {
240
+ select: :container_repositories,
241
+ where: <<~SQL
242
+ migration_state = 'import_skipped'
243
+ AND migration_skipped_reason IN (4, 8)
244
+ SQL
245
+ },
246
+ container_repositories_skipped_not_found: {
247
+ select: :container_repositories,
248
+ where: <<~SQL
249
+ migration_state = 'import_skipped'
250
+ AND migration_skipped_reason = 5
251
+ SQL
252
+ },
253
+ container_repositories_skipped_native: {
254
+ select: :container_repositories,
255
+ where: <<~SQL
256
+ migration_state = 'import_skipped'
257
+ AND migration_skipped_reason = 6
258
+ SQL
259
+ },
260
+ container_repositories_skipped_force_canceled: {
261
+ select: :container_repositories,
262
+ where: <<~SQL
263
+ migration_state = 'import_skipped'
264
+ AND migration_skipped_reason = 7
183
265
  SQL
184
266
  }
185
267
  }.freeze
@@ -1,5 +1,5 @@
1
1
  module GitLab
2
2
  module Exporter
3
- VERSION = "11.13.0".freeze
3
+ VERSION = "11.15.0".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-exporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.13.0
4
+ version: 11.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Carranza