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 +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +1 -1
- data/lib/buildkite/test_collector/library_hooks/minitest.rb +1 -1
- data/lib/buildkite/test_collector/minitest_plugin/trace.rb +2 -1
- data/lib/buildkite/test_collector/session.rb +3 -3
- data/lib/buildkite/test_collector/uploader.rb +1 -1
- data/lib/buildkite/test_collector/version.rb +1 -1
- data/lib/buildkite/test_collector.rb +1 -3
- data/lib/minitest/buildkite_collector_plugin.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f136ef927e80dbc0b442d01addc8f66041a79824508ea19158071594e78f7b2
|
4
|
+
data.tar.gz: 92136cc0d244357f96e5372af85b8923678cde70eece3582b6c02437e3a06146
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/Gemfile.lock
CHANGED
@@ -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
|
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("
|
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 "
|
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 "
|
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 "
|
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"]
|
@@ -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,
|
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
|
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-
|
11
|
+
date: 2022-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|