ci-queue 0.13.4 → 0.13.5
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 +4 -4
- data/Gemfile +2 -0
- data/README.md +1 -0
- data/lib/ci/queue/configuration.rb +3 -3
- data/lib/ci/queue/redis/build_record.rb +6 -2
- data/lib/ci/queue/version.rb +1 -1
- data/lib/minitest/queue/runner.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dee9e5a3d59f7179bb6493d4a1731db0e54ef235
|
|
4
|
+
data.tar.gz: f38ea0267283e5ecba855e07431ce3fed3cbe12f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 875416c1d4d5b4dc36f3fd174185436b2cf4cdc41da7cadca3a3f9e68ce63f05698bff585f8a0c344ed2930d3567b7b0456457aff64f6901594a07b6e2a4908e
|
|
7
|
+
data.tar.gz: 3ad1536f9b770f016d8e0242a54c1ede65d679ec4ec5cd1420639ce4c5638b378c2accc1f7a3fcb33ccd9733a15e4b4d4973547f3af2e1480ff7c6a144e182ed
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -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(
|
|
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
|
data/lib/ci/queue/version.rb
CHANGED
|
@@ -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
|
+
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-
|
|
11
|
+
date: 2018-07-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ansi
|