From cfa3888218b398dbf33892afb471403802701905 Mon Sep 17 00:00:00 2001 From: Bernard Szabo Date: Fri, 13 Dec 2024 09:39:02 -0500 Subject: [PATCH] Test results keyed off of batch id --- tubular/scripts/dd_synthetic_tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tubular/scripts/dd_synthetic_tests.py b/tubular/scripts/dd_synthetic_tests.py index 6dec4c61..f22f740f 100644 --- a/tubular/scripts/dd_synthetic_tests.py +++ b/tubular/scripts/dd_synthetic_tests.py @@ -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: @@ -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}')