From ebbbd08d0c7c7ca13dcb1eda87d653d165ef3040 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 26 Apr 2025 22:15:51 +0200 Subject: [PATCH 1/2] home-assistant: remove pytest-rerunfailures Not used by upstream and in my tests it was not necessary any longer. --- pkgs/servers/home-assistant/default.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 85d3cca07570..8d2215ea73b7 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -515,7 +515,6 @@ python.pkgs.buildPythonApplication rec { pytest-aiohttp pytest-freezer pytest-mock - pytest-rerunfailures pytest-socket pytest-timeout pytest-unordered @@ -540,9 +539,6 @@ python.pkgs.buildPythonApplication rec { pytestFlagsArray = [ # assign tests grouped by file to workers "--dist loadfile" - # retry racy tests that end in "RuntimeError: Event loop is closed" - "--reruns 3" - "--only-rerun RuntimeError" # enable full variable printing on error "--showlocals" # AssertionError: assert 1 == 0 From 3b2cdb8777956adc69d5f76ce049b934188992c5 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 26 Apr 2025 22:19:07 +0200 Subject: [PATCH 2/2] home-assistant: disable flaky tests Closes: #394862 --- pkgs/servers/home-assistant/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 8d2215ea73b7..3bcdee618429 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -545,6 +545,10 @@ python.pkgs.buildPythonApplication rec { "--deselect tests/test_config.py::test_merge" # checks whether pip is installed "--deselect=tests/util/test_package.py::test_check_package_fragment" + # flaky + "--deselect=tests/test_bootstrap.py::test_setup_hass_takes_longer_than_log_slow_startup" + "--deselect=tests/test_test_fixtures.py::test_evict_faked_translations" + "--deselect=tests/helpers/test_backup.py::test_async_get_manager" # tests are located in tests/ "tests" ];