knapsack_pro 1.22.3 → 2.0.0
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 +14 -0
- data/README.md +3 -0
- data/lib/knapsack_pro/config/ci/github_actions.rb +3 -2
- data/lib/knapsack_pro/version.rb +1 -1
- data/spec/knapsack_pro/config/ci/github_actions_spec.rb +8 -1
- 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: 575934b81520ce3bbf894d8cf643ae5af0279fd43b0529c62d8a4b71a595fbc8
|
|
4
|
+
data.tar.gz: dbebdb5c243e9a363a0f4737d4d78d9c2f1ff66f18e8087faafaece2299998eb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e636160f7c6793f371840b481154a7bcb6a5215580f5d5a92cd4be21242a544bc3c6bbf6c64d92da66fb2228e20f1ccf3836408405881c460c85472b0f3fbcb4
|
|
7
|
+
data.tar.gz: 41375edcb7f40c0044bacba75a89f0e43766261db0c148b525a565580592ad08df3cc9f37843fd056bc29ef79e0e3437266512cbdb6ddc7ce81219ee5ba92edf
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
### 2.0.0
|
|
4
|
+
|
|
5
|
+
* Add support for CI build ID for Github Actions
|
|
6
|
+
|
|
7
|
+
https://github.com/KnapsackPro/knapsack_pro-ruby/pull/116
|
|
8
|
+
|
|
9
|
+
__Migration path for Github Actions users - required__
|
|
10
|
+
|
|
11
|
+
If you use Github Actions and Knapsack Pro Queue Mode then you must set in Github Actions environment variable: `KNAPSACK_PRO_FIXED_QUEUE_SPLIT=true`. Thanks to that when you retry CI build then tests will run based on previously recorded tests. This solves problem mentioned in the [PR](https://github.com/KnapsackPro/knapsack_pro-ruby/pull/116).
|
|
12
|
+
|
|
13
|
+
__Migration path for other users__ - just update `knapsack_pro` gem. Nothing to change in your code :)
|
|
14
|
+
|
|
15
|
+
https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v1.22.3...v2.0.0
|
|
16
|
+
|
|
3
17
|
### 1.22.3
|
|
4
18
|
|
|
5
19
|
* Support for non-delimited formatting params of RSpec like `-fMyCustomFormatter`
|
data/README.md
CHANGED
|
@@ -1639,6 +1639,9 @@ jobs:
|
|
|
1639
1639
|
KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC: ${{ secrets.KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC }}
|
|
1640
1640
|
KNAPSACK_PRO_CI_NODE_TOTAL: ${{ matrix.ci_node_total }}
|
|
1641
1641
|
KNAPSACK_PRO_CI_NODE_INDEX: ${{ matrix.ci_node_index }}
|
|
1642
|
+
# if you use Knapsack Pro Queue Mode you must set below env variable
|
|
1643
|
+
# to be able to retry CI build and run previously recorded tests
|
|
1644
|
+
KNAPSACK_PRO_FIXED_QUEUE_SPLIT: true
|
|
1642
1645
|
run: |
|
|
1643
1646
|
# run tests in Knapsack Pro Regular Mode
|
|
1644
1647
|
bundle exec rake knapsack_pro:rspec
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# https://help.github.com/en/
|
|
1
|
+
# https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables
|
|
2
2
|
module KnapsackPro
|
|
3
3
|
module Config
|
|
4
4
|
module CI
|
|
@@ -12,7 +12,8 @@ module KnapsackPro
|
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def node_build_id
|
|
15
|
-
# not
|
|
15
|
+
# A unique number for each run within a repository. This number does not change if you re-run the workflow run.
|
|
16
|
+
ENV['GITHUB_RUN_ID']
|
|
16
17
|
end
|
|
17
18
|
|
|
18
19
|
def commit_hash
|
data/lib/knapsack_pro/version.rb
CHANGED
|
@@ -22,7 +22,14 @@ describe KnapsackPro::Config::CI::GithubActions do
|
|
|
22
22
|
describe '#node_build_id' do
|
|
23
23
|
subject { described_class.new.node_build_id }
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
context 'when environment exists' do
|
|
26
|
+
let(:env) { { 'GITHUB_RUN_ID' => 2706 } }
|
|
27
|
+
it { should eql 2706 }
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
context "when environment doesn't exist" do
|
|
31
|
+
it { should be nil }
|
|
32
|
+
end
|
|
26
33
|
end
|
|
27
34
|
|
|
28
35
|
describe '#commit_hash' do
|
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:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ArturT
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-06-
|
|
11
|
+
date: 2020-06-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|