Skip to content

Commit

Permalink
packetdrill: reduce tolerance
Browse files Browse the repository at this point in the history
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) <[email protected]>
  • Loading branch information
matttbe committed Jun 17, 2024
1 parent ea3c07a commit 00121a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 00121a4

Please sign in to comment.