rspecq 0.2.1 → 0.2.2

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: bd8d2265a817359a4de0336570aae613e6649c6ace1b19a08a73003775fa9d50
4
- data.tar.gz: 25842da434b54e0a48946c51bbd18d910d2b1a8104c80e1cd6976092defa058d
3
+ metadata.gz: 900fd0a0742c08ed5a99f922cecb585017109b875d18dbd013d1ed93ea879791
4
+ data.tar.gz: 67537632a20c43c7da743571c30f5df6eeb826164ed6d9dc7b20ddb4d8761bf3
5
5
  SHA512:
6
- metadata.gz: 1df57f05ceb5439da1afaf79092c87b735c897dd1f06ec7c7d072f7dfc44535ad1661f4966b1bc8d7916e6a92a6a5a4d95da2348a6a0453c325f527312cd5ffd
7
- data.tar.gz: 36c3045ce31ddcc23923bd42859a91ff495b330fc058e4c82e0ab2feceeccd73d58dad4d6b90b77bbb35a657317303ba28f4af96cdaa7463547a173935942c80
6
+ metadata.gz: 42d517b6bfb37eb6bf12bef093e6db9bbfdd207155c7a30b7bf64d6dc114cde27f503323aa9b7e940a0a783db40fbb396c0567a780ee93f303291c083df29ddd
7
+ data.tar.gz: a6fe68d291eb761202d366c9fccb7aeee387b6dad048ec2efb9fb81b705e8cd0826fc339cf447d2ff272d9cbd1e8b21d060181b3cc7d74539f8c911ee466533a
@@ -4,7 +4,12 @@ Breaking changes are prefixed with a "[BREAKING]" label.
4
4
 
5
5
  ## master (unreleased)
6
6
 
7
+ ## 0.2.2 (2020-09-10)
7
8
 
9
+ ### Fixed
10
+ - Worker would fail if application code was writing to stderr
11
+ [[#35](https://github.com/skroutz/rspecq/pull/35)]
12
+
8
13
  ## 0.2.1 (2020-09-09)
9
14
 
10
15
  ### Changed
@@ -1,3 +1,3 @@
1
1
  module RSpecQ
2
- VERSION = "0.2.1".freeze
2
+ VERSION = "0.2.2".freeze
3
3
  end
@@ -1,6 +1,7 @@
1
1
  require "json"
2
2
  require "pathname"
3
3
  require "pp"
4
+ require "open3"
4
5
 
5
6
  module RSpecQ
6
7
  # A Worker, given a build ID, continuously consumes tests off the
@@ -189,9 +190,8 @@ module RSpecQ
189
190
  # falling back to scheduling them as whole files. Their errors will be
190
191
  # reported in the normal flow when they're eventually picked up by a worker.
191
192
  def files_to_example_ids(files)
192
- cmd = "DISABLE_SPRING=1 bundle exec rspec --dry-run --format json #{files.join(' ')} 2>&1"
193
- out = `#{cmd}`
194
- cmd_result = $?
193
+ cmd = "DISABLE_SPRING=1 bundle exec rspec --dry-run --format json #{files.join(' ')}"
194
+ out, err, cmd_result = Open3.capture3(cmd)
195
195
 
196
196
  if !cmd_result.success?
197
197
  rspec_output = begin
@@ -201,9 +201,10 @@ module RSpecQ
201
201
  end
202
202
 
203
203
  log_event(
204
- "Failed to split slow files, falling back to regular scheduling",
204
+ "Failed to split slow files, falling back to regular scheduling.\n #{err}",
205
205
  "error",
206
- rspec_output: rspec_output,
206
+ rspec_stdout: rspec_output,
207
+ rspec_stderr: err,
207
208
  cmd_result: cmd_result.inspect,
208
209
  )
209
210
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspecq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agis Anastasopoulos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-09 00:00:00.000000000 Z
11
+ date: 2020-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-core