knapsack_pro 0.20.0 → 0.21.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 +10 -0
- data/README.md +11 -4
- data/lib/knapsack_pro/version.rb +1 -1
- data/lib/tasks/install.rake +2 -2
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a3d312090aad075f0a626b6abf41f26f2ca0988
|
4
|
+
data.tar.gz: 9736a0e662c48f8cba659f0278e7c0a31705ebfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 201539b38bafc36bb00129a8da55d910f607ccb6b62ef374372c693f4486eebb2feb812bc8df8b80310d7ee4a0a549dad265ffa34e2a6dd7ec512f437bca17b7
|
7
|
+
data.tar.gz: af5c6e1afa1fd05af1919b4dbb94f06271126521c62931b1c25103072bcfa8e9e6d182018f289c3331098215ae68ac05cce2206f5ed28d3b2f1086126cd43f76
|
data/CHANGELOG.md
CHANGED
@@ -2,15 +2,25 @@
|
|
2
2
|
|
3
3
|
* TODO
|
4
4
|
|
5
|
+
### 0.21.0
|
6
|
+
|
7
|
+
* Improve VCR config documentation so it's more clear that ignore_hosts takes arguments instead of array
|
8
|
+
|
9
|
+
https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v0.20.0...v0.21.0
|
10
|
+
|
5
11
|
### 0.20.0
|
6
12
|
|
7
13
|
* Wait a few seconds before retrying failed request to API. With each retry wait a bit longer. Retry at most 5 times.
|
8
14
|
|
15
|
+
https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v0.19.0...v0.20.0
|
16
|
+
|
9
17
|
### 0.19.0
|
10
18
|
|
11
19
|
* Change timeout to 30s for requests to API.
|
12
20
|
* Retry failed request to API at most 3 times.
|
13
21
|
|
22
|
+
https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v0.18.0...v0.19.0
|
23
|
+
|
14
24
|
### 0.18.0
|
15
25
|
|
16
26
|
* Add support for knapsack_pro queue mode
|
data/README.md
CHANGED
@@ -149,10 +149,10 @@ If you are using [VCR gem](https://github.com/vcr/vcr) then add Knapsack Pro API
|
|
149
149
|
# spec/spec_helper.rb or wherever is your VCR configuration
|
150
150
|
|
151
151
|
VCR.configure do |config|
|
152
|
-
config.ignore_hosts
|
152
|
+
config.ignore_hosts('localhost', '127.0.0.1', '0.0.0.0', 'api.knapsackpro.com')
|
153
153
|
end
|
154
154
|
|
155
|
-
WebMock.disable_net_connect!(:allow => 'api.knapsackpro.com') if defined?(WebMock)
|
155
|
+
WebMock.disable_net_connect!(:allow => ['api.knapsackpro.com']) if defined?(WebMock)
|
156
156
|
```
|
157
157
|
|
158
158
|
### Usage (How to set up 1 of 3)
|
@@ -312,8 +312,15 @@ The second build should have better optimal test suite split.
|
|
312
312
|
|
313
313
|
### Additional info about queue mode
|
314
314
|
|
315
|
-
If you are not using one of supported CI providers then please note that knapsack_pro gem doesn't know what is CI build ID in order to generated queue for particular CI build. This may result in two different CI builds taking tests from the same queue when CI builds are running at the same time against the same git commit.
|
316
|
-
|
315
|
+
* If you are not using one of [supported CI providers](#supported-ci-providers) then please note that knapsack_pro gem doesn't know what is CI build ID in order to generated queue for particular CI build. This may result in two different CI builds taking tests from the same queue when CI builds are running at the same time against the same git commit.
|
316
|
+
|
317
|
+
To avoid this you can specify unique `KNAPSACK_PRO_CI_NODE_BUILD_ID` environment variable for each CI build. This mean that each CI node that is part of particular CI build should have the same value for `KNAPSACK_PRO_CI_NODE_BUILD_ID`.
|
318
|
+
|
319
|
+
* Note that in the queue mode you cannot retry the failed CI node with exactly the same subset of tests that were run on the CI node in the first place. It's possible only in regular mode ([read more](#knapsack_pro_fixed_test_suite_splite-test-suite-split-based-on-seed)).
|
320
|
+
|
321
|
+
Let's say one of the CI nodes failed and you retry just this single CI node while other CI nodes are still running. The retried CI node will be connected to the queue consumed by running CI nodes.
|
322
|
+
|
323
|
+
In the case when there are no running CI nodes then your retried CI node will initialize a new queue and it will run whole test suite from the queue because there will be no other CI nodes running connected to the queue. The order of tests on retried CI node will be different than on the first run.
|
317
324
|
|
318
325
|
### Supported test runners in queue mode
|
319
326
|
|
data/lib/knapsack_pro/version.rb
CHANGED
data/lib/tasks/install.rake
CHANGED
@@ -49,10 +49,10 @@ def step_for_vcr(prompt)
|
|
49
49
|
|
50
50
|
prompt.say %{
|
51
51
|
VCR.configure do |config|
|
52
|
-
config.ignore_hosts
|
52
|
+
config.ignore_hosts('localhost', '127.0.0.1', '0.0.0.0', 'api.knapsackpro.com')
|
53
53
|
end
|
54
54
|
|
55
|
-
WebMock.disable_net_connect!(:allow => 'api.knapsackpro.com') if defined?(WebMock)
|
55
|
+
WebMock.disable_net_connect!(:allow => ['api.knapsackpro.com']) if defined?(WebMock)
|
56
56
|
}, color: :cyan
|
57
57
|
end
|
58
58
|
|
data/spec/spec_helper.rb
CHANGED
@@ -12,7 +12,7 @@ require 'webmock/rspec'
|
|
12
12
|
VCR.configure do |config|
|
13
13
|
config.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
|
14
14
|
config.hook_into :webmock # or :fakeweb
|
15
|
-
config.ignore_hosts
|
15
|
+
config.ignore_hosts('codeclimate.com')
|
16
16
|
end
|
17
17
|
|
18
18
|
require 'knapsack_pro'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knapsack_pro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ArturT
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|