verifiers 0.3.2.dev104__py3-none-any.whl → 0.3.2.dev105__py3-none-any.whl

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.
@@ -297,10 +297,10 @@ def _push_footer(push: "PushState | None") -> Group | None:
297
297
  line.append(f" not closed out: {push.error}", style="red")
298
298
  elif push.error:
299
299
  line = Text(f"Trace push failed ({push.error})", style="red", overflow="fold")
300
- elif push.incomplete and push.url:
301
- # Closed out, but the uploader lost records: what landed is there, say what didn't.
302
- line = Text(f"Traces pushed ({push.url})", style="white", overflow="fold")
303
- line.append(f" incomplete: {push.incomplete}", style="red")
300
+ elif (incomplete := push.incomplete) and push.url:
301
+ label = "Traces pushed" if push.finished else "Pushing traces"
302
+ line = Text(f"{label} ({push.url})", style="white", overflow="fold")
303
+ line.append(f" incomplete: {incomplete}", style="red")
304
304
  elif not push.finished:
305
305
  line = Text(f"Pushing traces ({push.url})", style="dim", overflow="fold")
306
306
  else:
@@ -24,9 +24,11 @@ class PushState:
24
24
 
25
25
  run: pr.Run | None = None
26
26
  error: str | None = None
27
- incomplete: str | None = None
28
- """Set when the run closed out but the uploader lost records on the way: the run
29
- exists and holds what did land, so the footer says so rather than "failed"."""
27
+
28
+ @property
29
+ def incomplete(self) -> str | None:
30
+ """Current upload errors and record losses, including while the run is active."""
31
+ return _losses(self.run) if self.run is not None else None
30
32
 
31
33
  @property
32
34
  def url(self) -> str | None:
@@ -157,9 +159,8 @@ def _close(
157
159
  if state.error is None:
158
160
  state.error = f"{type(e).__name__}: {e}"
159
161
  else:
160
- state.incomplete = _losses(run)
161
- if state.incomplete:
162
- logger.warning("--push: %s, but %s", status.value, state.incomplete)
162
+ if incomplete := state.incomplete:
163
+ logger.warning("--push: %s, but %s", status.value, incomplete)
163
164
  if run.url:
164
165
  # The run's own status: `finish()` is a no-op once another caller closed it.
165
166
  logger.info("--push: %s -> %s", run.status.value, run.url)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: verifiers
3
- Version: 0.3.2.dev104
3
+ Version: 0.3.2.dev105
4
4
  Summary: Verifiers: Environments for LLM Reinforcement Learning
5
5
  Project-URL: Homepage, https://github.com/primeintellect-ai/verifiers
6
6
  Project-URL: Documentation, https://github.com/primeintellect-ai/verifiers
@@ -29,7 +29,7 @@ verifiers/v1/cli/resume.py,sha256=hqV5AxxqeIInJeEZQerQznuijhMNijFEFcHZIltfLdE,47
29
29
  verifiers/v1/cli/validate.py,sha256=K7mCz-ZI7sq69MQPg6QvreHOuEj-bgMln69a28kDTvA,17179
30
30
  verifiers/v1/cli/dashboard/__init__.py,sha256=v-baMxQuWxOCsbU7-p_jj2Q9BUnTN-TWi1q2hK6rU2s,198
31
31
  verifiers/v1/cli/dashboard/base.py,sha256=kUP93zJSIVLptSbnWX6MOy8kGg63fpeAzPqakCpPyDc,3547
32
- verifiers/v1/cli/dashboard/eval.py,sha256=D4iX69Ou8hHcv9_Bn2sPKF-9Zg89q00XLvNaLCajlNg,38369
32
+ verifiers/v1/cli/dashboard/eval.py,sha256=HEXPEegNXdgU9zAIuHzsWsoSIHyiOcDZh4tCGFNxKAk,38353
33
33
  verifiers/v1/cli/dashboard/replay.py,sha256=_X5up9MJsRbd_sWe4LgNTPNT8k1ip4xNpo50hxI3Ljk,2697
34
34
  verifiers/v1/cli/dashboard/validate.py,sha256=xrpK3Y90JsoDCQYLLvvsnJ4CPRMvSSJIghfHK62E6FQ,3687
35
35
  verifiers/v1/cli/eval/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -185,13 +185,13 @@ verifiers/v1/utils/loaders.py,sha256=2TrgZK3MzKub1GnfaTVIQhlwF6q4qATXZCjicH6nT9c
185
185
  verifiers/v1/utils/logging.py,sha256=-zgaM-HZsgxumZ4wYNlRMZepp6JanCSjeL2wSVulwJM,2296
186
186
  verifiers/v1/utils/memory.py,sha256=ZkIvGk6uITAH5sKon65LifKPbvZr8mJ__PVc23FZpOQ,1835
187
187
  verifiers/v1/utils/paths.py,sha256=it_4JWf_8bPZe4TRcyvL7_KJ4fsbEsxhhIY_xA8Ikus,308
188
- verifiers/v1/utils/platform.py,sha256=F4qMxWJY5MwtJ7ozASwBrpcU8u3lXvHIc5rg-rviDOQ,7181
188
+ verifiers/v1/utils/platform.py,sha256=YwTHVA1Onn74lG6S3sdHus9OlP-rAbwkk9Po7h-BjpE,7159
189
189
  verifiers/v1/utils/prime.py,sha256=UTYRjp9cbjNb6CVmBHda-1wWZAIIfxNOmTyNuT7_wL4,970
190
190
  verifiers/v1/utils/retries.py,sha256=Y2ZgrAjn-qNkRKZP_RVNL_7EK0iaRcZeCa404lpGYi4,5417
191
191
  verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
192
192
  verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
193
- verifiers-0.3.2.dev104.dist-info/METADATA,sha256=6pA2Gb_GfaderhuWT55BLeMboFhtpLv-D-jOIjVX_II,4238
194
- verifiers-0.3.2.dev104.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
195
- verifiers-0.3.2.dev104.dist-info/entry_points.txt,sha256=iugElcdWPKbQM7uFF0lZ8iUpHsNr17-BwEAAjJWxV3U,259
196
- verifiers-0.3.2.dev104.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
197
- verifiers-0.3.2.dev104.dist-info/RECORD,,
193
+ verifiers-0.3.2.dev105.dist-info/METADATA,sha256=VP57HoS62DnWGpDZUu3u0quWYfjoEmFTCFrwrGgPjfE,4238
194
+ verifiers-0.3.2.dev105.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
195
+ verifiers-0.3.2.dev105.dist-info/entry_points.txt,sha256=iugElcdWPKbQM7uFF0lZ8iUpHsNr17-BwEAAjJWxV3U,259
196
+ verifiers-0.3.2.dev105.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
197
+ verifiers-0.3.2.dev105.dist-info/RECORD,,