We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 886d7c0 commit 0e020ebCopy full SHA for 0e020eb
ajet/utils/testing_utils.py
@@ -99,7 +99,14 @@ def send_test_result(
99
Post a single experiment result to the /report_test_result endpoint.
100
Raises requests.HTTPError on non-2xx responses.
101
"""
102
+
103
+ access_token = os.environ.get("BENCHMARK_ACCESS_TOKEN", None)
104
+ if not access_token:
105
+ logger.error("Cannot report to benchmark site, missing administrator token (`BENCHMARK_ACCESS_TOKEN` env variable).")
106
+ return {}
107
108
payload = {
109
+ "access_token": access_token,
110
"git_hash": git_hash,
111
"target": target,
112
"status": status,
0 commit comments