Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion eval_protocol/pytest/evaluation_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,11 @@ def create_wrapper_with_signature() -> Callable[[], None]:

# Track whether we've opened browser for this invocation
browser_opened_for_invocation = False
# Track whether we've already suggested running `ep logs`
ep_logs_prompted = False

async def wrapper_body(**kwargs: Unpack[ParameterizedTestKwargs]) -> None:
nonlocal browser_opened_for_invocation
nonlocal browser_opened_for_invocation, ep_logs_prompted

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

eval_metadata = None

Expand Down
Loading