selective-ruby-core 0.2.1-aarch64-linux → 0.2.2-aarch64-linux
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/selective/ruby/core/controller.rb +4 -4
- data/lib/selective/ruby/core/version.rb +1 -1
- data/lib/selective-ruby-core.rb +3 -3
- 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: dce8983e6c53ad56dc5d7829282ca44f413f7b5cf86c29929810c4c893e5a6a9
|
4
|
+
data.tar.gz: 51142c78c87a1de76ca42368e8d2259c7c564c92ef25aa55a0126a9b8f12a522
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff8ae6e7d6350bbe66b95d4898f043ce70c29212982a8b586d97b50c55361a467dcbb4cd4fd79f6b7a07af7a59b4c8d5de3e6c588efd4d4f40254c2462b4b8eb
|
7
|
+
data.tar.gz: ebeda0af47053f8766bd207f5bf8933f94b6afce83939f0361f510d1a5d362b106eaca3d0fa40a41701d02e55688bd56e79424e5d2026c3a24c555882f296d1d
|
@@ -14,12 +14,13 @@ module Selective
|
|
14
14
|
"api_key" => "SELECTIVE_API_KEY",
|
15
15
|
"platform" => "SELECTIVE_PLATFORM",
|
16
16
|
"run_id" => "SELECTIVE_RUN_ID",
|
17
|
+
"run_attempt" => "SELECTIVE_RUN_ATTEMPT",
|
17
18
|
"branch" => "SELECTIVE_BRANCH"
|
18
19
|
}.freeze
|
19
20
|
|
20
|
-
def initialize(
|
21
|
+
def initialize(runner_class, runner_args, debug: false, log: false)
|
21
22
|
@debug = debug
|
22
|
-
@runner =
|
23
|
+
@runner = runner_class.new(runner_args, method(:test_case_callback))
|
23
24
|
@retries = 0
|
24
25
|
@runner_id = safe_filename(get_runner_id)
|
25
26
|
@logger = init_logger(log)
|
@@ -113,7 +114,6 @@ module Selective
|
|
113
114
|
host = build_env.delete("host")
|
114
115
|
run_id = build_env.delete("run_id")
|
115
116
|
run_attempt = build_env.delete("run_attempt")
|
116
|
-
run_attempt = SecureRandom.uuid if run_attempt.nil? || run_attempt.empty?
|
117
117
|
|
118
118
|
params = {
|
119
119
|
"run_id" => run_id,
|
@@ -267,7 +267,7 @@ module Selective
|
|
267
267
|
end
|
268
268
|
|
269
269
|
def handle_run_test_cases(data)
|
270
|
-
runner.run_test_cases(data[:test_case_ids]
|
270
|
+
runner.run_test_cases(data[:test_case_ids])
|
271
271
|
end
|
272
272
|
|
273
273
|
def handle_remove_failed_test_case_result(data)
|
data/lib/selective-ruby-core.rb
CHANGED
@@ -44,7 +44,7 @@ module Selective
|
|
44
44
|
attr_reader :debug, :log, :runner_name, :args, :command
|
45
45
|
|
46
46
|
def run
|
47
|
-
Selective::Ruby::Core::Controller.new(
|
47
|
+
Selective::Ruby::Core::Controller.new(runner_class, args, debug: debug, log: log).send(command)
|
48
48
|
end
|
49
49
|
|
50
50
|
def parse_args(args)
|
@@ -56,8 +56,8 @@ module Selective
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
def
|
60
|
-
Selective::Ruby::Core.runner_for(runner_name)
|
59
|
+
def runner_class
|
60
|
+
Selective::Ruby::Core.runner_for(runner_name)
|
61
61
|
end
|
62
62
|
|
63
63
|
def require_runner
|
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.2
|
5
5
|
platform: aarch64-linux
|
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: 2024-01-
|
12
|
+
date: 2024-01-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: zeitwerk
|