mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
[Release Test] Change release test db reporter report_time to report_timestamp_ms (#22844)
This's easier to sort and compare timestamp and avoid timezone issue.
This commit is contained in:
parent
5ebc32d7c2
commit
1b5efb588e
1 changed files with 2 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
import datetime
|
||||
import time
|
||||
import json
|
||||
import boto3
|
||||
from botocore.config import Config
|
||||
|
@ -16,10 +16,9 @@ class DBReporter(Reporter):
|
|||
def report_result(self, test: Test, result: Result):
|
||||
logger.info("Persisting result to the databricks delta lake...")
|
||||
|
||||
now = datetime.datetime.utcnow()
|
||||
result_json = {
|
||||
"_table": "release_test_result",
|
||||
"report_time": now.strftime("%Y-%m-%d %H:%M:%S"),
|
||||
"report_timestamp_ms": int(time.time() * 1000),
|
||||
"status": result.status or "",
|
||||
"results": result.results or {},
|
||||
"name": test.get("name", ""),
|
||||
|
|
Loading…
Add table
Reference in a new issue