test: keep cancelled embedding probe rounds incomplete
This commit is contained in:
@@ -53,6 +53,7 @@ async def test_probe_real_gateway_embeddings():
|
||||
transport = ObservedTransport(real, capture)
|
||||
run_id, parent, call_id = uuid4().hex, uuid4().hex, uuid4().hex
|
||||
verdict = LiveVerdict("FAIL", "轮次未完成")
|
||||
completed_rounds = 0
|
||||
try:
|
||||
with capture.round_context(session_id=run_id, parent_call_id=parent):
|
||||
try:
|
||||
@@ -65,10 +66,12 @@ async def test_probe_real_gateway_embeddings():
|
||||
assert len(events) == 1 and request_is_valid(events[0])
|
||||
assert result.dim > 0 and len(result.vectors) == 1
|
||||
verdict = LiveVerdict("PASS", "向量形状与实发请求合格")
|
||||
completed_rounds = 1
|
||||
except Exception as error:
|
||||
verdict = classify_live_failure(
|
||||
error, capture.attempts(session_id=run_id, parent_call_id=parent)
|
||||
)
|
||||
completed_rounds = 1
|
||||
finally:
|
||||
write_live_round(
|
||||
Path("tests/outputs/134/live"),
|
||||
@@ -79,7 +82,7 @@ async def test_probe_real_gateway_embeddings():
|
||||
"requested_model": source.model,
|
||||
"provider": source.provider,
|
||||
"planned_rounds": 1,
|
||||
"completed_rounds": 1,
|
||||
"completed_rounds": completed_rounds,
|
||||
"status": verdict.status,
|
||||
"reason": verdict.reason,
|
||||
"session_id": run_id,
|
||||
|
||||
Reference in New Issue
Block a user