ci-queue 0.70.0 → 0.71.0

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: c364b5557e5b1f4aa031dc23c32afab326e6bda9e3533ee80863682df5ff477c
4
- data.tar.gz: cc23906ce01e11a44af734ccb17ba4d566227a3e165d133edf908b20086bb8d7
3
+ metadata.gz: 0c6f16e56dc8a292221d29e15545c16299885c09e18a5d692aae194e16718c22
4
+ data.tar.gz: 6b3e65df710c975bae6167659a68d79f3b2c0d8404410c4927b79fe25a2cc298
5
5
  SHA512:
6
- metadata.gz: 2afc0d0c176bb567e08302ba8ffc5adffe7466f1690d9864be8c50774f19b1ff8b188b9c3cd0665edb0bdddda9a14e48385c22917595c73e02811a9108ff5625
7
- data.tar.gz: '086ded1dd94886983620519b535522d959d2e3850c50157592d85f4853a3bd7d4f029324d6b81859a4fbb448cae1045ba33795ae1a6d51d9508c91d77f71a0a9'
6
+ metadata.gz: 53fc80bdaf677cc7c093b07797d8ddca894ba687fd6b10ec600a8707a383ed1bb7afa90c1e6119ee1ebe8d21bc0f95202b449800e53ac9b6c8043f65a1f7c318
7
+ data.tar.gz: 96f4edf81ea5fdd2de4af18d7d496b25d54c9534251dfd99863003cec89303517abd7fa12495855fad32599271ace91dfec2e08917b6db8877748fc665bb80fc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ci-queue (0.70.0)
4
+ ci-queue (0.71.0)
5
5
  logger
6
6
 
7
7
  GEM
@@ -56,8 +56,6 @@ module CI
56
56
  redis.rpush(key('warnings'), Marshal.dump([type, attributes]))
57
57
  end
58
58
 
59
- Test = Struct.new(:id) # Hack
60
-
61
59
  def record_error(id, payload, stats: nil)
62
60
  redis.pipelined do |pipeline|
63
61
  @queue.acknowledge(id, error: payload, pipeline: pipeline)
@@ -68,11 +66,11 @@ module CI
68
66
  end
69
67
 
70
68
  def record_success(id, stats: nil, skip_flaky_record: false, acknowledge: true)
71
- @queue.acknowledge(id) if acknowledge
72
- error_reports_deleted_count, requeued_count, _ = redis.pipelined do |pipeline|
73
- pipeline.hdel(key('error-reports'), id)
74
- pipeline.hget(key('requeues-count'), id)
75
- record_stats(stats, pipeline: pipeline)
69
+ _, error_reports_deleted_count, requeued_count, _ = redis.multi do |transaction|
70
+ @queue.acknowledge(id, pipeline: transaction) if acknowledge
71
+ transaction.hdel(key('error-reports'), id)
72
+ transaction.hget(key('requeues-count'), id)
73
+ record_stats(stats, pipeline: transaction)
76
74
  end
77
75
  record_flaky(id) if !skip_flaky_record && (error_reports_deleted_count.to_i > 0 || requeued_count.to_i > 0)
78
76
  nil
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CI
4
4
  module Queue
5
- VERSION = '0.70.0'
5
+ VERSION = '0.71.0'
6
6
  DEV_SCRIPTS_ROOT = ::File.expand_path('../../../../../redis', __FILE__)
7
7
  RELEASE_SCRIPTS_ROOT = ::File.expand_path('../redis', __FILE__)
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci-queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.70.0
4
+ version: 0.71.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier