]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Disable bulk test with TSAN for now and add some debug code to api test
authorOtto <otto.moerbeek@open-xchange.com>
Wed, 10 Nov 2021 12:34:04 +0000 (13:34 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Wed, 10 Nov 2021 12:34:04 +0000 (13:34 +0100)
.github/workflows/build-and-test-all.yml
regression-tests.api/runtests.py

index d9fd887d508e121d9f3e773941ddb1604aafb864..513c456a1fabf18be807722cc6d52724da5ed666 100644 (file)
@@ -330,7 +330,7 @@ jobs:
     runs-on: ubuntu-20.04
     strategy:
       matrix:
-        sanitizers: [ubsan+asan, tsan]
+        sanitizers: [ubsan+asan]
         threads: [1, 2, 3, 4, 8, 16]
         mthreads: [2048, 4096]
         shards: [1, 2, 1028]
index 956047e993877708e99c01bcc72f6691940e6cb4..3c2463d5c38a7bd35a1172a54ad7470f72bb7d7e 100755 (executable)
@@ -5,6 +5,7 @@
 from __future__ import print_function
 import os
 import requests
+from requests.exceptions import HTTPError
 import shutil
 import subprocess
 import sys
@@ -229,13 +230,17 @@ serverproc = subprocess.Popen(servercmd, close_fds=True)
 
 print("Waiting for webserver port to become available...")
 available = False
+time.sleep(0.5)
 for try_number in range(0, 10):
     try:
         res = requests.get('http://127.0.0.1:%s/' % WEBPORT)
         available = True
         break
-    except:
-        time.sleep(0.5)
+    except HTTPError as http_err:
+      print(f'HTTP error occurred: {http_err}')
+    except Exception as err:
+      print(f'Other error occurred: {err}')
+    time.sleep(0.5)
 
 if not available:
     print("Webserver port not reachable after 10 tries, giving up.")