rspecq 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/rspecq/version.rb +1 -1
- data/lib/rspecq/worker.rb +6 -5
- 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: 900fd0a0742c08ed5a99f922cecb585017109b875d18dbd013d1ed93ea879791
|
4
|
+
data.tar.gz: 67537632a20c43c7da743571c30f5df6eeb826164ed6d9dc7b20ddb4d8761bf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42d517b6bfb37eb6bf12bef093e6db9bbfdd207155c7a30b7bf64d6dc114cde27f503323aa9b7e940a0a783db40fbb396c0567a780ee93f303291c083df29ddd
|
7
|
+
data.tar.gz: a6fe68d291eb761202d366c9fccb7aeee387b6dad048ec2efb9fb81b705e8cd0826fc339cf447d2ff272d9cbd1e8b21d060181b3cc7d74539f8c911ee466533a
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/rspecq/version.rb
CHANGED
data/lib/rspecq/worker.rb
CHANGED
@@ -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(' ')}
|
193
|
-
out =
|
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
|
-
|
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.
|
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-
|
11
|
+
date: 2020-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-core
|