Skip to content

Add wifi tests - #1557

Merged
wkz merged 13 commits into
mainfrom
add-wifi-tests
Aug 19, 2026
Merged

Add wifi tests#1557
wkz merged 13 commits into
mainfrom
add-wifi-tests

Conversation

@mattiaswal

@mattiaswal mattiaswal commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Also fix some notorious flaky tests, lets hope we never see them again.

Description

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Test changes
    • Checked in changed Readme.adoc (make test-spec)
    • Added new test to group Readme.adoc and yaml file
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
    • ChangeLog updated (for major changes)
  • Other (please describe):

@mattiaswal
mattiaswal force-pushed the add-wifi-tests branch 2 times, most recently from 032e536 to a2607d8 Compare July 1, 2026 20:06
@mattiaswal mattiaswal added the ci:main Build default defconfig, not minimal label Jul 1, 2026
@mattiaswal
mattiaswal force-pushed the add-wifi-tests branch 2 times, most recently from 4c21b2f to 1d1afec Compare July 2, 2026 07:20
@mattiaswal
mattiaswal force-pushed the add-wifi-tests branch 2 times, most recently from 09cc2bd to 6332c9e Compare August 13, 2026 06:43
@mattiaswal
mattiaswal marked this pull request as ready for review August 13, 2026 11:39
@mattiaswal
mattiaswal requested review from troglobit and wkz August 13, 2026 11:40

@wkz wkz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff! An extra thanks for cleaning up the flakyness i left behind in the BFD-test! 🥇

Comment thread test/templates/infix-bios-x86_64.mustache
Comment thread test/virt/quad/topology.dot.in Outdated
Comment thread test/case/interfaces/wifi_ap_multi_station/test.py Outdated
Infix only supports 2.4/5/6 Ghz, ignore all else.
Should map on physical as well, but only tested on virtual.
It must exist, and will only handle frames when in
state running, therefore we keep it, but mark it internal.
* Show a vendor of the radio (hwsim)
* Allow to show alot of supported AP interfaces, hwsim
  supports 2048
The list is keyed on (time-mark, remote-index), taken from lldpd's
neighbor age and rid.

rid is per remote chassis, so a chassis heard on two of its ports
over one segment collides when the ages match, producing an invalid
YANG list that clients reject wholesale.

Nudge time-mark until the key is unique; rid is kept intact so
entries still match lldpcli output.
MacMCastSender sent a fixed 50 frames at 10 pps and exited after ~5s,
unlike the IPv4 msend which loops until stopped.  On a loaded CI
runner the filter-config step alone can take longer than that, so the
stream ended before the following captures opened and
static_multicast_filters failed with 0 packets on the member port.

Loop the sender; the context manager already stops it on exit.

@troglobit troglobit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to check the BFD sessions before breaking the link.
Also check that the fail-over happens within half of the dead
interval, to make sure it is BFD that triggers the fail-over, not
the OSPF dead interval timer.

Signed-off-by: Mattias Walström <lazzer@gmail.com>
Move mactab, wifi radio count and fw_cfg setup into inc/ partials.
Set hostname and verify it before enabling the DHCP client, the
lease could otherwise overwrite the hostname before the first poll.
@mattiaswal

Copy link
Copy Markdown
Contributor Author

@wkz wkz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@wkz
wkz merged commit 021c30b into main Aug 19, 2026
9 checks passed
@wkz
wkz deleted the add-wifi-tests branch August 19, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:main Build default defconfig, not minimal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants