llm-host/tests
Neil Bantoc c8f04f49b7 Requests table: durations in h/m/s, and the seconds each phase took
Duration, TTFT and the two new columns use one formatter that grows units only
as the value reaches them: 142 ms, 7.52 s, 31.2 s, then 1m 20s, then
1h 02m 06s. Sub-minute values keep their old precision, which is where almost
every request lives; a long generation no longer reads as "80.4 s".

Prompt sec and Generated sec show the two phases the rates were already
computed over, so a row now says where its time went: an 8011-token prompt as
19.3 s of prefill at 415 tok/s, then 6.74 s generating 141 tokens at 20.9. The
seconds come from the same split as the rates beside them -- a test asserts
tok/s == tokens / seconds for both phases, so the two can't drift apart.

A request that didn't stream has no first-token mark and so no split: its
prompt seconds read "—" and its whole duration is charged to generation, which
the column subtitle now says rather than leaving to be inferred.

run_phases/run_row move out of the snapshot closure to module level, so the
suite exercises the real row-building instead of a copy of it that had to be
kept in step by hand.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-11-04 00:23:33 -08:00
..
fixtures Add tests/: four suites, a runner, and a sandbox that can't escape 2026-11-03 02:23:15 -08:00
harness.py Add tests/: four suites, a runner, and a sandbox that can't escape 2026-11-03 02:23:15 -08:00
run.py Add tests/: four suites, a runner, and a sandbox that can't escape 2026-11-03 02:23:15 -08:00
test_dashboard.py Requests table: durations in h/m/s, and the seconds each phase took 2026-11-04 00:23:33 -08:00
test_opencode.py Reasoning effort is the dashboard's to set, not the client's 2026-11-03 15:01:26 -08:00
test_proxy.py Reasoning effort is the dashboard's to set, not the client's 2026-11-03 15:01:26 -08:00
test_reasoning.py Reasoning effort is the dashboard's to set, not the client's 2026-11-03 15:01:26 -08:00