-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python3Packages.fritzconnection: 1.4.2 -> 1.5.0 #121434
Conversation
fritzconnection bump LGTM. |
Please rebase and make sure the tests are working. |
Seems like the tests fail :/ |
1295863
to
d8db949
Compare
Now |
What were the home-assistant test issues with the fritz component? Something fixable, reportable, etc.? |
The error messages weren't telling at all. Something about pytest-rerun but some file was still open. |
Rough, seems like INTERNALERROR> def worker_internal_error(self, node, formatted_error):
INTERNALERROR> """
INTERNALERROR> pytest_internalerror() was called on the worker.
INTERNALERROR>
INTERNALERROR> pytest_internalerror() arguments are an excinfo and an excrepr, which can't
INTERNALERROR> be serialized, so we go with a poor man's solution of raising an exception
INTERNALERROR> here ourselves using the formatted message.
INTERNALERROR> """
INTERNALERROR> self._active_nodes.remove(node)
INTERNALERROR> try:
INTERNALERROR> > assert False, formatted_error
INTERNALERROR> E AssertionError: Traceback (most recent call last):
INTERNALERROR> E File "/nix/store/jmzx9dsqb96865swyvs0ib9g5dz2qdwg-python3.8-pytest-6.2.3/lib/python3.8/site-packages/_pytest/main.py", line 269, in wrap_session
INTERNALERROR> E session.exitstatus = doit(config, session) or 0
INTERNALERROR> E File "/nix/store/jmzx9dsqb96865swyvs0ib9g5dz2qdwg-python3.8-pytest-6.2.3/lib/python3.8/site-packages/_pytest/main.py", line 323, in _main
INTERNALERROR> E config.hook.pytest_runtestloop(session=session)
INTERNALERROR> E File "/nix/store/4x8s35vrcq53azwp05p2bcbf5k6ryxr8-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/hooks.py", line 286, in __call__
INTERNALERROR> E return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> E File "/nix/store/4x8s35vrcq53azwp05p2bcbf5k6ryxr8-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/manager.py", line 93, in _hookexec
INTERNALERROR> E return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> E File "/nix/store/4x8s35vrcq53azwp05p2bcbf5k6ryxr8-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/manager.py", line 84, in <lambda>
INTERNALERROR> E self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
INTERNALERROR> E File "/nix/store/4x8s35vrcq53azwp05p2bcbf5k6ryxr8-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR> E return outcome.get_result()
INTERNALERROR> E File "/nix/store/4x8s35vrcq53azwp05p2bcbf5k6ryxr8-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR> E raise ex[1].with_traceback(ex[2])
INTERNALERROR> E File "/nix/store/4x8s35vrcq53azwp05p2bcbf5k6ryxr8-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR> E res = hook_impl.function(*args)
INTERNALERROR> E File "/nix/store/ar1xc6jypbhj1r1vh2378iya1aq0siia-python3.8-pytest-xdist-2.2.1/lib/python3.8/site-packages/xdist/remote.py", line 72, in pytest_runtestloop
INTERNALERROR> E self.run_one_test(torun)
INTERNALERROR> E File "/nix/store/ar1xc6jypbhj1r1vh2378iya1aq0siia-python3.8-pytest-xdist-2.2.1/lib/python3.8/site-packages/xdist/remote.py", line 89, in run_one_test
INTERNALERROR> E self.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
INTERNALERROR> E File "/nix/store/4x8s35vrcq53azwp05p2bcbf5k6ryxr8-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/hooks.py", line 286, in __call__
INTERNALERROR> E return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> E File "/nix/store/4x8s35vrcq53azwp05p2bcbf5k6ryxr8-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/manager.py", line 93, in _hookexec
INTERNALERROR> E return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> E File "/nix/store/4x8s35vrcq53azwp05p2bcbf5k6ryxr8-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/manager.py", line 84, in <lambda>
INTERNALERROR> E self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
INTERNALERROR> E File "/nix/store/4x8s35vrcq53azwp05p2bcbf5k6ryxr8-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR> E return outcome.get_result()
INTERNALERROR> E File "/nix/store/4x8s35vrcq53azwp05p2bcbf5k6ryxr8-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR> E raise ex[1].with_traceback(ex[2])
INTERNALERROR> E File "/nix/store/4x8s35vrcq53azwp05p2bcbf5k6ryxr8-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR> E res = hook_impl.function(*args)
INTERNALERROR> E File "/nix/store/df4g7jcxd1vkxsrjh9dxkiggw98287z8-python3.8-pytest-rerunfailures-9.1.1/lib/python3.8/site-packages/pytest_rerunfailures.py", line 243, in pytest_runtest_protocol
INTERNALERROR> E is_terminal_error = _should_hard_fail_on_error(item.session.config, report)
INTERNALERROR> E File "/nix/store/df4g7jcxd1vkxsrjh9dxkiggw98287z8-python3.8-pytest-rerunfailures-9.1.1/lib/python3.8/site-packages/pytest_rerunfailures.py", line 211, in _should_hard_fail_on_error
INTERNALERROR> E if re.search(rerun_regex, report.longrepr.reprcrash.message):
INTERNALERROR> E AttributeError: 'FixtureLookupErrorRepr' object has no attribute 'reprcrash'
INTERNALERROR> E assert False
INTERNALERROR>
INTERNALERROR> /nix/store/ar1xc6jypbhj1r1vh2378iya1aq0siia-python3.8-pytest-xdist-2.2.1/lib/python3.8/site-packages/xdist/dsession.py:187: AssertionError
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/nix/store/jmzx9dsqb96865swyvs0ib9g5dz2qdwg-python3.8-pytest-6.2.3/lib/python3.8/site-packages/_pytest/main.py", line 269, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> File "/nix/store/jmzx9dsqb96865swyvs0ib9g5dz2qdwg-python3.8-pytest-6.2.3/lib/python3.8/site-packages/_pytest/main.py", line 323, in _main
INTERNALERROR> config.hook.pytest_runtestloop(session=session)
INTERNALERROR> File "/nix/store/4x8s35vrcq53azwp05p2bcbf5k6ryxr8-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/hooks.py", line 286, in __call__
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "/nix/store/4x8s35vrcq53azwp05p2bcbf5k6ryxr8-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/manager.py", line 93, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/nix/store/4x8s35vrcq53azwp05p2bcbf5k6ryxr8-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/manager.py", line 84, in <lambda>
INTERNALERROR> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
INTERNALERROR> File "/nix/store/4x8s35vrcq53azwp05p2bcbf5k6ryxr8-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "/nix/store/4x8s35vrcq53azwp05p2bcbf5k6ryxr8-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/nix/store/4x8s35vrcq53azwp05p2bcbf5k6ryxr8-python3.8-pluggy-0.13.1/lib/python3.8/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/nix/store/ar1xc6jypbhj1r1vh2378iya1aq0siia-python3.8-pytest-xdist-2.2.1/lib/python3.8/site-packages/xdist/dsession.py", line 112, in pytest_runtestloop
INTERNALERROR> self.loop_once()
INTERNALERROR> File "/nix/store/ar1xc6jypbhj1r1vh2378iya1aq0siia-python3.8-pytest-xdist-2.2.1/lib/python3.8/site-packages/xdist/dsession.py", line 135, in loop_once
INTERNALERROR> call(**kwargs)
INTERNALERROR> File "/nix/store/ar1xc6jypbhj1r1vh2378iya1aq0siia-python3.8-pytest-xdist-2.2.1/lib/python3.8/site-packages/xdist/dsession.py", line 174, in worker_workerfinished
INTERNALERROR> assert not crashitem, (crashitem, node)
INTERNALERROR> AssertionError: ('tests/components/fritz/test_config_flow.py::test_reauth_successful[pyloop]', <WorkerController gw1>)
INTERNALERROR> assert not 'tests/components/fritz/test_config_flow.py::test_reauth_successful[pyloop]' Trying to untangle that mess. It always helps to disable xdist when things fail in weird ways.
|
The actual error. Looks fixable. |
Works after adding |
These tests require pytest-mock for the mocker fixture, but it isn't declared anywhere. home-assistant/core#50253
Motivation for this change
https://fritzconnection.readthedocs.io/en/1.5.0/sources/changes.html
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)The tests for the
fritz
component only exist in the upcoming version of Home Assistant.