buildkite-test_collector 1.1.3 → 1.2.4

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: 84d13e5fb256a07aa96a3f19b17ee2f27c7c362d4cbbaa9e7f0efb6d4af8420d
4
- data.tar.gz: e5fe4f34fb6fc3a0c7494e65e6b43a9ffe9dd094a8f589ad3efa85e2b7e7849f
3
+ metadata.gz: 520259c47eab4e04270473067134ca2666ff118b4158ef17ae8bf832d2d4b9b5
4
+ data.tar.gz: 0baf54f0a8e69dab1d3794ba137469e9a4ce4b93108f0d69215b7f6409f92f22
5
5
  SHA512:
6
- metadata.gz: 0cfff8a4aef5369cd83075425b233c109f92bb55c790daea12d9bea9d6ce75e6860d3e12c922dae9b676cf7791f12d41f2d17d463a4d561f888ba3df0fca9bc9
7
- data.tar.gz: 7b01fdf26eed8c739685a78b135db2ea0ef964810b435a2897b0f1c61bb5e75ff695d344df5d9c89d1d04d37188f6125e1062c590d748ef7bec80a1790a7f15f
6
+ metadata.gz: 0bd552f37653d8e4c55fb98797fd16884fad19fe693670dfc546a6e0883d206f7db4646c0e10f4c6f02f6e39adaa70f95e6c94e21d318cf5ec64810135afc15f
7
+ data.tar.gz: 281311e6be534df2b1b6ff4fe3815683cfdeb0ab00ec2de0ad04ac9906256e0278aa8ccc5896f9a048ac7a9b87c950b5616b85b3dd1456671373f0235d2ed49e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v1.2.4
4
+
5
+ - Fix sleep instrumentation errors without argument #153 - @JuanitoFatas
6
+
7
+ ## v1.2.3
8
+
9
+ - Add ability to specify execution prefix/suffix #140 - @JuanitoFatas
10
+
3
11
  ## v1.1.3
4
12
  - Use a private reference to JSON.parse to prevent it being mocked #149 - @ghcan
5
13
 
data/Gemfile.lock CHANGED
@@ -1,23 +1,23 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- buildkite-test_collector (1.1.1)
4
+ buildkite-test_collector (1.2.4)
5
5
  activesupport (>= 5.2, < 8)
6
6
  websocket (~> 1.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.0.3)
11
+ activesupport (7.0.4)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 1.6, < 2)
14
14
  minitest (>= 5.1)
15
15
  tzinfo (~> 2.0)
16
16
  concurrent-ruby (1.1.10)
17
17
  diff-lcs (1.4.4)
18
- i18n (1.10.0)
18
+ i18n (1.12.0)
19
19
  concurrent-ruby (~> 1.0)
20
- minitest (5.16.1)
20
+ minitest (5.16.3)
21
21
  rake (13.0.6)
22
22
  rspec (3.10.0)
23
23
  rspec-core (~> 3.10.0)
@@ -32,7 +32,7 @@ GEM
32
32
  diff-lcs (>= 1.2.0, < 2.0)
33
33
  rspec-support (~> 3.10.0)
34
34
  rspec-support (3.10.3)
35
- tzinfo (2.0.4)
35
+ tzinfo (2.0.5)
36
36
  concurrent-ruby (~> 1.0)
37
37
  websocket (1.2.9)
38
38
 
@@ -35,9 +35,11 @@ class Buildkite::TestCollector::CI
35
35
  "job_id" => ENV["BUILDKITE_ANALYTICS_JOB_ID"],
36
36
  "message" => ENV["BUILDKITE_ANALYTICS_MESSAGE"],
37
37
  "debug" => ENV["BUILDKITE_ANALYTICS_DEBUG_ENABLED"],
38
+ "execution_name_prefix" => ENV["BUILDKITE_ANALYTICS_EXECUTION_NAME_PREFIX"],
39
+ "execution_name_suffix" => ENV["BUILDKITE_ANALYTICS_EXECUTION_NAME_SUFFIX"],
38
40
  "version" => Buildkite::TestCollector::VERSION,
39
41
  "collector" => Buildkite::TestCollector::NAME,
40
- }.compact
42
+ }.compact
41
43
  end
42
44
 
43
45
  def generic
@@ -3,11 +3,15 @@
3
3
  module Buildkite::TestCollector
4
4
  class Object
5
5
  module CustomObjectSleep
6
- def sleep(duration)
6
+ def sleep(duration = nil)
7
7
  tracer = Buildkite::TestCollector::Uploader.tracer
8
8
  tracer&.enter("sleep")
9
9
 
10
- super
10
+ if duration
11
+ super(duration)
12
+ else
13
+ super()
14
+ end
11
15
  ensure
12
16
  tracer&.leave
13
17
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Buildkite
4
4
  module TestCollector
5
- VERSION = "1.1.3"
5
+ VERSION = "1.2.4"
6
6
  NAME = "buildkite-test_collector"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildkite-test_collector
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Buildkite
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-10 00:00:00.000000000 Z
11
+ date: 2022-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0'
137
137
  requirements: []
138
- rubygems_version: 3.1.6
138
+ rubygems_version: 3.3.3
139
139
  signing_key:
140
140
  specification_version: 4
141
141
  summary: Track test executions and report to Buildkite Test Analytics