From 8a66fe878dd22024beba7d48c0f766ac7fd0bded Mon Sep 17 00:00:00 2001 From: Jamil Date: Tue, 8 Apr 2025 15:56:29 -0700 Subject: [PATCH] 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 Co-authored-by: Thomas Eizinger --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c41ebba1..b9d9e3716 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: