buildkite-test_collector 2.6.0 → 2.6.1
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 -0
- data/Gemfile.lock +1 -1
- data/buildkite.yaml +5 -10
- data/lib/buildkite/test_collector/library_hooks/rspec.rb +14 -7
- data/lib/buildkite/test_collector/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bb798155684d3e4703de75ea06ccaf67b4f6d1b26c98459e621b34dea157e54
|
4
|
+
data.tar.gz: 6eb653f87c490762cadef81b202cb5f77d900b9a628ca245fd9718307e506dd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2e371578afd8e21a3736b86c5158ebc72e57f61dd771a3365ae932e16d2b0b5add98e139ffc2cfd1ac0b54b6ea08a664f1ebc4a3082e1e07ef10b5ea318fad9
|
7
|
+
data.tar.gz: 817afafdd348cb3f2e4b8dd0b720a1afc6e988094bb872b1306a958eea1c9432abba0edcbbba94b920df6d415115bb60e5e55d9ccd70772d9ac71e88b0e13646
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/buildkite.yaml
CHANGED
@@ -1,22 +1,17 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
command:
|
4
|
-
- "bundle"
|
5
|
-
- "bundle exec rake"
|
6
|
-
plugins:
|
7
|
-
- docker#v3.7.0:
|
8
|
-
image: "445615400570.dkr.ecr.us-east-1.amazonaws.com/ecr-public/docker/library/ruby:3.3-rc"
|
9
|
-
soft_fail: true
|
1
|
+
agents:
|
2
|
+
queue: hosted
|
10
3
|
|
4
|
+
steps:
|
11
5
|
- label: ":rspec: Tests :ruby: {{matrix}}"
|
12
6
|
command:
|
13
7
|
- "bundle"
|
14
8
|
- "bundle exec rake"
|
15
9
|
plugins:
|
16
10
|
- docker#v3.7.0:
|
17
|
-
image: "
|
11
|
+
image: "public.ecr.aws/docker/library/ruby:{{matrix}}"
|
18
12
|
matrix:
|
19
13
|
- "latest"
|
14
|
+
- "3.3"
|
20
15
|
- "3.2"
|
21
16
|
- "3.1"
|
22
17
|
- "3.0"
|
@@ -23,13 +23,20 @@ RSpec.configure do |config|
|
|
23
23
|
# The _buildkite prefix here is added as a safeguard against name collisions
|
24
24
|
# as we are in the main thread
|
25
25
|
Thread.current[:_buildkite_tracer] = tracer
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
26
|
+
# It's important to use begin/ensure here, because otherwise if other hooks fail,
|
27
|
+
# the cleanup code won't run, meaning we will miss some data.
|
28
|
+
#
|
29
|
+
# Having said that, this behavior isn't documented by RSpec.
|
30
|
+
begin
|
31
|
+
example.run
|
32
|
+
ensure
|
33
|
+
Thread.current[:_buildkite_tracer] = nil
|
34
|
+
|
35
|
+
tracer.finalize
|
36
|
+
|
37
|
+
trace = Buildkite::TestCollector::RSpecPlugin::Trace.new(example, history: tracer.history)
|
38
|
+
Buildkite::TestCollector.uploader.traces[example.id] = trace
|
39
|
+
end
|
33
40
|
end
|
34
41
|
|
35
42
|
config.after(:suite) do
|
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.6.
|
4
|
+
version: 2.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Buildkite
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
117
|
requirements: []
|
118
|
-
rubygems_version: 3.
|
118
|
+
rubygems_version: 3.5.11
|
119
119
|
signing_key:
|
120
120
|
specification_version: 4
|
121
121
|
summary: Track test executions and report to Buildkite Test Analytics
|