buildkite-test_collector 2.1.0.pre → 2.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 +4 -1
- data/DESIGN.md +1 -11
- data/Gemfile.lock +1 -3
- data/README.md +3 -0
- data/buildkite-test_collector.gemspec +0 -1
- data/lib/buildkite/test_collector/http_client.rb +0 -18
- data/lib/buildkite/test_collector/version.rb +1 -1
- data/lib/buildkite/test_collector.rb +0 -3
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62d15c76f63986e5fbef7b57ef7319d4e13dbfe0224d7359f056c5be3d1a6016
|
4
|
+
data.tar.gz: 2e80852362308fb6a3b7e36f3ab2c9b7927386a446bead51d8d7dc799efef051
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cffd41ec45351cde0532bcb79e26e24fbeed39bec9528189fed439bb82e69b8a5f1addd164d0d1e6c75e3915d48bbf0647c354ec3fdf68edc92e34e3dd995de
|
7
|
+
data.tar.gz: 6fe2ff7e9832bbe3c666882710c7609f90562c6e32072a70fd7833cf0e46999affa1bb34c47e7251cd00d3a283fe9f21443831b4f4dfcb5a047fe8571b54213e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## v2.1.0
|
4
|
+
- Major change: deprecates websocket connection in favour of sending HTTP requests to the Upload API. In future, websocket support will be completely removed from Buildkite and only version 2.1+ of this gem will continue to work.
|
5
|
+
|
3
6
|
## v2.1.0.pre
|
4
7
|
- Minitest plugin to use HTTP Upload API instead of websocket connection to send test data #178 #179 - @niceking
|
5
8
|
|
@@ -11,7 +14,7 @@
|
|
11
14
|
|
12
15
|
## v1.5.0
|
13
16
|
|
14
|
-
- Send `failure_expanded` from minitest #171 - @nprizal
|
17
|
+
- Send `failure_expanded` from minitest #171 - @nprizal
|
15
18
|
|
16
19
|
## v1.4.2
|
17
20
|
|
data/DESIGN.md
CHANGED
@@ -2,17 +2,7 @@
|
|
2
2
|
|
3
3
|
## Threads
|
4
4
|
|
5
|
-
The Buildkite ruby collector uses
|
6
|
-
receive data with Buildkite. Execution information starts transmitting as soon
|
7
|
-
as possible, without waiting for the test suite to finish running.
|
8
|
-
|
9
|
-
This gem uses 3 ruby threads:
|
10
|
-
|
11
|
-
* main thread: acts as the producer. It collects span data from the
|
12
|
-
test suite and enqueues it into the send queue.
|
13
|
-
* write thread: acts as the consumer. Removes data from the send queue and
|
14
|
-
sends it to Buildkite.
|
15
|
-
* read thread: receives and processes messages from Buildkite.
|
5
|
+
The Buildkite ruby collector uses threads to send data to the Upload API in the background. When the test suite has finished running, the collector waits UPLOAD_SESSION_TIMEOUT seconds for the Upload API requests to finish before exiting.
|
16
6
|
|
17
7
|
## Data
|
18
8
|
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
buildkite-test_collector (2.1.0
|
4
|
+
buildkite-test_collector (2.1.0)
|
5
5
|
activesupport (>= 4.2)
|
6
|
-
websocket (~> 1.2)
|
7
6
|
|
8
7
|
GEM
|
9
8
|
remote: https://rubygems.org/
|
@@ -34,7 +33,6 @@ GEM
|
|
34
33
|
rspec-support (3.10.3)
|
35
34
|
tzinfo (2.0.6)
|
36
35
|
concurrent-ruby (~> 1.0)
|
37
|
-
websocket (1.2.9)
|
38
36
|
|
39
37
|
PLATFORMS
|
40
38
|
ruby
|
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Buildkite Collectors for Ruby
|
2
2
|
|
3
|
+
**DEPRECATION NOTICE**
|
4
|
+
Versions prior to 2.1.x are unsupported and will not work after mid-2023. Please upgrade to the latest version.
|
5
|
+
|
3
6
|
Official [Buildkite Test Analytics](https://buildkite.com/test-analytics) collectors for Ruby test frameworks ✨
|
4
7
|
|
5
8
|
⚒ **Supported test frameworks:** RSpec, Minitest, and [more coming soon](https://github.com/buildkite/test-collector-ruby/issues?q=is%3Aissue+is%3Aopen+label%3A%22test+frameworks%22).
|
@@ -25,7 +25,6 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
26
26
|
|
27
27
|
spec.add_dependency "activesupport", ">= 4.2"
|
28
|
-
spec.add_dependency "websocket", '~> 1.2'
|
29
28
|
|
30
29
|
spec.add_development_dependency "rspec-core", '~> 3.10'
|
31
30
|
spec.add_development_dependency "rspec-expectations", '~> 3.10'
|
@@ -10,24 +10,6 @@ module Buildkite::TestCollector
|
|
10
10
|
@authorization_header = "Token token=\"#{Buildkite::TestCollector.api_token}\""
|
11
11
|
end
|
12
12
|
|
13
|
-
def post
|
14
|
-
contact_uri = URI.parse(url)
|
15
|
-
|
16
|
-
http = Net::HTTP.new(contact_uri.host, contact_uri.port)
|
17
|
-
http.use_ssl = contact_uri.scheme == "https"
|
18
|
-
|
19
|
-
contact = Net::HTTP::Post.new(contact_uri.path, {
|
20
|
-
"Authorization" => authorization_header,
|
21
|
-
"Content-Type" => "application/json",
|
22
|
-
})
|
23
|
-
contact.body = {
|
24
|
-
run_env: Buildkite::TestCollector::CI.env,
|
25
|
-
format: "websocket"
|
26
|
-
}.to_json
|
27
|
-
|
28
|
-
http.request(contact)
|
29
|
-
end
|
30
|
-
|
31
13
|
def post_json(data)
|
32
14
|
contact_uri = URI.parse(url)
|
33
15
|
|
@@ -8,13 +8,10 @@ end
|
|
8
8
|
require "json"
|
9
9
|
require "logger"
|
10
10
|
require "net/http"
|
11
|
-
require "openssl"
|
12
11
|
require "time"
|
13
12
|
require "timeout"
|
14
13
|
require "tmpdir"
|
15
14
|
require "securerandom"
|
16
|
-
require "socket"
|
17
|
-
require "websocket"
|
18
15
|
|
19
16
|
require "active_support/core_ext/object/blank"
|
20
17
|
require "active_support/core_ext/hash/indifferent_access"
|
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: 2.1.0
|
4
|
+
version: 2.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: 2023-
|
11
|
+
date: 2023-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '4.2'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: websocket
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '1.2'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.2'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rspec-core
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,9 +109,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
123
109
|
version: 2.3.0
|
124
110
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
111
|
requirements:
|
126
|
-
- - "
|
112
|
+
- - ">="
|
127
113
|
- !ruby/object:Gem::Version
|
128
|
-
version:
|
114
|
+
version: '0'
|
129
115
|
requirements: []
|
130
116
|
rubygems_version: 3.1.6
|
131
117
|
signing_key:
|