Commit e3935db3 authored by Tomas Krizek's avatar Tomas Krizek

Merge branch 'contrib-fix-resperf' into 'master'

job_manager/run_resperf: execute resperf on host network

See merge request !47
parents 95d68a91 6daed96f
Pipeline #43991 passed with stage
in 1 minute and 14 seconds
......@@ -78,7 +78,7 @@ for i in $(seq 3); do
# Execute resperf
docker-compose --no-ansi up -d
docker run registry.labs.nic.cz/knot/respdiff/resperf:shortlist3 -q 500000 -m 10000 -C 200 -c 30 -d shortlist -t 15 -r 0 -s 127.0.0.1 -p {{ resperf['port'] }} &>>${JOBNAME}_resperf.txt
docker run --network host registry.labs.nic.cz/knot/respdiff/resperf:shortlist3 -q 500000 -m 10000 -C 200 -c 30 -d shortlist -t 15 -r 0 -s 127.0.0.1 -p {{ resperf['port'] }} &>>${JOBNAME}_resperf.txt
docker-compose --no-ansi stop
docker-compose --no-ansi ps | (! grep 'Exit [1-9]')
done
......@@ -199,7 +199,7 @@ class DNSReply:
def parse_wire(
self
) -> Tuple[Optional[dns.message.Message], Optional[str]]:
) -> Tuple[Optional[dns.message.Message], str]:
try:
return dns.message.from_wire(self.wire), self.WIREFORMAT_VALID
except dns.exception.FormError as exc:
......
......@@ -196,6 +196,10 @@ def match(
if expected.timeout or got.timeout or exp_malformed or got_malformed:
return # don't attempt to match any other fields
# checked above via exp/got_malformed, this is for mypy
assert exp_msg is not None
assert got_msg is not None
for criteria in match_fields:
try:
match_part(exp_msg, got_msg, criteria)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment