Skip to content

Commit

Permalink
diagnostic statements when polling for test results
Browse files Browse the repository at this point in the history
  • Loading branch information
bszabo committed Jan 10, 2025
1 parent 9adf4ed commit 91aa38b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tubular/scripts/dd_synthetic_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 91aa38b

Please sign in to comment.