[Bug 298942] sys/geom/class/gate/ggate_test:ggatec_trim test intermittently failing in CI

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 15 Oct 2026 12:17:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=298942

--- Comment #2 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=802f5e4d6926f0be9294d71c6cadcbe872dbddf2

commit 802f5e4d6926f0be9294d71c6cadcbe872dbddf2
Author:     Alan Somers <asomers@FreeBSD.org>
AuthorDate: 2026-10-13 17:40:22 +0000
Commit:     Alan Somers <asomers@FreeBSD.org>
CommitDate: 2026-10-15 12:16:16 +0000

    ggate: fix test intermittency

    * ggatel: fix piped output.  Flush stdout before daemonizing, so the
      output can be read when it's in a command pipeline.

    * ggated: bind the port _before_ daemonizing, so an invoking script can
      be sure that the port is bound as soon as the command returns.

    * tests: allow ggatec or ggatel to automatically allocate a device
      number instead of choosing one in a racy way.

    With all of these changes I can no run the tests 1000 times without
    fail.  And in parallel, too.

    MFC after:      1 week
    Sponsored by:   ConnectWise
    PR:             298942
    Reported by:    siva
    Reviewed by:    ngie
    Differential Revision: https://reviews.freebsd.org/D60707

 sbin/ggate/ggated/ggated.c              | 21 +++++++++------
 sbin/ggate/ggatel/ggatel.c              |  4 ++-
 tests/sys/geom/class/gate/Makefile      |  3 ---
 tests/sys/geom/class/gate/ggate_test.sh | 48 ++++++++++++---------------------
 4 files changed, 33 insertions(+), 43 deletions(-)

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