From 91aa38b70656cefb7a5c4c809585442550a3de62 Mon Sep 17 00:00:00 2001 From: bszabo Date: Fri, 10 Jan 2025 10:53:45 -0500 Subject: [PATCH] diagnostic statements when polling for test results --- tubular/scripts/dd_synthetic_tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tubular/scripts/dd_synthetic_tests.py b/tubular/scripts/dd_synthetic_tests.py index d528e355..4a80384d 100644 --- a/tubular/scripts/dd_synthetic_tests.py +++ b/tubular/scripts/dd_synthetic_tests.py @@ -147,11 +147,12 @@ def _poll_for_test_result(self, test): Poll for test run completion within the maximum allowable time for the specified test. Returns None if still running; otherwise, returns True on test success and False on test failure. """ - logging.info(f"Polling on test {test.public_id}: {test.name}") + logging.info(f"Polling on test {test.public_id}: {test.name}, test_run_id = {test.test_run_id}") test_result = None while test_result is None and (time.time() - self.trigger_time) < (self.MAX_ALLOWABLE_TIME_SECS): time.sleep(5) # Poll every 5 seconds test_result = self._get_test_result(test) + logging.info(f'{test_result=}') if test_result is None: raise Exception("The test run timed out.")