Skip to content

Commit

Permalink
Test results keyed off of batch id
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernard Szabo committed Dec 13, 2024
1 parent ad06eee commit cfa3888
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tubular/scripts/dd_synthetic_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def __init__(self, api_key, app_key):
self.api_key = api_key
self.app_key = app_key
self.test_run_id = None
self.test_batch_id = None
self.trigger_time = None

def trigger_synthetic_tests(self, test_requests: [dict]) -> str:
Expand Down Expand Up @@ -51,6 +52,7 @@ def trigger_synthetic_tests(self, test_requests: [dict]) -> str:
aggregate_test_run_id = response_body['batch_id']
logging.info(f"Datadog test run launched: {aggregate_test_run_id}")
self.test_run_id = aggregate_test_run_id
self.test_batch_id = aggregate_test_run_id # used when triggering with /ci option
self.trigger_time = time.time() # Key timeouts off of this
logging.info(f'Tests triggered at time {self.trigger_time}')

Expand Down

0 comments on commit cfa3888

Please sign in to comment.