knapsack_pro 3.11.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a43c73ef1e2535db96433d5a39659b4a02cf0ecb9baac50f5effef464c0638de
4
- data.tar.gz: 49739064aea9230e17d9719bd3ee8bff27dead716bf388530eb4c9e5e079d6e1
3
+ metadata.gz: 290f2d4d36346c2b4d87ccd475600a2fe68b61ed92f0f4c5e3d706321274482c
4
+ data.tar.gz: c363a381f9b18c4f8c8449cfe0477c7c6b987c6a356865d1fcdb34849168674b
5
5
  SHA512:
6
- metadata.gz: d019adc9a5a78d7b795e380828a5be81eca28702aba936c1fb6759b7294bffe3e90dfcc7ab009c844863cfbe4ead8c9a1bf1159a89dee44305f9d50803d798b7
7
- data.tar.gz: c92054f2b1cdc5c842e0130d89ee8f9ebc9a44985721718b9af48e3c9e6db9f3e391fe2a8ead8ad8ebf040f0526a3ce4600014b4bbf62d1f43952c4b5e24025f
6
+ metadata.gz: cd0e5c7dbe72f032c6eaa0399bef86a944781adaacb894f3165f4b34720c2bf79cbf7f6f4b316c179ea91fd6f344a653e1441fd02d4e6d4d316e432c301374e9
7
+ data.tar.gz: 8f921a5501043c19f52069c4325062102dab01b0cd3ca89657093e4083fe736e6e1d2962fa6beb3c9d0f657d3d05873a7d261a706ad2531eff9edcb9c7163f00
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ### 4.0.0
4
+
5
+ * Raise when `KNAPSACK_PRO_CI_NODE_BUILD_ID` is missing
6
+
7
+ https://github.com/KnapsackPro/knapsack_pro-ruby/pull/195
8
+
9
+ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v3.11.0...v4.0.0
10
+
3
11
  ### 3.11.0
4
12
 
5
13
  * Send distinguishable user seat info over to the API
@@ -23,9 +23,10 @@ module KnapsackPro
23
23
  end
24
24
 
25
25
  def ci_node_build_id
26
- ENV['KNAPSACK_PRO_CI_NODE_BUILD_ID'] ||
26
+ env_name = 'KNAPSACK_PRO_CI_NODE_BUILD_ID'
27
+ ENV[env_name] ||
27
28
  ci_env_for(:node_build_id) ||
28
- 'missing-build-id'
29
+ raise("Missing environment variable #{env_name}. Read more at #{KnapsackPro::Urls::KNAPSACK_PRO_CI_NODE_BUILD_ID}")
29
30
  end
30
31
 
31
32
  def ci_node_retry_count
@@ -18,6 +18,8 @@ module KnapsackPro
18
18
 
19
19
  INSTALLATION_GUIDE = "#{HOST}/perma/ruby/installation-guide"
20
20
 
21
+ KNAPSACK_PRO_CI_NODE_BUILD_ID= "#{HOST}/perma/ruby/knapsack-pro-ci-node-build-id"
22
+
21
23
  QUEUE_MODE__CONNECTION_ERROR_WITH_FALLBACK_ENABLED_FALSE = "#{HOST}/perma/ruby/queue-mode-connection-error-with-fallback-enabled-false"
22
24
 
23
25
  QUEUE_MODE__CONNECTION_ERROR_WITH_FALLBACK_ENABLED_TRUE_AND_POSITIVE_RETRY_COUNT = "#{HOST}/perma/ruby/queue-mode-connection-error-with-fallback-enabled-true-and-positive-retry-count"
@@ -1,3 +1,3 @@
1
1
  module KnapsackPro
2
- VERSION = '3.11.0'
2
+ VERSION = '4.0.0'
3
3
  end
@@ -29,6 +29,7 @@ describe 'Request API /v1/build_distributions/subset' do
29
29
  stub_const('ENV', {
30
30
  'KNAPSACK_PRO_ENDPOINT' => endpoint,
31
31
  'KNAPSACK_PRO_TEST_SUITE_TOKEN' => test_suite_token,
32
+ 'KNAPSACK_PRO_CI_NODE_BUILD_ID' => 'some-build-id',
32
33
  })
33
34
  end
34
35
 
@@ -72,8 +72,10 @@ describe KnapsackPro::Config::Env do
72
72
  end
73
73
  end
74
74
 
75
- context "when ENV doesn't exist" do
76
- it { should eq 'missing-build-id' }
75
+ context "when ENV does not exist" do
76
+ it 'raises' do
77
+ expect { subject }.to raise_error(/Missing environment variable KNAPSACK_PRO_CI_NODE_BUILD_ID/)
78
+ end
77
79
  end
78
80
  end
79
81
 
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: 3.11.0
4
+ version: 4.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: 2023-05-04 00:00:00.000000000 Z
11
+ date: 2023-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -404,7 +404,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
404
404
  - !ruby/object:Gem::Version
405
405
  version: '0'
406
406
  requirements: []
407
- rubygems_version: 3.4.10
407
+ rubygems_version: 3.4.8
408
408
  signing_key:
409
409
  specification_version: 4
410
410
  summary: Knapsack Pro splits tests across parallel CI nodes and ensures each parallel