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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e8ff4ceff4d825291a8878bf19a912362d45c36d6750c5e14628f446cec0bbd
4
- data.tar.gz: 215441296a3c91547b0c43b062893239fbe5bae5ca2e1a80cca7b2ec65277e77
3
+ metadata.gz: 2bb798155684d3e4703de75ea06ccaf67b4f6d1b26c98459e621b34dea157e54
4
+ data.tar.gz: 6eb653f87c490762cadef81b202cb5f77d900b9a628ca245fd9718307e506dd5
5
5
  SHA512:
6
- metadata.gz: d31e59e76f2dc92ef5951f9d97663f14cb84d9ba1256c8586931146151222c7ce3769a8913517910312d0a75a7cafb3488f0b9690257c4fc6686fbf37cbed9ee
7
- data.tar.gz: 995fc9e592b74a41385058c4eac868e9639f6ef9bfb2ba9068cd156fd6ab5d90bf40aca86a9ab9c8560cf7c9ba80c4f172747a948e4e219976c680d035eae0af
6
+ metadata.gz: d2e371578afd8e21a3736b86c5158ebc72e57f61dd771a3365ae932e16d2b0b5add98e139ffc2cfd1ac0b54b6ea08a664f1ebc4a3082e1e07ef10b5ea318fad9
7
+ data.tar.gz: 817afafdd348cb3f2e4b8dd0b720a1afc6e988094bb872b1306a958eea1c9432abba0edcbbba94b920df6d415115bb60e5e55d9ccd70772d9ac71e88b0e13646
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v2.6.1
4
+
5
+ - Fix missing failed examples if rspec hooks fail #221 - @zhming0
6
+
3
7
  ## v2.6.0
4
8
 
5
9
  - Trace spans can be filtered by minimum duration #215 - @pda
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- buildkite-test_collector (2.6.0)
4
+ buildkite-test_collector (2.6.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/buildkite.yaml CHANGED
@@ -1,22 +1,17 @@
1
- steps:
2
- - label: ":rspec: Tests :ruby: 3.3-rc"
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: "445615400570.dkr.ecr.us-east-1.amazonaws.com/ecr-public/docker/library/ruby:{{matrix}}"
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
- example.run
27
- Thread.current[:_buildkite_tracer] = nil
28
-
29
- tracer.finalize
30
-
31
- trace = Buildkite::TestCollector::RSpecPlugin::Trace.new(example, history: tracer.history)
32
- Buildkite::TestCollector.uploader.traces[example.id] = trace
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Buildkite
4
4
  module TestCollector
5
- VERSION = "2.6.0"
5
+ VERSION = "2.6.1"
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: 2.6.0
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-03-21 00:00:00.000000000 Z
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.4.10
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