knapsack_pro 8.3.2 → 8.3.3
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/.github/pull_request_template.md +5 -17
- data/CHANGELOG.md +8 -0
- data/lib/knapsack_pro/formatters/time_tracker.rb +4 -4
- data/lib/knapsack_pro/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a43269c3d826dc9e9faed08299cffbc2d12afc454de28b58435e2bc05861e55
|
4
|
+
data.tar.gz: 41c2129c7f580d3637a2cf7a189d4b4cf4e0ce10fa677162fd82640c2bf1b582
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3a172a78479d59fd9a5becff1606df2555e5db961573ab42786ee37942f8a3c56305c996c3c774a5890189ad1ad75be1057066b0043f3260d4ce97668154a84
|
7
|
+
data.tar.gz: a8176152345555ddcac3024a903cc6749b7d32ea0f432f5b01b8e10813202288f511b5ba06f5a1dd6b20738d4f4a25d9af7f6604d70544c771c2b30f186cc4e0
|
@@ -1,23 +1,11 @@
|
|
1
|
-
# Story
|
2
|
-
|
3
|
-
TODO: link to the internal story
|
4
|
-
|
5
|
-
## Related
|
6
|
-
|
7
|
-
TODO: links to related PRs or issues
|
8
|
-
|
9
1
|
# Description
|
10
2
|
|
11
3
|
TODO
|
12
4
|
|
13
|
-
#
|
14
|
-
|
15
|
-
TODO: changes introduced by this PR
|
16
|
-
|
17
|
-
# Checklist reminder
|
5
|
+
# Checks
|
18
6
|
|
19
|
-
- [ ]
|
20
|
-
- [ ]
|
7
|
+
- [ ] I added the changes to the `UNRELEASED` section of the `CHANGELOG.md`, including the needed bump (i.e., patch, minor, major)
|
8
|
+
- [ ] I followed the architecture outlined below for RSpec in Queue Mode:
|
21
9
|
- Pure: `lib/knapsack_pro/pure/queue/rspec_pure.rb` contains pure functions that are unit tested.
|
22
|
-
- Extension: `lib/knapsack_pro/extensions/rspec_extension.rb` encapsulates calls to RSpec internals and is integration and
|
23
|
-
- Runner: `lib/knapsack_pro/runners/queue/rspec_runner.rb` invokes the pure code and the extension to produce side effects, which are integration and
|
10
|
+
- Extension: `lib/knapsack_pro/extensions/rspec_extension.rb` encapsulates calls to RSpec internals and is integration and E2E tested.
|
11
|
+
- Runner: `lib/knapsack_pro/runners/queue/rspec_runner.rb` invokes the pure code and the extension to produce side effects, which are integration and E2E tested.
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
### UNRELEASED (patch)
|
4
4
|
|
5
|
+
### 8.3.3
|
6
|
+
|
7
|
+
* Fix a `Hash#sum` bug in the time tracker for RSpec
|
8
|
+
|
9
|
+
https://github.com/KnapsackPro/knapsack_pro-ruby/pull/305
|
10
|
+
|
11
|
+
https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v8.3.2...v8.3.3
|
12
|
+
|
5
13
|
### 8.3.2
|
6
14
|
|
7
15
|
* Fix infinite recursion when the logger enters a loop. [The issue](https://github.com/KnapsackPro/knapsack_pro-ruby/issues/269) occurs when `KNAPSACK_PRO_LOG_DIR=log` is set and a conflict arises between the values of environment variables from the CI provider and those configured by the user (e.g., `KNAPSACK_PRO_CI_NODE_INDEX`, `KNAPSACK_PRO_CI_NODE_TOTAL`).
|
@@ -109,12 +109,12 @@ module KnapsackPro
|
|
109
109
|
group.each do |_, example|
|
110
110
|
next if example[:time_execution] == 0.0
|
111
111
|
|
112
|
-
example[:time_execution] += time_all_by_group_id_path.
|
112
|
+
example[:time_execution] += time_all_by_group_id_path.reduce(0.0) do |sum, (group_id_path, time)|
|
113
113
|
# :path is a file path (a_spec.rb), sum any before/after(:all) in the file
|
114
|
-
next time if group_id_path.start_with?(example[:path])
|
114
|
+
next sum + time if group_id_path.start_with?(example[:path])
|
115
115
|
# :path is an id path (a_spec.rb[1:1]), sum any before/after(:all) above it
|
116
|
-
next time if example[:path].start_with?(group_id_path[0..-2])
|
117
|
-
|
116
|
+
next sum + time if example[:path].start_with?(group_id_path[0..-2])
|
117
|
+
sum
|
118
118
|
end
|
119
119
|
end
|
120
120
|
end
|
data/lib/knapsack_pro/version.rb
CHANGED