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

Improve latency tests #663

Merged
merged 3 commits into from
Jan 7, 2025
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: 2 additions & 0 deletions .github/workflows/ci-yocto-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ permissions:
jobs:
call-workflow:
uses: ./.github/workflows/ci-yocto.yml
with:
pcap_loop: 900 # 15 min
7 changes: 7 additions & 0 deletions .github/workflows/ci-yocto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
types: [opened, reopened, synchronize]
branches: [main]
workflow_call:
inputs:
pcap_loop:
default: 60
required: false
type: number
workflow_dispatch:

permissions:
Expand All @@ -20,6 +25,8 @@ permissions:
jobs:
CI:
runs-on: [self-hosted, runner-SFL]
env:
PCAP_LOOP: ${{ inputs.pcap_loop == '' && '60' || inputs.pcap_loop }}
steps:

- name: Initialize sources
Expand Down
3 changes: 3 additions & 0 deletions playbooks/ci_latency_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
-d {{ sv_interface }}
-f "/tmp/latency_tests/ts_{{ inventory_hostname }}.txt"
-t
-s svID0000

- name: Launch sv timestamp logger on VMs
hosts: VMs
Expand All @@ -94,13 +95,15 @@
sv_timestamp_logger
-d {{ sv_interface }}
-f "/tmp/latency_tests/ts_{{ inventory_hostname }}.txt"
-s svID0000

- name: Launch pcap sending
hosts: publisher_machine
become: true
tasks:
- name: "Send pcap from publisher"
command: >-
{% if bittwist_cpu is defined %} taskset -c {{ bittwist_cpu }} {% endif %}
bittwist
-i {{ sv_interface }}
-l {{ pcap_loop }}
Expand Down