ci-queue 0.35.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: 808a26c7002b41c217b692070da88f5a10704712f226d0ddb73d6b0478ea3ffc
4
- data.tar.gz: 5feede91a5b47c6e053bb2a9b193872cc9b26e19e57cb01099d171d73a169c5c
3
+ metadata.gz: 19b41ce5e21a08d1bf7396bd3fbbebb35d3a41b4a7dd64117f087457fb402803
4
+ data.tar.gz: 0b65846e8be38fe114d2ed9a29c8e6438d8ef20198eef0f03cf24898b24849c8
5
5
  SHA512:
6
- metadata.gz: 192db2ab88e15d9dc55a9c605f79f8816cc1da7435a1643392bf14083ea2798daec844d60b3c8a558b4aefd68a8ba7cf9e1e808efdd7b33892f0f2638fe3fbc2
7
- data.tar.gz: f98ebcc43a4751668f47406c7da9c2919ffa263515c1a14d9878b81b5d5025a3ca844e014bb364f2d74667b706297c45ad882655e36253b7f0663c0e7993336c
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.35.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
 
@@ -28,7 +28,7 @@ module Minitest
28
28
  test_and_module_name: "#{test.klass}##{test.name}",
29
29
  test_name: test.name,
30
30
  test_suite: test.klass,
31
- error_class: test.failure.exception.class.name,
31
+ error_class: test.failure.error.class.name,
32
32
  output: to_s,
33
33
  }
34
34
  end
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.35.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