From 00121a48650a24ce5f1b4c3b0a7f6be113c5ee01 Mon Sep 17 00:00:00 2001 From: "Matthieu Baerts (NGI0)" Date: Mon, 17 Jun 2024 09:45:45 +0200 Subject: [PATCH] packetdrill: reduce tolerance With all the recent fixes we did, we should not need so high tolerance. We start here by decrementing them a bit, we can do more later. Signed-off-by: Matthieu Baerts (NGI0) --- entrypoint.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 9cb7d57..d21c263 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -606,13 +606,13 @@ build_packetdrill() { local old_pwd kversion kver_maj kver_min branch rc=0 # shellcheck disable=SC2013 # to filter duplicated ones for val in $(grep "^--tolerance_usecs=" "${pf}" | cut -d= -f2 | sort -u); do if [ "${mode}" = "debug" ]; then - # Add higher tolerance in debug mode: + # Increase tolerance in debug mode: # the environment can be very slow - new_val=$((val * 10)) + new_val=$((val * 8)) else - # double the time in normal mode: + # Triple the time in normal mode: # public CI can be quite loaded... - new_val=$((val * 4)) + new_val=$((val * 3)) fi sed -i "s/^--tolerance_usecs=${val}$/--tolerance_usecs=${new_val}/g" "${pf}"