ci-queue 0.13.4 → 0.13.5

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
  SHA1:
3
- metadata.gz: d91fd02d29e5c4502c858d46890cdd17f8dd80f1
4
- data.tar.gz: a9aff819b8b7d5c471f7100fd27317492224442b
3
+ metadata.gz: dee9e5a3d59f7179bb6493d4a1731db0e54ef235
4
+ data.tar.gz: f38ea0267283e5ecba855e07431ce3fed3cbe12f
5
5
  SHA512:
6
- metadata.gz: c45c433780015c85763148708db522f47a41891fe02782bd7b5cdd05c8edc7e9ea9b5f4b4af45efc43a1f866bb753432040a78fa76d0383dce6120258ceab90a
7
- data.tar.gz: 79684e26a534c56048d40c4ab0bd9d7efb9ef7149fb53e2746760f4c74eb2eb7b3baa9ed409a7198b98afb975be81319de0b4e6d70e790409216e79ef912daab
6
+ metadata.gz: 875416c1d4d5b4dc36f3fd174185436b2cf4cdc41da7cadca3a3f9e68ce63f05698bff585f8a0c344ed2930d3567b7b0456457aff64f6901594a07b6e2a4908e
7
+ data.tar.gz: 3ad1536f9b770f016d8e0242a54c1ede65d679ec4ec5cd1420639ce4c5638b378c2accc1f7a3fcb33ccd9733a15e4b4d4973547f3af2e1480ff7c6a144e182ed
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in ci-queue.gemspec
4
4
  gemspec
5
+
6
+ gem 'activesupport', '~> 5.2.0'
data/README.md CHANGED
@@ -23,6 +23,7 @@ Or install it yourself as:
23
23
  - Buildkite
24
24
  - CircleCI
25
25
  - Travis
26
+ - Heroku CI
26
27
 
27
28
  If you are using another CI system, please refer to the command usage message.
28
29
 
@@ -8,9 +8,9 @@ module CI
8
8
  class << self
9
9
  def from_env(env)
10
10
  new(
11
- build_id: env['CIRCLE_BUILD_URL'] || env['BUILDKITE_BUILD_ID'] || env['TRAVIS_BUILD_ID'],
12
- worker_id: env['CIRCLE_NODE_INDEX'] || env['BUILDKITE_PARALLEL_JOB'],
13
- seed: env['CIRCLE_SHA1'] || env['BUILDKITE_COMMIT'] || env['TRAVIS_COMMIT'],
11
+ build_id: env['CIRCLE_BUILD_URL'] || env['BUILDKITE_BUILD_ID'] || env['TRAVIS_BUILD_ID'] || env['HEROKU_TEST_RUN_ID'],
12
+ worker_id: env['CIRCLE_NODE_INDEX'] || env['BUILDKITE_PARALLEL_JOB'] || env['CI_NODE_INDEX'],
13
+ seed: env['CIRCLE_SHA1'] || env['BUILDKITE_COMMIT'] || env['TRAVIS_COMMIT'] || env['HEROKU_TEST_RUN_COMMIT_VERSION'],
14
14
  flaky_tests: load_flaky_tests(env['CI_QUEUE_FLAKY_TESTS']),
15
15
  statsd_endpoint: env['CI_QUEUE_STATSD_ADDR'],
16
16
  )
@@ -18,7 +18,11 @@ module CI
18
18
 
19
19
  def record_error(id, payload, stats: nil)
20
20
  redis.pipelined do
21
- redis.hset(key('error-reports'), id, payload)
21
+ redis.hset(
22
+ key('error-reports'),
23
+ id.force_encoding(Encoding::BINARY),
24
+ payload.force_encoding(Encoding::BINARY),
25
+ )
22
26
  record_stats(stats)
23
27
  end
24
28
  nil
@@ -26,7 +30,7 @@ module CI
26
30
 
27
31
  def record_success(id, stats: nil)
28
32
  redis.pipelined do
29
- redis.hdel(key('error-reports'), id)
33
+ redis.hdel(key('error-reports'), id.force_encoding(Encoding::BINARY))
30
34
  record_stats(stats)
31
35
  end
32
36
  nil
@@ -1,6 +1,6 @@
1
1
  module CI
2
2
  module Queue
3
- VERSION = '0.13.4'
3
+ VERSION = '0.13.5'
4
4
  DEV_SCRIPTS_ROOT = ::File.expand_path('../../../../../redis', __FILE__)
5
5
  RELEASE_SCRIPTS_ROOT = ::File.expand_path('../redis', __FILE__)
6
6
  end
@@ -198,7 +198,7 @@ module Minitest
198
198
  help = split_heredoc(<<-EOS)
199
199
  Unique identifier for the workload. All workers working on the same suite of tests must have the same build identifier.
200
200
  If the build is tried again, or another revision is built, this value must be different.
201
- It's automatically inferred on Buildkite, CircleCI and Travis.
201
+ It's automatically inferred on Buildkite, CircleCI, Heroku CI, and Travis.
202
202
  EOS
203
203
  opts.separator ""
204
204
  opts.on('--build BUILD_ID', *help) do |build_id|
@@ -239,7 +239,7 @@ module Minitest
239
239
 
240
240
  help = split_heredoc(<<-EOS)
241
241
  Sepcify a seed used to shuffle the test suite.
242
- On Buildkite, CircleCI and Travis, the commit revision will be used by default.
242
+ On Buildkite, CircleCI, Heroku CI, and Travis, the commit revision will be used by default.
243
243
  EOS
244
244
  opts.separator ""
245
245
  opts.on('--seed SEED', *help) do |seed|
@@ -249,7 +249,7 @@ module Minitest
249
249
  help = split_heredoc(<<-EOS)
250
250
  A unique identifier for this worker, It must be consistent to allow retries.
251
251
  If not specified, retries won't be available.
252
- It's automatically inferred on Buildkite and CircleCI.
252
+ It's automatically inferred on Buildkite, Heroku CI, and CircleCI.
253
253
  EOS
254
254
  opts.separator ""
255
255
  opts.on('--worker WORKER_ID', *help) do |worker_id|
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.13.4
4
+ version: 0.13.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-26 00:00:00.000000000 Z
11
+ date: 2018-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ansi