Skip to content

Commit

Permalink
Don't call --random on pumba; note about time
Browse files Browse the repository at this point in the history
  • Loading branch information
noonio committed Aug 29, 2024
1 parent 6654d08 commit c5d1208
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/network/run_pumba.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ percent=$2
rest_node_names=$3

# Build Pumba netem command
nix_command="nix run github:noonio/pumba/noon/add-flake -- -l debug --random netem --duration 20m"
# Note: We leave it for 20 minutes; but really it's effectively unlimited. We don't
# expect any of our tests to run longer than that.
nix_command="nix run github:noonio/pumba/noon/add-flake -- -l debug netem --duration 20m"

while IFS= read -r network; do
nix_command+=" --target $network"
Expand All @@ -18,4 +20,4 @@ nix_command+=" loss --percent \"$percent\" \"re2:$target_node_name\" &"
echo "$nix_command"

# Run Pumba netem command
eval "$nix_command"
eval "$nix_command"

0 comments on commit c5d1208

Please sign in to comment.