From a978ce9484f2567c16191b0c3f80f86c3fa31791 Mon Sep 17 00:00:00 2001 From: lantz Date: Fri, 28 Apr 2023 14:44:52 -0700 Subject: [PATCH] Disable udevd to speed up tests; reinstate slow tests (#1177) systemd-udevd appears to drastically increase Mininet startup time. With systemd-udevd disabled, mn --topo single,100 --test none takes 8s rather than 40s (31s with NM_UNMANAGED) on my test VM. We need a way of disabling it globally and always for Mininet interfaces, but this is a start for github actions at least. For now, we execute this command before running the CI tests: systemctl stop systemd-udevd systemd-udevd-kernel.socket \ systemd-udevd-control.socket We also restore the "slow" examples tests, including test_tree1024. --- .github/workflows/run-tests.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 051f266..c520a9a 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -22,6 +22,11 @@ jobs: # This seems too slow unfortunately: # sudo apt-get upgrade -y -qq PYTHON=${{ matrix.py }} util/install.sh -nv + - name: Disable slow udevd + run: sudo systemctl stop systemd-udevd + systemd-udevd-kernel.socket + systemd-udevd-control.socket + || echo "couldn't disable udevd" - name: Sanity test run: | export sudo="sudo env PATH=$PATH" @@ -39,8 +44,8 @@ jobs: export sudo="sudo env PATH=$PATH" export PYTHON=${{ matrix.py }} $sudo $PYTHON mininet/test/runner.py -v - - name: Run examples tests (quick) + - name: Run examples tests run: | export sudo="sudo env PATH=$PATH" export PYTHON=${{ matrix.py }} - $sudo $PYTHON examples/test/runner.py -v -quick + $sudo $PYTHON examples/test/runner.py -v