knapsack_pro 5.2.1 → 5.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ebf6661c02960aefdda92e8fd84ce692e22e59e9fb4d593f677577cda62acb57
4
- data.tar.gz: c56e9069badb8ed6090e1b8afb6f2c7d5aebb52a8b7e484484399586b3b7f82c
3
+ metadata.gz: 81a7fddcd84c41e4e3273ba731e8f68a0063762ebe8234ec8b68cd4cc3e1bcb0
4
+ data.tar.gz: 213921c7b7d2789b213a80f8a943528f7ae10cf6427c455a04f38ff72a715901
5
5
  SHA512:
6
- metadata.gz: df2abe40a8b601acd3db8eedce7fc985273e4ff0100346300080ef0de7c8a3df96ecb98f7ab038f121f365d852da0ff877c579a57a652c1c5fb8318a72bc53a7
7
- data.tar.gz: 032132b675a088531b3dd112f3258823ec4fd7b9beae8f982dbb3abc85508b4d4ccbd56112ab0e8f1faaf9b0af74edc98fd6896fb01d25ba77f20bef14f61273
6
+ metadata.gz: 47e7fd9c4c00952b3ebd83dba4de192718100460ad462eb68b90de24dea8df9aa066682771fc3173eaa93c5afa48bd837998711cbebc7dbb911a21d63b3d2cea
7
+ data.tar.gz: f1b4ac0665596ffe4d83c83c3137f9289a36a709564854155bdf103f38151bcd63b1a58ec165593b0aa2dc3b588b7a497ed032e45ef8c3d5719ee11ee12b747b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ### 5.3.1
4
+
5
+ * Avoid noise to stderr when git is not available when collecting authors
6
+
7
+ https://github.com/KnapsackPro/knapsack_pro-ruby/pull/211
8
+
9
+ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v5.3.0...v5.3.1
10
+
11
+ ### 5.3.0
12
+
13
+ * Perf: Send authors to the API only on the first request (for Queue Mode)
14
+
15
+ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v5.2.1...v5.3.0
16
+
3
17
  ### 5.2.1
4
18
 
5
19
  * Shallow fetch the last month of commits only on CI
@@ -17,13 +17,13 @@ module KnapsackPro
17
17
  :node_index => args.fetch(:node_index),
18
18
  :node_build_id => KnapsackPro::Config::Env.ci_node_build_id,
19
19
  :user_seat => KnapsackPro::Config::Env.masked_user_seat,
20
- :build_author => KnapsackPro::RepositoryAdapters::GitAdapter.new.build_author,
21
- :commit_authors => KnapsackPro::RepositoryAdapters::GitAdapter.new.commit_authors,
22
20
  }
23
21
 
24
22
  if request_hash[:can_initialize_queue] && !request_hash[:attempt_connect_to_queue]
25
23
  request_hash.merge!({
26
- :test_files => args.fetch(:test_files)
24
+ :test_files => args.fetch(:test_files),
25
+ :build_author => KnapsackPro::RepositoryAdapters::GitAdapter.new.build_author,
26
+ :commit_authors => KnapsackPro::RepositoryAdapters::GitAdapter.new.commit_authors,
27
27
  })
28
28
  end
29
29
 
@@ -42,10 +42,10 @@ module KnapsackPro
42
42
 
43
43
  def git_commit_authors
44
44
  if KnapsackPro::Config::Env.ci?
45
- `git fetch --shallow-since "one month ago" --quiet`
45
+ `git fetch --shallow-since "one month ago" --quiet 2>/dev/null`
46
46
  end
47
47
 
48
- `git log --since "one month ago" | git shortlog --summary --email`
48
+ `git log --since "one month ago" 2>/dev/null | git shortlog --summary --email 2>/dev/null`
49
49
  end
50
50
 
51
51
  def git_build_author
@@ -1,3 +1,3 @@
1
1
  module KnapsackPro
2
- VERSION = '5.2.1'
2
+ VERSION = '5.3.1'
3
3
  end
@@ -53,6 +53,16 @@ describe KnapsackPro::Client::API::V1::Queues do
53
53
  ).and_return(action)
54
54
  expect(subject).to eq action
55
55
  end
56
+
57
+ it "sends authors" do
58
+ action = double
59
+
60
+ expect(KnapsackPro::Client::API::Action).to receive(:new).with(
61
+ hash_including(request_hash: hash_including(:build_author, :commit_authors))
62
+ ).and_return(action)
63
+
64
+ expect(subject).to eq action
65
+ end
56
66
  end
57
67
 
58
68
  context 'when can_initialize_queue=false and attempt_connect_to_queue=false' do
@@ -67,15 +77,5 @@ describe KnapsackPro::Client::API::V1::Queues do
67
77
  expect(subject).to eq action
68
78
  end
69
79
  end
70
-
71
- it "sends authors" do
72
- action = double
73
-
74
- expect(KnapsackPro::Client::API::Action).to receive(:new).with(
75
- hash_including(request_hash: hash_including(:build_author, :commit_authors))
76
- ).and_return(action)
77
-
78
- expect(subject).to eq action
79
- end
80
80
  end
81
81
  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: 5.2.1
4
+ version: 5.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ArturT
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-18 00:00:00.000000000 Z
11
+ date: 2023-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake