mirror of
https://github.com/vale981/ray
synced 2025-03-09 21:06:39 -04:00
23 lines
439 B
Python
23 lines
439 B
Python
![]() |
import datetime
|
||
|
|
||
|
from typing import Dict, Optional
|
||
|
|
||
|
|
||
|
def handle_result(
|
||
|
created_on: datetime.datetime,
|
||
|
category: str,
|
||
|
test_suite: str,
|
||
|
test_name: str,
|
||
|
status: str,
|
||
|
results: Dict,
|
||
|
artifacts: Dict,
|
||
|
last_logs: str,
|
||
|
team: str,
|
||
|
) -> Optional[str]:
|
||
|
assert test_suite == "rllib_tests"
|
||
|
|
||
|
if not status == "finished":
|
||
|
return f"Test script did not finish successfully ({status})."
|
||
|
|
||
|
return None
|