Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cicd: fixed perf-ci failed runs #584

Merged
merged 5 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- run: sudo -E env "PATH=$PATH" make
- run: docker pull ghcr.io/loxilb-io/loxilb:latest
- run: docker run -u root --cap-add SYS_ADMIN --restart unless-stopped --privileged -dit -v /dev/log:/dev/log --name loxilb ghcr.io/loxilb-io/loxilb:latest
- run: pwd && ls && sudo -E env "PATH=$PATH" make docker-cp
- run: pwd && ls && sudo -E env "PATH=$PATH" make docker-cp-ebpf
- run: id=`docker ps -f name=loxilb | cut -d " " -f 1 | grep -iv "CONTAINER"` && docker commit $id ghcr.io/loxilb-io/loxilb:latest
- run: docker stop loxilb && docker rm loxilb
- run: |
Expand Down
10 changes: 4 additions & 6 deletions cicd/tcpsctpperf/validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ echo -e "\n\nIPERF Test - Threads: $threads Duration: $time"
echo "*********************************************************************"
$hexec l3ep1 iperf -s -p 12865 2>&1 > /dev/null &
$hexec l3ep1 iperf3 -s -p 13866 --logfile iperf3s.log 2>&1> /dev/null &
sleep 2
sleep 10
$hexec l3h1 ./iperf.sh $threads $time
sudo pkill iperf 2>&1>/dev/null
sudo rm iperf3s.log
Expand All @@ -29,7 +29,7 @@ sleep 2
$hexec l3ep1 ./netserver -4 -p 12865
echo -e "\n\nNETPERF Test - Threads: $threads Duration: $time"
echo "*********************************************************************"
sleep 2
sleep 10
$hexec l3h1 ./netperf.sh $threads $time
sudo pkill netserver

Expand Down Expand Up @@ -59,7 +59,7 @@ echo -e "\n\nIPERF Test - Threads: $threads Duration: $time"
echo "*********************************************************************"
$hexec l3ep1 iperf -s -p 12865 2>&1 > /dev/null &
$hexec l3ep1 iperf3 -s -p 13866 --logfile iperf3s.log 2>&1> /dev/null &
sleep 2
sleep 10
$hexec l3h1 ./iperf.sh $threads $time
sudo pkill iperf 2>&1>/dev/null
sudo rm iperf3s.log
Expand All @@ -69,14 +69,12 @@ sleep 2
$hexec l3ep1 ./netserver -4 -p 12865
echo -e "\n\nNETPERF Test - Threads: $threads Duration: $time"
echo "*********************************************************************"
sleep 2
sleep 10
$hexec l3h1 ./netperf.sh $threads $time
sudo pkill netserver

#netserver somehow corrupts /dev/null, so we have to create it again
sudo rm -f /dev/null; sudo mknod -m 666 /dev/null c 1 3
echo "*********************************************************************"



echo SCENARIO-tcpsctpperf [OK]
Loading