Bug 298733 - sys/net/if_wg:wg_basic_crossaf test failing in CI
Summary: sys/net/if_wg:wg_basic_crossaf test failing in CI
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: tests (show other bugs)
Version: 16.0-CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: Pouria Mousavizadeh Tehrani
URL: https://ci.freebsd.org/job/FreeBSD-ma...
Keywords: regression
Depends on:
Blocks:
 
Reported: 2026-09-21 15:07 UTC by Siva Mahadevan
Modified: 2026-10-08 20:13 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Siva Mahadevan freebsd_committer freebsd_triage 2026-09-21 15:07:54 UTC
The 'sys/net/if_wg:wg_basic_crossaf' test is currently failing in CI (URL and report attached in this bug).

This is locally reproducible with Bricoler using this command:

bricoler freebsd-regression-test-suite --freebsd-src-git-checkout/url=/usr/src --freebsd-src-git-checkout/branch= --freebsd-regression-test-suite/tests='sys/net/if_wg:wg_basic_crossaf'

pouria@, this is failing since your commit https://cgit.freebsd.org/src/commit/?id=63343822430453f4add20bcbfa134c99132361df (route/fib_algo: Fix nexthop index collision across families), please triage as necessary.
Comment 1 commit-hook freebsd_committer freebsd_triage 2026-09-22 20:03:09 UTC
A commit in branch main references this bug:

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

commit 3d030136ad1906e6d463673a8d2ef313eb054fb3
Author:     Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org>
AuthorDate: 2026-09-22 19:23:00 +0000
Commit:     Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org>
CommitDate: 2026-09-22 19:23:00 +0000

    route/fib_algo: Respect immediate_sync in fd_ref_nhop

    Now fd_ref_nhop() returns zero for cross family routes,
    Do not schedule nhop references and try to rebuild it immediately
    for connected and static routes.

    PR:     298733
    Fixes:  633438224304 ("route/fib_algo: Fix nexthop index ...")

 sys/net/route/fib_algo.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Comment 2 Pouria Mousavizadeh Tehrani freebsd_committer freebsd_triage 2026-09-22 20:09:02 UTC
We could fix this test by adding a simple `sleep 0.05` before the last ping.
But the right approach was to follow immediate_sync just like the other conditions.

Fixed! Thank you for the report.
Comment 3 commit-hook freebsd_committer freebsd_triage 2026-10-08 20:13:11 UTC
A commit in branch stable/15 references this bug:

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

commit 3f5bbee131b4ad8b31aedeabae7f184c83abe6e6
Author:     Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org>
AuthorDate: 2026-09-22 19:23:00 +0000
Commit:     Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org>
CommitDate: 2026-10-08 19:59:21 +0000

    route/fib_algo: Respect immediate_sync in fd_ref_nhop

    Now fd_ref_nhop() returns zero for cross family routes,
    Do not schedule nhop references and try to rebuild it immediately
    for connected and static routes.

    PR:     298733
    Fixes:  633438224304 ("route/fib_algo: Fix nexthop index ...")
    (cherry picked from commit 3d030136ad1906e6d463673a8d2ef313eb054fb3)

 sys/net/route/fib_algo.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)