ci-queue 0.36.0 → 0.38.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: 1fcc9b71596a6702c28b4938fc0ab8582d70f1282c31c984649bf6e7f80fb62c
4
- data.tar.gz: 49b3915af79303b6c33f9157ac0aaa3d23cb3c403b772e74ef6ec7171f28107f
3
+ metadata.gz: 2d2c7f2bbcfac416404fdccc8e0ef588c4ea7e118e1df22ec2e9ab35df91b07e
4
+ data.tar.gz: d0ef379649b9918571d62b38c9c891403b65739f125a6d895dfba32f7f4ba327
5
5
  SHA512:
6
- metadata.gz: c7e8ed86fc7fd156f3fc728b2dba2c4ca41bf89d17b499abedb1bb214961468eb4410e2dff9423133539c41698f22ebfc025540847e3774e1666f4d66ac87b86
7
- data.tar.gz: 42724296691e013ecf2e26d0fd6218e7bc8e8a31fe7b9794ae1d6afbe4869cad4cca7a3639fcfafe64483041ff91ab6d5e1e1624e8fe5bddab7ffeea9a075ce4
6
+ metadata.gz: b01ba206b10a05262680a9e2b199b5710b584e36b746ae521d4bcafcb9e324c9abc0b5704a7e634393cdeca3fe32bfb2cfe3e6aa4489114907cb1638b428ab82
7
+ data.tar.gz: 14dde136243566c2d1a9c6e0bb2a594921f04399bcde2598ad95efd0127288e345b237e30d4e057d2038a8c236e0e723ae5b4b2c00c9d258ad13637915f82288
@@ -23,7 +23,7 @@ module CI
23
23
  record_stats(stats)
24
24
  end
25
25
 
26
- def record_success(id, stats: nil)
26
+ def record_success(id, stats: nil, skip_flaky_record: false)
27
27
  error_reports.delete(id)
28
28
  record_stats(stats)
29
29
  end
@@ -47,13 +47,13 @@ module CI
47
47
  nil
48
48
  end
49
49
 
50
- def record_success(id, stats: nil)
50
+ def record_success(id, stats: nil, skip_flaky_record: false)
51
51
  error_reports_deleted_count, requeued_count, _ = redis.pipelined do |pipeline|
52
52
  pipeline.hdel(key('error-reports'), id.dup.force_encoding(Encoding::BINARY))
53
53
  pipeline.hget(key('requeues-count'), id.b)
54
54
  record_stats(stats, pipeline: pipeline)
55
55
  end
56
- record_flaky(id) if error_reports_deleted_count.to_i > 0 || requeued_count.to_i > 0
56
+ record_flaky(id) if !skip_flaky_record && (error_reports_deleted_count.to_i > 0 || requeued_count.to_i > 0)
57
57
  nil
58
58
  end
59
59
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CI
4
4
  module Queue
5
- VERSION = '0.36.0'
5
+ VERSION = '0.38.0'
6
6
  DEV_SCRIPTS_ROOT = ::File.expand_path('../../../../../redis', __FILE__)
7
7
  RELEASE_SCRIPTS_ROOT = ::File.expand_path('../redis', __FILE__)
8
8
  end
@@ -52,7 +52,7 @@ module Minitest
52
52
  if (test.failure || test.error?) && !test.skipped?
53
53
  build.record_error("#{test.klass}##{test.name}", dump(test), stats: stats)
54
54
  else
55
- build.record_success("#{test.klass}##{test.name}", stats: stats)
55
+ build.record_success("#{test.klass}##{test.name}", stats: stats, skip_flaky_record: test.skipped?)
56
56
  end
57
57
  end
58
58
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci-queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.0
4
+ version: 0.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-03 00:00:00.000000000 Z
11
+ date: 2023-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  - !ruby/object:Gem::Version
240
240
  version: '0'
241
241
  requirements: []
242
- rubygems_version: 3.4.20
242
+ rubygems_version: 3.4.21
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: Distribute tests over many workers using a queue