mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00

This fixes the previous problems from team column revert. This has 2 additional changes; alert handler receives the team argument, which was the root cause of breakage; https://github.com/ray-project/ray/pull/21289 Previously, tests without a team column were raising an exception, but I made the condition weaker (warning logs). I will eventually change it to raise an exception, but for smoother transition, we will log warning instead for a short time
13 lines
397 B
Python
13 lines
397 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]:
|
|
|
|
if not status == "finished":
|
|
return f"Test script did not finish successfully ({status})."
|
|
|
|
return None
|