Files
Zakk bf9a199741 test(ci): fix flaky tests and retry CI downloads (#542)
* test(outbound): compare the fewest allocations over several samples

The stats_alloc counters are process-wide and libtest's main thread can
allocate inside a measured region, which only ever adds to a count. Take
the minimum of five samples per side instead of a single reading.

* test(outbound): start the health loop before advancing paused time

The loop schedules its jittered first tick (up to 5 s) when first polled,
which happened after the 6 s advance, so about one run in 80 had the
periodic cycle land inside the wait and probe the pinned member twice.

* test(dns): pin the receive task's last pool reference on one thread

On two workers the receive task could resume from its yield and drop its
pool reference before the query task counted it. The bind-and-drop dead
port could also be reused by another test's echo server, which answered.

* test(dns): check the reset log in a child process

tracing caches callsite interest process-wide; when another test thread
registered the reset callsite while this test installed its subscriber,
the event stayed disabled and the captured log was empty.

* ci(workflows): retry apt and curl downloads

The 2026-11-11 Ubuntu mirror outage failed 67 jobs on apt, which had no
retries. Every apt-get now sets Acquire::Retries=5, and curl retries
five times on any error.
2026-11-25 23:45:41 +11:00
..