ci-queue 0.36.0 → 0.37.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: 19b41ce5e21a08d1bf7396bd3fbbebb35d3a41b4a7dd64117f087457fb402803
4
+ data.tar.gz: 0b65846e8be38fe114d2ed9a29c8e6438d8ef20198eef0f03cf24898b24849c8
5
5
  SHA512:
6
- metadata.gz: c7e8ed86fc7fd156f3fc728b2dba2c4ca41bf89d17b499abedb1bb214961468eb4410e2dff9423133539c41698f22ebfc025540847e3774e1666f4d66ac87b86
7
- data.tar.gz: 42724296691e013ecf2e26d0fd6218e7bc8e8a31fe7b9794ae1d6afbe4869cad4cca7a3639fcfafe64483041ff91ab6d5e1e1624e8fe5bddab7ffeea9a075ce4
6
+ metadata.gz: 9868a90570148e6222ddc962ee66a5f58a2c8d176ea981a24ac819c9955cb30e8c73589dd4fac1e25616a0d0b9e92d375f61c4ebfdd185db867f3a000a742d3e
7
+ data.tar.gz: 97c4b3e36513c7320ff580365c324b0407622c1be45124df82607c8517470e92e8a308144eb9ecfac2ec2ea12a0d3196a414dc9ee4322c86792830d8ebde8e97
@@ -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.37.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.37.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-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler