Skip to content

Commit 694752e

Browse files
committed
ignore benchmark report errs
1 parent cd69bec commit 694752e

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

ajet/utils/testing_utils.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,17 @@ def send_test_result(
102102
"append_log": append_log or "",
103103
"data_dashboard_url": data_dashboard_url or "",
104104
}
105-
resp = requests.post(
106-
r"https://benchmark-report.agent-matrix.com/report_test_result",
107-
json=payload,
108-
timeout=timeout,
109-
)
110-
resp.raise_for_status()
111-
return resp.json()
105+
try:
106+
resp = requests.post(
107+
r"https://benchmark-report.agent-matrix.com/report_test_result",
108+
json=payload,
109+
timeout=timeout,
110+
)
111+
resp.raise_for_status()
112+
return resp.json()
113+
except:
114+
logger.error("Unable to report to benchmark server.")
115+
return {}
112116

113117

114118
def populate_test_env_metadata(workspace_dir: str) -> tuple[str, str]:

0 commit comments

Comments
 (0)