Skip to content

Commit 61ee5ce

Browse files
committed
fix(ci): reload hwsim module between WiFi bundle test suites
After PHY injection into nspawn containers and container termination, the hwsim radios can return to the host in a wedged state. The bundle test's setup_hwsim then fails to find 2 interfaces and skips Phase 6 entirely ("Virtual WiFi module unavailable"). Fix: modprobe -r mac80211_hwsim + modprobe mac80211_hwsim radios=2 between each WiFi test suite to get fresh virtual radios.
1 parent 9eddda2 commit 61ee5ce

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/integration.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,14 +385,20 @@ jobs:
385385
sudo chmod +x tests/integration/run_interop.sh
386386
sudo ./tests/integration/run_interop.sh --wifi-only
387387
388-
- name: Cleanup between test suites
388+
- name: Cleanup and reset hwsim between test suites
389389
if: always() && env.HWSIM_FAILED != 'true'
390390
run: |
391391
for m in $(sudo machinectl list --no-legend --no-pager 2>/dev/null | awk '{print $1}'); do
392392
sudo machinectl terminate "$m" 2>/dev/null || true
393393
done
394394
sleep 3
395395
sudo rm -rf /var/lib/machines/fedora-rxnm-bundle 2>/dev/null || true
396+
# Reload hwsim to get fresh virtual radios for the next test suite.
397+
# After PHY injection + container termination, radios can be wedged.
398+
sudo modprobe -r mac80211_hwsim 2>/dev/null || true
399+
sleep 1
400+
sudo modprobe mac80211_hwsim radios=2 2>/dev/null || true
401+
sleep 2
396402
397403
- name: Run ROCKNIX Bundle WiFi Tests
398404
if: env.HWSIM_FAILED != 'true'
@@ -401,14 +407,20 @@ jobs:
401407
sudo chmod +x tests/integration/run_rocknix_interop.sh
402408
sudo ./tests/integration/run_rocknix_interop.sh --wifi-only
403409
404-
- name: Cleanup between test suites
410+
- name: Cleanup and reset hwsim between test suites
405411
if: always() && env.HWSIM_FAILED != 'true'
406412
run: |
407413
for m in $(sudo machinectl list --no-legend --no-pager 2>/dev/null | awk '{print $1}'); do
408414
sudo machinectl terminate "$m" 2>/dev/null || true
409415
done
410416
sleep 3
411417
sudo rm -rf /var/lib/machines/fedora-rxnm-bundle 2>/dev/null || true
418+
sudo modprobe -r mac80211_hwsim 2>/dev/null || true
419+
sleep 1
420+
sudo modprobe mac80211_hwsim radios=2 2>/dev/null || true
421+
sleep 2
422+
sleep 3
423+
sudo rm -rf /var/lib/machines/fedora-rxnm-bundle 2>/dev/null || true
412424
413425
- name: Run Full Combined Bundle WiFi Tests
414426
if: env.HWSIM_FAILED != 'true'

0 commit comments

Comments
 (0)