chore(ci): Simulate latency for performance tests (#8726)

Based on recent findings concerning throughput dropoff with increased
latency, it would be a good idea to add a small amount of latency to our
performance test suite to make sure we catch any latency-sensitive
regressions.

Related: https://github.com/firezone/firezone/issues/8699

---------

Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
This commit is contained in:
Jamil
2025-04-08 15:56:29 -07:00
committed by GitHub
parent c3c09255b7
commit 8a66fe878d

View File

@@ -183,6 +183,12 @@ jobs:
docker compose up -d relay-1 relay-2 --no-build
docker compose up -d gateway --no-build
docker compose up -d client --no-build
- name: Add 10ms simulated latency
run: |
docker compose exec -d client tc qdisc add dev eth0 root netem delay 10ms
docker compose exec -d gateway tc qdisc add dev eth0 root netem delay 10ms
docker compose exec -d relay-1 tc qdisc add dev eth0 root netem delay 10ms
docker compose exec -d relay-2 tc qdisc add dev eth0 root netem delay 10ms
- name: "Performance test: ${{ matrix.test_name }}"
timeout-minutes: 5
env: