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

CI SV Publisher #383

Closed
wants to merge 3 commits into from
Closed

CI SV Publisher #383

wants to merge 3 commits into from

Conversation

lucbeaufils
Copy link
Contributor

This PR provides a base for testing SV sending support in the CI.

Copy link
Member

@dupremathieu dupremathieu left a 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.

@dupremathieu dupremathieu self-requested a review February 14, 2024 13:19
# First parameter : pcap file
# Second parameter : root directory

CPU_CORE_1=0
Copy link
Member

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"
Copy link
Member

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.


CMD_DUMP="tcpdump -w $2/results/result-$(date +%s).pcap"

taskset -c $CPU_CORE_2 chrt --fifo 1 $CMD_DUMP &
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove tasket and chrt.

taskset -c $CPU_CORE_2 chrt --fifo 1 $CMD_DUMP &
PID_DUMP=$!

taskset -c $CPU_CORE_1 chrt --fifo 1 $CMD_RUNNER &
Copy link
Member

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"
Copy link
Member

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]>
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants