knapsack_pro 0.36.0 → 0.37.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 +15 -0
- data/lib/knapsack_pro/config/env.rb +2 -1
- data/lib/knapsack_pro/report.rb +1 -0
- data/lib/knapsack_pro/version.rb +1 -1
- data/spec/knapsack_pro/config/env_spec.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: d8e029c932abfe418c4cd91a812046b361459fcf
|
4
|
+
data.tar.gz: '059e9c338debb8b3650c25481496123865293325'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 985a24992946ac1d91d55f444de53cd1f9afab5aa1322f462af59575c62dd12127bef4a10f02d38f93b71568f9dc71c12ba29be86ef3d7a657d7785b50442553
|
7
|
+
data.tar.gz: 5c0c74743d01b9183282ca13659827b5bddbd9ddfee9c1bd43d5bfe1bce7b038f3889e2c0590bdb5f829099a119e3bea8fd2645974b662f8e159baf0b02ba6dc
|
data/CHANGELOG.md
CHANGED
@@ -2,9 +2,24 @@
|
|
2
2
|
|
3
3
|
* TODO
|
4
4
|
|
5
|
+
### 0.37.0
|
6
|
+
|
7
|
+
* Add another explanation why test files could not be executed on CI node in Queue Mode.
|
8
|
+
|
9
|
+
https://github.com/KnapsackPro/knapsack_pro-ruby/pull/34
|
10
|
+
|
11
|
+
* Show better explanation what to do when there is missing test suite token environment variable.
|
12
|
+
|
13
|
+
https://github.com/KnapsackPro/knapsack_pro-ruby/pull/35
|
14
|
+
|
15
|
+
https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v0.36.0...v0.37.0
|
16
|
+
|
5
17
|
### 0.36.0
|
6
18
|
|
7
19
|
* Show messages about not executed test files as warnings in logs.
|
20
|
+
* Handle case when start timer was not called (rspec-retry issue).
|
21
|
+
|
22
|
+
https://github.com/KnapsackPro/knapsack_pro-ruby/pull/33
|
8
23
|
|
9
24
|
https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v0.35.0...v0.36.0
|
10
25
|
|
@@ -120,7 +120,8 @@ module KnapsackPro
|
|
120
120
|
end
|
121
121
|
|
122
122
|
def test_suite_token
|
123
|
-
|
123
|
+
env_name = 'KNAPSACK_PRO_TEST_SUITE_TOKEN'
|
124
|
+
ENV[env_name] || raise("Missing environment variable #{env_name}. You should set environment variable like #{env_name}_RSPEC (note there is suffix _RSPEC at the end). knapsack_pro gem will set #{env_name} based on #{env_name}_RSPEC value. If you use other test runner than RSpec then use proper suffix.")
|
124
125
|
end
|
125
126
|
|
126
127
|
def test_suite_token_rspec
|
data/lib/knapsack_pro/report.rb
CHANGED
@@ -36,6 +36,7 @@ module KnapsackPro
|
|
36
36
|
|
37
37
|
if test_files.empty?
|
38
38
|
KnapsackPro.logger.warn("No test files were executed on this CI node. When you use knapsack_pro queue mode then probably reason might be that CI node was started after the test files from the queue were already executed by other CI nodes. That is why this CI node has no test files to execute.")
|
39
|
+
KnapsackPro.logger.warn("Another reason might be when your CI node failed in a way that prevented knapsack_pro to save time execution data to Knapsack Pro API and you have just tried to retry failed CI node but instead you got no test files to execute. In that case knapsack_pro don't know what testes should be executed here.")
|
39
40
|
end
|
40
41
|
|
41
42
|
create_build_subset(test_files)
|
data/lib/knapsack_pro/version.rb
CHANGED
@@ -466,7 +466,7 @@ describe KnapsackPro::Config::Env do
|
|
466
466
|
|
467
467
|
context "when ENV doesn't exist" do
|
468
468
|
it do
|
469
|
-
expect { subject }.to raise_error('Missing environment variable KNAPSACK_PRO_TEST_SUITE_TOKEN')
|
469
|
+
expect { subject }.to raise_error('Missing environment variable KNAPSACK_PRO_TEST_SUITE_TOKEN. You should set environment variable like KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC (note there is suffix _RSPEC at the end). knapsack_pro gem will set KNAPSACK_PRO_TEST_SUITE_TOKEN based on KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC value. If you use other test runner than RSpec then use proper suffix.')
|
470
470
|
end
|
471
471
|
end
|
472
472
|
end
|
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.37.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-05-
|
11
|
+
date: 2017-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|