selective-ruby-core 0.2.5-arm64-darwin → 0.2.7-arm64-darwin
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/lib/selective/ruby/core/controller.rb +19 -13
- data/lib/selective/ruby/core/version.rb +1 -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: d9d970f78c86a3165c5cfa0483b38c340ce5183cb0914cce0165e3b2c75cc20c
|
4
|
+
data.tar.gz: d767b319c4ecf2b0c5df4bb22c92d005040abfeb56c82ae9b2a0b47b2df8fe08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 245edf4a16c464609a3ad390a7df5d93bb037f893b48c29fd86214d73b7aac32c6ecbcf9c667925f331dc8b3a20ceeed5bfcde7c087f3815748681a6194d8acc
|
7
|
+
data.tar.gz: 07fc8758df20f683538abf4acf416cea20737f5ea9aedf7e0d86d6b6de7c633a95930d1b93f4d7cf9de53d4e5dfe8a24c1d324e92a961ca410ca12459de7e314
|
@@ -154,7 +154,7 @@ module Selective
|
|
154
154
|
missing = REQUIRED_CONFIGURATION.each_with_object([]) do |(key, env_var), arry|
|
155
155
|
arry << env_var if env[key].nil? || env[key].empty?
|
156
156
|
end
|
157
|
-
|
157
|
+
|
158
158
|
with_error_handling do
|
159
159
|
raise "Missing required environment variables: #{missing.join(", ")}" unless missing.empty?
|
160
160
|
raise "Invalid host: #{env['host']}" unless env['host'].match?(/^wss?:\/\//)
|
@@ -165,16 +165,22 @@ module Selective
|
|
165
165
|
transport_path = File.join(ROOT_GEM_PATH, "lib", "bin", "transport")
|
166
166
|
get_transport_path = File.join(ROOT_GEM_PATH, "bin", "get_transport")
|
167
167
|
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
168
|
+
if !File.exist?(transport_path)
|
169
|
+
# The get_transport script is not released with the gem, so this
|
170
|
+
# code is intended for development/CI purposes.
|
171
|
+
if File.exist?(get_transport_path)
|
172
|
+
output, status = Open3.capture2e(get_transport_path)
|
173
|
+
if !status.success?
|
174
|
+
puts <<~TEXT
|
175
|
+
Failed to download transport binary.
|
176
|
+
|
177
|
+
#{output}
|
178
|
+
TEXT
|
179
|
+
end
|
180
|
+
else
|
181
|
+
with_error_handling do
|
182
|
+
raise "Selective transport binary not found. Please contact support or compile it manually. See: https://github.com/selectiveci/transport"
|
183
|
+
end
|
178
184
|
end
|
179
185
|
end
|
180
186
|
|
@@ -201,7 +207,7 @@ module Selective
|
|
201
207
|
# The message is nil until the transport opens the pipe
|
202
208
|
# for writing. So, we must handle that here.
|
203
209
|
next sleep(0.1) if message.nil?
|
204
|
-
|
210
|
+
|
205
211
|
response = JSON.parse(message, symbolize_names: true)
|
206
212
|
@connectivity = true if response[:command] == "connected"
|
207
213
|
break
|
@@ -263,7 +269,7 @@ module Selective
|
|
263
269
|
def handle_test_manifest(_data)
|
264
270
|
self.class.restore_reporting!
|
265
271
|
@logger.info("Sending Response: test_manifest")
|
266
|
-
data = {test_cases: runner.manifest["examples"]}
|
272
|
+
data = {test_cases: runner.manifest["examples"] || runner.manifest["test_cases"]}
|
267
273
|
num_commits = build_env["num_commits"] || 1000
|
268
274
|
if (diff = get_diff(num_commits))
|
269
275
|
data[:modified_test_files] = modified_test_files(diff)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: selective-ruby-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: arm64-darwin
|
6
6
|
authors:
|
7
7
|
- Benjamin Wood
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2025-06-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: zeitwerk
|