-
Notifications
You must be signed in to change notification settings - Fork 17
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
CI SV Publisher #383
CI SV Publisher #383
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I preferred to store CI test stuff outside this repository.
This repository is for setup SEAPATH not for testing the CI.
playbooks/files/ci_publish_sv.sh
Outdated
# First parameter : pcap file | ||
# Second parameter : root directory | ||
|
||
CPU_CORE_1=0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a parameter to choose the core.
|
||
CMD_RUNNER="bittwist -i eno1 $2/pcaps/$1" | ||
|
||
CMD_DUMP="tcpdump -w $2/results/result-$(date +%s).pcap" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add -ttt if you want to measure the passing.
playbooks/files/ci_publish_sv.sh
Outdated
|
||
CMD_DUMP="tcpdump -w $2/results/result-$(date +%s).pcap" | ||
|
||
taskset -c $CPU_CORE_2 chrt --fifo 1 $CMD_DUMP & |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove tasket and chrt.
playbooks/files/ci_publish_sv.sh
Outdated
taskset -c $CPU_CORE_2 chrt --fifo 1 $CMD_DUMP & | ||
PID_DUMP=$! | ||
|
||
taskset -c $CPU_CORE_1 chrt --fifo 1 $CMD_RUNNER & |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also configure NIC IRQ and workers' tasks affinity and priority.
copy: | ||
src: "{{ pcap_file }}" | ||
dest: "{{ home }}/tests/pcaps" | ||
- name: "Copy the runner script on publisher" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use ansible.builtin.script?
This playbook will be used to deploy and run a test script during the CI of SEAPATH. Signed-off-by: Luc BEAUFILS <[email protected]>
Signed-off-by: Luc BEAUFILS <[email protected]>
This script creates a process in one RT core to run `bittwist` for sending pcap and on the other side save network packages using `tcpdump` on another RT core. Signed-off-by: Luc BEAUFILS <[email protected]>
558bc93
to
3dfb8f5
Compare
This PR provides a base for testing SV sending support in the CI.