bitfab 0.58.2 → 0.58.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/lib/bitfab/client.rb +2 -1
- data/lib/bitfab/http_client.rb +2 -1
- data/lib/bitfab/replay.rb +2 -1
- data/lib/bitfab/replay_registry.rb +1 -1
- data/lib/bitfab/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: 959d7652dd7c6e3fdfea18c79e759300b2ebf826401f0e0601ea3642eae84034
|
|
4
|
+
data.tar.gz: bc7820f643314689a9440247edf0e81d4c234208ce1c903db7a9cb904da685fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a92544b809ea07e087e55b031d82130baf820f636cf41b4d90f4d1a0d1d3513024d733c6cdbe57e74dd7832552c0029816424f25c0fe65e1e585168b8908221e
|
|
7
|
+
data.tar.gz: 691217d535f95027773b65454c40470901a393aef97906283fe9f33ea38a05bd21b70105dbc8d0344c9fffaa1fb6839ecc99fc5b7480c879761189ca343e0b0d
|
data/lib/bitfab/client.rb
CHANGED
|
@@ -185,7 +185,7 @@ module Bitfab
|
|
|
185
185
|
# queued work from in-flight work. A raising callback never crashes the run.
|
|
186
186
|
# @return [Hash] with :items, :test_run_id, :test_run_url
|
|
187
187
|
def replay(receiver, method_name = nil, trace_function_key:, limit: nil, trace_ids: nil, concurrency: nil, max_concurrency: ReplayConcurrency::UNSET,
|
|
188
|
-
name: nil, code_change_description: Replay::CODE_CHANGE_UNSET, code_change_files: Replay::CODE_CHANGE_UNSET, experiment_group_id: nil, dataset_id: nil, dataset_ids: nil, grader_ids: nil, mock: "marked", attempts: ReplayConcurrency::UNSET, only_with_assertions: false, dry_run: false,
|
|
188
|
+
name: nil, code_change_description: Replay::CODE_CHANGE_UNSET, code_change_files: Replay::CODE_CHANGE_UNSET, experiment_group_id: nil, dataset_id: nil, dataset_ids: nil, grader_ids: nil, mock: "marked", attempts: ReplayConcurrency::UNSET, only_with_assertions: false, judge_assertions: false, dry_run: false,
|
|
189
189
|
adapt_inputs: nil, mock_override: nil, db_branch: nil, on_item_start: nil, on_item_finish: nil, on_progress: nil)
|
|
190
190
|
Replay.run(
|
|
191
191
|
self,
|
|
@@ -199,6 +199,7 @@ module Bitfab
|
|
|
199
199
|
max_concurrency:,
|
|
200
200
|
attempts:,
|
|
201
201
|
only_with_assertions:,
|
|
202
|
+
judge_assertions:,
|
|
202
203
|
dry_run:,
|
|
203
204
|
code_change_description:,
|
|
204
205
|
code_change_files:,
|
data/lib/bitfab/http_client.rb
CHANGED
|
@@ -262,7 +262,7 @@ module Bitfab
|
|
|
262
262
|
# same org and trace function or the server rejects the replay
|
|
263
263
|
def start_replay(trace_function_key, limit, trace_ids: nil, code_change_description: nil,
|
|
264
264
|
code_change_files: nil, experiment_group_id: nil, name: nil, include_db_branch_lease: false, dataset_ids: nil,
|
|
265
|
-
grader_ids: nil, db_branch_settings: nil, attempts: 1, only_with_assertions: false, include_original_metadata: false)
|
|
265
|
+
grader_ids: nil, db_branch_settings: nil, attempts: 1, only_with_assertions: false, judge_assertions: false, include_original_metadata: false)
|
|
266
266
|
payload = {
|
|
267
267
|
"traceFunctionKey" => trace_function_key
|
|
268
268
|
}
|
|
@@ -286,6 +286,7 @@ module Bitfab
|
|
|
286
286
|
payload["graderIds"] = grader_ids unless grader_ids.nil?
|
|
287
287
|
payload["attempts"] = attempts if attempts > 1
|
|
288
288
|
payload["onlyWithAssertions"] = true if only_with_assertions
|
|
289
|
+
payload["judgeAssertions"] = true if judge_assertions
|
|
289
290
|
payload["includeOriginalMetadata"] = true if include_original_metadata
|
|
290
291
|
payload["dbBranchSettings"] = db_branch_settings unless db_branch_settings.nil?
|
|
291
292
|
git_state = GitState.resolved
|
data/lib/bitfab/replay.rb
CHANGED
|
@@ -258,7 +258,7 @@ module Bitfab
|
|
|
258
258
|
# @return [Hash] with :items, :test_run_id, :test_run_url
|
|
259
259
|
def run(client, receiver, method_name, trace_function_key:, limit: nil, trace_ids: nil, name: nil,
|
|
260
260
|
concurrency: nil, max_concurrency: ReplayConcurrency::UNSET, code_change_description: CODE_CHANGE_UNSET, code_change_files: CODE_CHANGE_UNSET, experiment_group_id: nil,
|
|
261
|
-
dataset_id: nil, dataset_ids: nil, grader_ids: nil, mock: "marked", attempts: ReplayConcurrency::UNSET, only_with_assertions: false, dry_run: false,
|
|
261
|
+
dataset_id: nil, dataset_ids: nil, grader_ids: nil, mock: "marked", attempts: ReplayConcurrency::UNSET, only_with_assertions: false, judge_assertions: false, dry_run: false,
|
|
262
262
|
adapt_inputs: nil, mock_override: nil, db_branch: nil, on_item_start: nil, on_item_finish: nil, on_progress: nil)
|
|
263
263
|
concurrency_options = ReplayConcurrency.resolve(concurrency, attempts, max_concurrency)
|
|
264
264
|
attempts = concurrency_options.attempts
|
|
@@ -354,6 +354,7 @@ module Bitfab
|
|
|
354
354
|
grader_ids:,
|
|
355
355
|
attempts:,
|
|
356
356
|
only_with_assertions:,
|
|
357
|
+
judge_assertions:,
|
|
357
358
|
include_original_metadata: !adapt_inputs.nil?,
|
|
358
359
|
db_branch_settings: resolved_db_branch_settings
|
|
359
360
|
)
|
|
@@ -21,7 +21,7 @@ module Bitfab
|
|
|
21
21
|
OPTION_NAMES = %i[
|
|
22
22
|
limit trace_ids name concurrency max_concurrency code_change_description
|
|
23
23
|
code_change_files experiment_group_id dataset_id dataset_ids grader_ids mock
|
|
24
|
-
mock_override adapt_inputs db_branch attempts only_with_assertions dry_run on_item_finish
|
|
24
|
+
mock_override adapt_inputs db_branch attempts only_with_assertions judge_assertions dry_run on_item_finish
|
|
25
25
|
].freeze
|
|
26
26
|
|
|
27
27
|
def initialize
|
data/lib/bitfab/version.rb
CHANGED