[Bug 289477] sys/netpfil/pf/route_to:pr efer_ipv6_nexthop_mixed_af_random_table_ipv4 test fails intermittently in CI

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 16 Sep 2025 14:00:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289477

Kajetan Staszkiewicz <vegeta@tuxpowered.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vegeta@tuxpowered.net

--- Comment #1 from Kajetan Staszkiewicz <vegeta@tuxpowered.net> ---
The problem with this test and a few other similar ones is that they test
random selection of pf loadbalancing. The test uses a route-to action with
lists of good and bad nexthops. For each good nexthop it attempts a tcp
connection up to 10 times and checks if this good nexthop was selected.

Since it's testing the *random* algorithm it can occasionally fail. Even if I
raise the amount of connections being made it could still fail. Any idea how to
better test a random algorithm?

-- 
You are receiving this mail because:
You are on the CC list for the bug.