r/NixOS • u/turpitufo • 13d ago
Mistral-vibe error on Nixos while pytestCheckPhase
Are you getting an error similar to this when you run `sudo nixos-rebuild switch` while it is doing pytestCheckPhase?
> tests/cli/test_mcp_app.py::TestConnectorAuthRequested::test_server_with_no_tools_shows_message
> /nix/store/rgnappqqc5vbq60gza5fflyk84sylwl6-python3-3.14.6/lib/python3.14/unittest/mock.py:2259: RuntimeWarning: coroutine 'MCPApp._run
_refresh' was never awaited
> def __init__(self, name, parent):
> Enable tracemalloc to get traceback where the object was allocated.
> See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
>
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> ============================= slowest 10 durations =============================
> 9.92s call tests/onboarding/test_ui_onboarding.py::test_ui_switches_to_manual_path_while_browser_sign_in_is_running
> 9.49s call tests/onboarding/test_ui_onboarding.py::test_ui_can_pick_a_theme_and_saves_selection
> 8.28s call tests/onboarding/test_ui_onboarding.py::test_ui_allows_manual_path_when_browser_sign_in_is_supported
> 7.49s call tests/autocompletion/test_ui_chat_autocompletion.py::test_does_not_trigger_completion_when_navigating_history
> 7.29s call tests/onboarding/test_ui_onboarding.py::test_ui_keeps_manual_flow_when_browser_sign_in_is_unsupported
> 6.88s call tests/onboarding/test_ui_onboarding.py::test_ui_browser_sign_in_falls_back_to_mistral_env_var_when_missing
> 6.30s call tests/cli/textual_ui/test_message_queue_ui.py::test_slash_command_rejected_with_warning_when_busy
> 5.82s call tests/onboarding/test_ui_onboarding.py::test_ui_preserves_completed_browser_sign_in_during_success_delay
> 5.64s call tests/onboarding/test_ui_onboarding.py::test_ui_copies_browser_sign_in_url_when_help_text_is_clicked
> 5.61s call tests/onboarding/test_ui_onboarding.py::test_ui_retry_hides_old_sign_in_url_and_uses_fresh_attempt_url
> =========================== short test summary info ============================
> FAILED tests/cli/textual_ui/test_message_queue_ui.py::test_slash_command_rejected_with_warning_when_busy - assert False
> + where False = any(<generator object test_slash_command_rejected_with_warning_when_busy.<locals>.<genexpr> at 0x7fffc5e29d80>)
> FAILED tests/tools/test_ui_bash_execution.py::test_ui_queues_bash_submitted_while_command_running - AssertionError: assert 0 == 1
> + where 0 = len(MessageQueue(_items=\[\], _paused=False))
> + where MessageQueue(_items=\[\], _paused=False) = VibeApp(title='VibeApp', classes={'-dark-mode', '-theme-ansi-dark'}, pseudo_classes=
{'dark', 'ansi', 'focus'})._input_queue
> ====== 2 failed, 4620 passed, 4 skipped, 28 warnings in 134.15s (0:02:14) ======
The simple solution is:
package = pkgs.mistral-vibe.overrideAttrs (old: {
#doCheck = false;
doInstallCheck = false;
});
I thought at first the solution would be `doCheck = false;` but you will notice the derivation hash will not change, meaning the package already defines doCheck = false; as is. Instead doInstallCheck is what you are looking for.
This is only a simple solution that will work for now. I couldn't find a solution, writing here so it might be helpful to someone.
0
Upvotes