]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Enable TSAN for bulk tests. 12477/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 26 Jan 2023 09:04:36 +0000 (10:04 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 26 Jan 2023 12:39:46 +0000 (13:39 +0100)
It seems that putting a sleep between the dnsbulktest runs in regression-tests/recursor-test circumvents the UDP packet loss issues.

Still have to find out how and why.

.github/workflows/build-and-test-all.yml
regression-tests/recursor-test

index b202abe1b3a438edb0d2690aac689f6069e9b84a..52d4b488020b442cd975083bd636f14543061abf 100644 (file)
@@ -345,7 +345,7 @@ jobs:
     runs-on: ubuntu-20.04
     strategy:
       matrix:
-        sanitizers: [ubsan+asan]
+        sanitizers: [ubsan+asan, tsan]
         threads: [1, 2, 3, 4, 8]
         mthreads: [2048]
         shards: [1, 2, 1024]
index abf63f40bb0eb14817a2b341d9910eade5c6f33e..7e6f67d3525e798f0754fe6512f2c8a0884f2076 100755 (executable)
@@ -44,10 +44,11 @@ fi
 echo
 echo === First run with limit=$limit threads=$threads mthreads=$mthreads shards=$shards ===
 ${DNSBULKTEST} --www=false -qe 127.0.0.1 $port $limit < ${CSV} > bulktest.results
-echo
 kill -USR1 $(cat pdns_recursor.pid) || true
 ${RECCONTROL} --timeout=20 --socket-dir=. --config-dir=. get-all || true
 
+sleep 5
+
 # rerun 1 with hot cache
 echo
 echo === Second run with limit=$limit threads=$threads mthreads=$mthreads shards=$shards ===
@@ -55,6 +56,8 @@ ${DNSBULKTEST} --www=false -qe 127.0.0.1 $port $limit < ${CSV} > bulktest.result
 kill -USR1 $(cat pdns_recursor.pid) || true
 ${RECCONTROL} --timeout=20 --socket-dir=. --config-dir=. get-all || true
 
+sleep 5
+
 # rerun 2 with hot cache
 echo
 echo === Third run with limit=$limit threads=$threads mthreads=$mthreads shards=$shards ===