Skip to content

Commit 1aba18b

Browse files
cursoragentdhuang
andcommitted
Add tip to run ep logs for local UI
Co-authored-by: dhuang <dhuang@fireworks.ai>
1 parent b483e00 commit 1aba18b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

eval_protocol/pytest/evaluation_test.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,11 @@ def create_wrapper_with_signature() -> Callable[[], None]:
258258

259259
# Track whether we've opened browser for this invocation
260260
browser_opened_for_invocation = False
261+
# Track whether we've already suggested running `ep logs`
262+
ep_logs_prompted = False
261263

262264
async def wrapper_body(**kwargs: Unpack[ParameterizedTestKwargs]) -> None:
263-
nonlocal browser_opened_for_invocation
265+
nonlocal browser_opened_for_invocation, ep_logs_prompted
264266

265267
# Initialize external logging sinks (Fireworks/ES) from env (idempotent)
266268
init_external_logging_from_env()
@@ -281,6 +283,9 @@ async def wrapper_body(**kwargs: Unpack[ParameterizedTestKwargs]) -> None:
281283
table_url = generate_invocation_filter_url(invocation_id, f"{base_url}/table")
282284
open_browser_tab(table_url)
283285
browser_opened_for_invocation = True
286+
elif not ep_logs_prompted:
287+
print("Tip: Run `ep logs` in another terminal to start the local UI before viewing results.")
288+
ep_logs_prompted = True
284289

285290
eval_metadata = None
286291

0 commit comments

Comments
 (0)