buildkite-test_collector 1.0.1 → 1.1.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: db1b8d87ace52bb67aa1b58a9c4312fbb067ce244ab56c505acdbd8a8f4f914c
4
- data.tar.gz: dd5a2cd67e8d3765f04bec6b204485de15fc55c9d9b76f21940f100517636177
3
+ metadata.gz: 0f136ef927e80dbc0b442d01addc8f66041a79824508ea19158071594e78f7b2
4
+ data.tar.gz: 92136cc0d244357f96e5372af85b8923678cde70eece3582b6c02437e3a06146
5
5
  SHA512:
6
- metadata.gz: 73f95180c00f9e5ef767da6266ab391020b43707b666cb04c948b6b0fba4f3c68d9e37a7c023d3f508f7ae70ae219224c3145cc47e071ce77155d9bdb86e8dbe
7
- data.tar.gz: 8de30643055606915e936f1e41adf06f619394577cbd01e24dc074877672af29ca93b1020dafffa0635b97ee5c508b47da004387660b58fe15ee9da1f49ad9dc
6
+ metadata.gz: 3f53e8887efbb7f8ee62df7693c8061950dc77b1168e8abe784352a6e168938a8ee530c739746722b26955f22547c7bddb809e1345633afe06a9605bd2cfad2c
7
+ data.tar.gz: 42e3568a83bb4d37dbb815fb27320f121af273c60d968a8fa4f75688708b3994f91dce02203e1a45ebf67630e27288665029e38b591f50e349e792b0e881b112
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v1.1.0
4
+
5
+ - Remove an internal debugging change #115 — @juanitofatas
6
+ - Remove warnings #116 - @juanitofatas
7
+ - Fix old gem name still in debugging and warning messages #117 - @juanitofatas
8
+ - Include module from `Minitest` #118 - @juanitofatas
9
+ - Fix Minitest loading without using minitest hook #125 — @paulca
10
+
3
11
  ## v1.0.1
4
12
 
5
13
  - Fix project_dir issue expecting a string, not a Pathname #112 — @paulca
data/Gemfile CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- # Specify your gem's dependencies in rspec-buildkite-analytics.gemspec
5
+ # Specify your gem's dependencies in the gemspec
6
6
  gemspec
7
7
 
8
8
  gem "rake", "~> 13.0"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- buildkite-test_collector (1.0.1)
4
+ buildkite-test_collector (1.1.0)
5
5
  activesupport (>= 5.2, < 8)
6
6
  websocket (~> 1.2)
7
7
 
@@ -7,7 +7,7 @@ require_relative "../minitest_plugin"
7
7
 
8
8
  Buildkite::TestCollector.uploader = Buildkite::TestCollector::Uploader
9
9
 
10
- class MiniTest::Test
10
+ class Minitest::Test
11
11
  include Buildkite::TestCollector::MinitestPlugin
12
12
  end
13
13
 
@@ -4,7 +4,8 @@ require "active_support/core_ext/hash/indifferent_access"
4
4
 
5
5
  module Buildkite::TestCollector::MinitestPlugin
6
6
  class Trace
7
- attr_accessor :example, :failure_reason, :failure_expanded
7
+ attr_accessor :example
8
+ attr_writer :failure_reason, :failure_expanded
8
9
  attr_reader :id, :history
9
10
 
10
11
  RESULT_CODES = {
@@ -42,9 +42,9 @@ module Buildkite::TestCollector
42
42
  reconnection_count += 1
43
43
  connect
44
44
  rescue TimeoutError, InitialConnectionFailure => e
45
- Buildkite::TestCollector.logger.warn("rspec-buildkite-analytics could not establish an initial connection with Buildkite due to #{e}. Attempting retry #{reconnection_count} of #{MAX_RECONNECTION_ATTEMPTS}...")
45
+ Buildkite::TestCollector.logger.warn("buildkite-test_collector could not establish an initial connection with Buildkite due to #{e}. Attempting retry #{reconnection_count} of #{MAX_RECONNECTION_ATTEMPTS}...")
46
46
  if reconnection_count > MAX_RECONNECTION_ATTEMPTS
47
- Buildkite::TestCollector.logger.error "rspec-buildkite-analytics could not establish an initial connection with Buildkite due to #{e.message} after #{MAX_RECONNECTION_ATTEMPTS} attempts. You may be missing some data for this test suite, please contact support if this issue persists."
47
+ Buildkite::TestCollector.logger.error "buildkite-test_collector could not establish an initial connection with Buildkite due to #{e.message} after #{MAX_RECONNECTION_ATTEMPTS} attempts. You may be missing some data for this test suite, please contact support if this issue persists."
48
48
  else
49
49
  sleep(WAIT_BETWEEN_RECONNECTIONS)
50
50
  Buildkite::TestCollector.logger.warn("retrying reconnection")
@@ -77,7 +77,7 @@ module Buildkite::TestCollector
77
77
  rescue *DISCONNECTED_EXCEPTIONS => e
78
78
  Buildkite::TestCollector.logger.warn("failed reconnection attempt #{reconnection_count} due to #{e}")
79
79
  if reconnection_count > MAX_RECONNECTION_ATTEMPTS
80
- Buildkite::TestCollector.logger.error "rspec-buildkite-analytics experienced a disconnection and could not reconnect to Buildkite due to #{e.message}. Please contact support."
80
+ Buildkite::TestCollector.logger.error "buildkite-test_collector experienced a disconnection and could not reconnect to Buildkite due to #{e.message}. Please contact support."
81
81
  raise e
82
82
  else
83
83
  sleep(WAIT_BETWEEN_RECONNECTIONS)
@@ -57,7 +57,7 @@ module Buildkite::TestCollector
57
57
  end
58
58
  else
59
59
  request_id = response.to_hash["x-request-id"]
60
- Buildkite::TestCollector.logger.info "rspec-buildkite-analytics could not establish an initial connection with Buildkite. You may be missing some data for this test suite, please contact support."
60
+ Buildkite::TestCollector.logger.info "buildkite-test_collector could not establish an initial connection with Buildkite. You may be missing some data for this test suite, please contact support with request ID #{request_id}."
61
61
  end
62
62
  else
63
63
  if !!ENV["BUILDKITE_BUILD_ID"]
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Buildkite
4
4
  module TestCollector
5
- VERSION = "1.0.1"
5
+ VERSION = "1.1.0"
6
6
  NAME = "buildkite-test_collector"
7
7
  end
8
8
  end
@@ -19,15 +19,13 @@ module Buildkite
19
19
  attr_accessor :uploader
20
20
  attr_accessor :session
21
21
  attr_accessor :debug_enabled
22
- attr_accessor :debug_filepath
23
22
  attr_accessor :tracing_enabled
24
23
  end
25
24
 
26
- def self.configure(hook:, token: nil, url: nil, debug_enabled: false, debug_filepath: nil, tracing_enabled: true)
25
+ def self.configure(hook:, token: nil, url: nil, debug_enabled: false, tracing_enabled: true)
27
26
  self.api_token = token || ENV["BUILDKITE_ANALYTICS_TOKEN"]
28
27
  self.url = url || DEFAULT_URL
29
28
  self.debug_enabled = debug_enabled || !!(ENV["BUILDKITE_ANALYTICS_DEBUG_ENABLED"])
30
- self.debug_filepath = debug_filepath || ENV["BUILDKITE_ANALYTICS_DEBUG_FILEPATH"] || Dir.tmpdir
31
29
  self.tracing_enabled = tracing_enabled
32
30
 
33
31
  self.hook_into(hook)
@@ -1,6 +1,6 @@
1
1
  module Minitest
2
2
  def self.plugin_buildkite_collector_init(options)
3
- if Buildkite::TestCollector.respond_to?(:uploader)
3
+ if defined?(Buildkite::TestCollector::MinitestPlugin) && Buildkite::TestCollector.respond_to?(:uploader)
4
4
  self.reporter << Buildkite::TestCollector::MinitestPlugin::Reporter.new(options[:io], options)
5
5
  end
6
6
  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.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Buildkite
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-07 00:00:00.000000000 Z
11
+ date: 2022-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport