bitfab 0.61.2 → 0.62.1

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: c3ee5133d6797e0d931936274c5d05bea38532e5879f8a55567a5417cabdd04d
4
- data.tar.gz: 57666b69b7277a81a3715a3f386d8660d47d6568ef027adc7a4a10fafc02f6c2
3
+ metadata.gz: cc1948acb817b6dd96f4640660c592d8e9445992793a74ab5f42d7ae4e83d4aa
4
+ data.tar.gz: cfe56ae2c624d01c9bef3cbc583e83cf841cf4c50c99087e9138f9dbb00b0049
5
5
  SHA512:
6
- metadata.gz: 8a7d3b6f1f05402242f92004139803d1246be8407c3e71a8246331e8cb2d49ed811f0e54005843549490ae385e2bec32be681392241c2a866d13d502339e2e51
7
- data.tar.gz: 3e2a653d2de7a0d4e64424f3a40ada97e5922968e7862701241efb41a2e3a679e715feb1899ac0e7ace5144bbb4161269b52f2bf5f66e53eef0e9d854397bcf0
6
+ metadata.gz: eb3efe0fa5f4cf0b5487345630ff9f2ce31ae5ed9e0a9a33d5648f91e63b23af959e54fa8d4a7dbd20c757e2eeea2de07704df34b14626c006df447d7bb4c3b9
7
+ data.tar.gz: 261f27ee2d6e223aa74b94c8ed9664b9bc179e4399128ce8258f1158def61b29433d792735860095c87a0c01e76b6959a915d7110d84386ff63214f49563eb07
data/lib/bitfab/replay.rb CHANGED
@@ -465,8 +465,6 @@ module Bitfab
465
465
  # run's tokens (span-aggregated server-side), used below to fill each
466
466
  # item's :tokens.
467
467
  replay_tokens = complete_response&.dig("tokens") || {}
468
- replay_outlines = complete_response&.dig("traceOutlines") || {}
469
- original_outlines = complete_response&.dig("originalTraceOutlines") || {}
470
468
 
471
469
  # trace_id_map maps each item's client-side correlation id (:_sdk_trace_id,
472
470
  # which tagged that item's spans during the run) to the server's trace row
@@ -490,11 +488,7 @@ module Bitfab
490
488
  completed_count += 1
491
489
  missing << local_id if mapped.nil?
492
490
  end
493
- if mapped
494
- item[:tokens] = normalize_tokens(replay_tokens[mapped])
495
- item[:trace_outline] = replay_outlines[mapped]
496
- end
497
- item[:original_trace_outline] = original_outlines[item[:original_trace_id]] if item[:original_trace_id]
491
+ item[:tokens] = normalize_tokens(replay_tokens[mapped]) if mapped
498
492
  end
499
493
  # ALL completed items missing: systemic (the replayed method is not
500
494
  # traced, or uploads are wholesale broken). Raise; the run's traces
@@ -887,9 +881,7 @@ module Bitfab
887
881
  tokens: result[:tokens],
888
882
  model: result[:model],
889
883
  db_snapshot_ref: result[:db_snapshot_ref],
890
- db_branch_timings: result[:db_branch_timings],
891
- trace_outline: result[:trace_outline],
892
- original_trace_outline: result[:original_trace_outline]
884
+ db_branch_timings: result[:db_branch_timings]
893
885
  }
894
886
  })
895
887
  rescue => e
@@ -1091,9 +1083,7 @@ module Bitfab
1091
1083
  source_trace_id: original_trace_id,
1092
1084
  source_span_id: original_span_id,
1093
1085
  db_snapshot_ref:,
1094
- db_branch_timings:,
1095
- trace_outline: nil,
1096
- original_trace_outline: nil
1086
+ db_branch_timings:
1097
1087
  }
1098
1088
  ensure
1099
1089
  release_db_branch_lease(http_client, lease) if lease
@@ -1403,9 +1393,7 @@ module Bitfab
1403
1393
  source_trace_id: source_bitfab_trace_id,
1404
1394
  source_span_id: input_source_span_id,
1405
1395
  db_snapshot_ref:,
1406
- db_branch_timings:,
1407
- trace_outline: nil,
1408
- original_trace_outline: nil
1396
+ db_branch_timings:
1409
1397
  }
1410
1398
  end
1411
1399
  end
@@ -186,7 +186,7 @@ module Bitfab
186
186
  options[:limit] = bound || 10
187
187
  end
188
188
 
189
- %i[name notes max_concurrency experiment_group_id dataset_ids grader_ids mock attempts only_with_assertions dry_run].each do |key|
189
+ %i[name notes max_concurrency experiment_group_id dataset_ids grader_ids mock attempts only_with_assertions judge_assertions dry_run].each do |key|
190
190
  options[key] = args[key] unless args[key].nil?
191
191
  end
192
192
 
@@ -303,6 +303,8 @@ module Bitfab
303
303
  options.on("--grader-ids IDS") { |value| args[:grader_ids] = comma_separated("--grader-ids", value) }
304
304
  options.on("--attempts N", Integer) { |value| args[:attempts] = positive_integer("--attempts", value) }
305
305
  options.on("--only-with-assertions") { args[:only_with_assertions] = true }
306
+ options.on("--judge-assertions",
307
+ "Judge each replay's approved assertions as it finishes (costs model calls)") { args[:judge_assertions] = true }
306
308
  options.on("--dry-run") { args[:dry_run] = true }
307
309
  options.on("--primitive TYPE", %w[async process]) { |value| args[:primitive] = value }
308
310
  options.on("--[no-]memory-throttle") { |value| args[:memory_throttle] = value }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bitfab
4
- VERSION = "0.61.2"
4
+ VERSION = "0.62.1"
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.61.2
4
+ version: 0.62.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harvest Team