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

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 05 Nov 2026 21:28:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=298942

--- Comment #3 from commit-hook@FreeBSD.org ---
A commit in branch stable/15 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3c40506ecab4412f3f4fad7bb4b7a481ce2799d0

commit 3c40506ecab4412f3f4fad7bb4b7a481ce2799d0
Author:     Alan Somers <asomers@FreeBSD.org>
AuthorDate: 2026-10-13 17:40:22 +0000
Commit:     Alan Somers <asomers@FreeBSD.org>
CommitDate: 2026-11-05 21:25:58 +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.

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

    (cherry picked from commit 802f5e4d6926f0be9294d71c6cadcbe872dbddf2)

 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.