bitfab 0.69.0 → 0.70.0

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: 7c5044f5cc55988582b4a4428242ac2c0ea12fb87ba228054ad7c01a08e760ca
4
- data.tar.gz: f410e0a0560c11fd3185c4f237bb30d37ac16ed5dcb3c0d4beb2d08d5b62f863
3
+ metadata.gz: 1db22eed10f5c7fd7e24777507be907e01a1a65f7df1a10ff388bc347e17b5f7
4
+ data.tar.gz: e30cd6c045153777120348af94e6884ee77fef98cb433e14c470886b6085842a
5
5
  SHA512:
6
- metadata.gz: 680f7e7b023a94951496fba7b6b2aef5bb61f4250d3a3cfa5d2db3dae7a91038a0c3f03474419eb65e9defa0fc0c3811d7ee4346a4d9b50c15f2fa29a3bda703
7
- data.tar.gz: b6230d97bb985ad5748e7e45121f89fdc4cbf65861eaa7ac815bd028bd34d43774a36f4ab3941b54e830121c7c097e2ee98da013834d783a69147a7b3a4dc570
6
+ metadata.gz: 838efe0f9650542d604b48c330aa1dbd033f96091dd7a24ad050d1b8929854cee0af10342d2a3882aaef97c33ab4fb492b1e8a3f1237e74bfdc0ac0a51546064
7
+ data.tar.gz: 6244270e97642c69cad5fc9c08bb26fa7492149d2d98f04ec6432c4c9f314ba577649f5af2d13913ba39704f0fca46c0d03d435845b647532f9068d97da323aa
@@ -253,6 +253,9 @@ module Bitfab
253
253
  # Start a replay session by fetching historical traces.
254
254
  # Blocking call. Returns hash with experimentId, experimentUrl, and items array.
255
255
  #
256
+ # @param code_change_type [String, nil] the code change choice this replay
257
+ # named, such as "default-branch" or "skip"; stored on the experiment so
258
+ # the dashboard can say what the run was compared against
256
259
  # @param code_change_description [String, nil] optional rationale for the
257
260
  # code change being tested in this replay
258
261
  # @param code_change_files [Array<Hash>, nil] optional list of edited files,
@@ -273,7 +276,7 @@ module Bitfab
273
276
  # directly to this experiment, graded as the union with the dataset's
274
277
  # runnable graders at completion; each must be an active/live grader in the
275
278
  # same org and trace function or the server rejects the replay
276
- def start_replay(trace_function_key, limit, trace_ids: nil, code_change_description: nil,
279
+ def start_replay(trace_function_key, limit, trace_ids: nil, code_change_type: nil, code_change_description: nil,
277
280
  code_change_files: nil, experiment_group_id: nil, experiment_group_name: nil, name: nil, notes: nil, metadata: nil, include_db_branch_lease: false, dataset_ids: nil,
278
281
  grader_ids: nil, db_branch_settings: nil, attempts: 1, only_with_assertions: false, skip_assertion_judging: false, include_original_metadata: false, experimental_selective_replay: nil, dry_run: false, invocation: nil)
279
282
  payload = {
@@ -286,6 +289,7 @@ module Bitfab
286
289
  payload["name"] = name unless name.nil?
287
290
  payload["notes"] = notes unless notes.nil?
288
291
  payload["metadata"] = metadata unless metadata.nil?
292
+ payload["codeChangeType"] = code_change_type unless code_change_type.nil?
289
293
  payload["codeChangeDescription"] = code_change_description unless code_change_description.nil?
290
294
  payload["codeChangeFiles"] = normalize_code_change_files(code_change_files) unless code_change_files.nil?
291
295
  payload["experimentGroupId"] = experiment_group_id unless experiment_group_id.nil?
data/lib/bitfab/replay.rb CHANGED
@@ -406,6 +406,7 @@ module Bitfab
406
406
  name:,
407
407
  notes:,
408
408
  metadata:,
409
+ code_change_type: code_change,
409
410
  code_change_description:,
410
411
  code_change_files:,
411
412
  experiment_group_id:,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bitfab
4
- VERSION = "0.69.0"
4
+ VERSION = "0.70.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitfab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.69.0
4
+ version: 0.70.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harvest Team