Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

test: fix four baselined failures and prune deleted tests from the baselines (#411)

Ruben Lütke64925bc3ab27
diff --git a/README.md b/README.md
index 1f4289428b..da85c33296 100644
--- a/README.md
+++ b/README.md
@@ -150,7 +150,11 @@ curl -fsSL https://raw.githubusercontent.com/PersonalJarvis/PersonalJarvis/main/
The installer checks Python 3.11+ and Git, offers to install anything missing,
registers the desktop launcher and opens the app. Running it again updates an
existing installation. Language, wake phrase and models are set up inside the
-app.
+app. Later, open it from the desktop launcher or from a terminal:
+
+```bash
+jarvis # full desktop
+```
**Desktop downloads:** [Windows](https://github.com/PersonalJarvis/PersonalJarvis/releases/latest/download/PersonalJarvis-Setup-x64.exe) ·
[macOS (Apple Silicon)](https://github.com/PersonalJarvis/PersonalJarvis/releases/latest/download/PersonalJarvis-macOS-arm64.dmg) ·
diff --git a/scripts/ci/test-baseline-linux.json b/scripts/ci/test-baseline-linux.json
index 2dc1239a97..ef21a9dd42 100644
--- a/scripts/ci/test-baseline-linux.json
+++ b/scripts/ci/test-baseline-linux.json
@@ -12,19 +12,13 @@
"tests.integration.test_ollama_catalog_is_current::test_the_shortlist_names_every_registered_tag",
"tests.integration.test_provider_routes::test_list_providers_reports_codex_without_leaking_auth_files",
"tests.integration.test_provider_routes::test_section_health_returns_all_tabs",
- "tests.integration.test_tasks_recurring::test_runner_agent_delivers_result_as_announcement",
"tests.integration.test_tasks_recurring::test_runner_agent_dispatches_to_brain",
"tests.integration.test_tasks_recurring::test_runner_arms_auto_approver_for_write_grants",
"tests.integration.test_when_then_e2e::test_mission_finished_opens_browser_and_speaks",
"tests.missions.kontrollierer.test_approve_materialises_report::test_approve_builds_english_summary_en_for_file_deliverable",
"tests.missions.kontrollierer.test_deliverable::test_english_delivered_summary_resolves_to_en_at_pipeline_seam",
"tests.missions.worker_runtime.test_provider_map::test_ad6_table_is_complete",
- "tests.review.test_jarvis_agent_files::test_reviewer_body_contains_hard_rules",
"tests.review.test_jarvis_agent_files::test_reviewer_frontmatter_strict",
- "tests.review.test_jarvis_agent_files::test_subagent_file_exists[path0]",
- "tests.review.test_jarvis_agent_files::test_subagent_file_exists[path1]",
- "tests.review.test_jarvis_agent_files::test_worker_body_mentions_feedback_block",
- "tests.review.test_jarvis_agent_files::test_worker_frontmatter",
"tests.unit.agentic_ide.test_folders_search::test_device_name_falls_back_to_the_hostname",
"tests.unit.agentic_ide.test_pane_move_route::test_a_pane_can_be_moved_into_another_columns_stack",
"tests.unit.agentic_ide.test_pane_move_route::test_a_swap_answers_with_the_rearranged_workspace",
@@ -45,8 +39,6 @@
"tests.unit.audio.test_player_persistent_stream::test_live_portaudio_write_error_still_propagates",
"tests.unit.autostart.test_windows_scripts::test_icon_matches[c:\\\\APP\\\\jarvis.ico,0-C:\\\\app\\\\jarvis.ico-True]",
"tests.unit.brain.test_honesty_language_parity::test_no_output_language_call_pins_its_own_default",
- "tests.unit.brain.test_manager_pointer::test_deictic_utterance_injects_pointer",
- "tests.unit.brain.test_manager_pointer::test_pointer_turn_replaces_fullscreen_with_cursor_crop",
"tests.unit.brain.test_manager_screen_context::test_blind_provider_is_skipped_for_a_screen_turn",
"tests.unit.brain.test_manager_screen_context::test_dropped_image_never_uses_the_screen_capture_failure_phrase",
"tests.unit.brain.test_model_catalog.TestProviderCatalog::test_list_models_for_stt_returns_models",
@@ -96,8 +88,6 @@
"tests.unit.plugins.stt.test_dictionary_bias_opt_out::test_the_opt_out_keeps_an_explicit_bias_prompt_but_not_the_dictionary",
"tests.unit.plugins.stt.test_dictionary_bias_opt_out::test_the_opt_out_sends_no_prompt_when_the_dictionary_is_the_only_bias",
"tests.unit.plugins.test_create_skill_tool::test_writes_a_brain_authored_draft_skill",
- "tests.unit.plugins.tts.test_realtime_surface_tts::test_pipeline_tts_cannot_see_a_realtime_only_key",
- "tests.unit.plugins.tts.test_realtime_surface_tts::test_pipeline_tts_credential_map_lists_no_realtime_slots",
"tests.unit.plugins.tts.test_realtime_surface_tts::test_realtime_slots_are_only_trailing_fallbacks_outside_realtime_ids",
"tests.unit.pointer.test_turn::test_crop_radius_forwarded_to_default_resolver",
"tests.unit.realtime.local_server.test_supervisor::test_runtime_probe_requires_a_valid_loaded_pool",
@@ -144,13 +134,10 @@
"tests.unit.speech.test_stt_provider_live_switch::test_pipeline_switch_replaces_voice_and_next_dictation_provider",
"tests.unit.speech.test_wake_language_aware::test_the_stt_language_list_has_exactly_one_source",
"tests.unit.telemetry.test_latency_span_event::test_latency_phase_is_a_string_enum_source_of_truth",
- "tests.unit.test_bare_jarvis_starts_desktop::test_readme_still_documents_bare_jarvis_as_the_desktop_entry",
"tests.unit.test_codex_auth::test_guarded_windows_login_closes_job_when_guardian_exits",
- "tests.unit.test_provider_spec::test_non_gemini_providers_have_no_alt_credential",
"tests.unit.test_router_delegator_policy.TestDelegatorPolicyInPrompt::test_default_on_uncertainty_is_self_serve",
"tests.unit.test_tts_defaults_parity::test_all_tts_providers_have_defaults_entry",
"tests.unit.ui.jarvisbar.test_qt_overlay::test_full_frame_paint_clears_black_backing_and_previous_pixels",
- "tests.unit.ui.test_icon_identity::test_bundled_app_icon_png_is_white_rounded_tile",
"tests.unit.ui.web.test_skills_routes::test_creator_author_writes_a_draft_skill_with_a_brain",
"tests.unit.ui.web.test_society_figure_routes::test_a_contract_figure_is_accepted_stored_and_served",
"tests.unit.ui.web.test_society_routes::test_memory_file_serves_society_page_and_refuses_escape",
@@ -175,7 +162,6 @@
"tests.unit.web.test_realtime_provider_category::test_get_realtime_options_returns_curated_models_and_voices",
"tests.unit.web.test_realtime_provider_category::test_list_providers_includes_active_realtime_provider",
"tests.unit.web.test_realtime_provider_category::test_list_providers_resolves_gemini_only_fresh_install",
- "tests.unit.web.test_realtime_provider_category::test_openai_realtime_spec_owns_a_dedicated_key",
"tests.unit.web.test_realtime_provider_category::test_put_realtime_options_omitted_field_leaves_it_unwritten",
"tests.unit.web.test_realtime_provider_category::test_put_realtime_options_persists_model_and_voice",
"tests.unit.web.test_realtime_provider_category::test_put_realtime_options_persists_voice",
@@ -189,11 +175,6 @@
"tests.unit.web.test_realtime_voice_preview::test_missing_voice_is_400",
"tests.unit.web.test_realtime_voice_preview::test_sampler_failure_is_clean_502",
"tests.unit.web.test_realtime_voice_preview::test_uncatalogued_model_is_422",
- "tests.unit.web.test_realtime_voice_preview::test_uncatalogued_voice_is_422",
- "tests.unit.workspace.test_custom_clis::test_a_logo_is_stored_and_served",
- "tests.unit.workspace.test_custom_clis::test_a_stored_cli_is_offered_like_a_built_in",
- "tests.unit.workspace.test_custom_clis::test_deleting_an_entry_takes_its_logo_with_it",
- "tests.unit.workspace.test_custom_clis::test_detection_never_runs_a_strangers_binary",
- "tests.unit.workspace.test_custom_clis::test_replacing_a_logo_leaves_no_stale_sibling"
+ "tests.unit.web.test_realtime_voice_preview::test_uncatalogued_voice_is_422"
]
}
diff --git a/scripts/ci/test-baseline-windows.json b/scripts/ci/test-baseline-windows.json
index cead3ecbd3..250558fb79 100644
--- a/scripts/ci/test-baseline-windows.json
+++ b/scripts/ci/test-baseline-windows.json
@@ -17,7 +17,6 @@
"tests.integration.test_ollama_catalog_is_current::test_the_shortlist_names_every_registered_tag",
"tests.integration.test_provider_routes::test_list_providers_reports_codex_without_leaking_auth_files",
"tests.integration.test_provider_routes::test_section_health_returns_all_tabs",
- "tests.integration.test_tasks_recurring::test_runner_agent_delivers_result_as_announcement",
"tests.integration.test_tasks_recurring::test_runner_agent_dispatches_to_brain",
"tests.integration.test_tasks_recurring::test_runner_arms_auto_approver_for_write_grants",
"tests.integration.test_when_then_e2e::test_mission_finished_opens_browser_and_speaks",
@@ -32,12 +31,7 @@
"tests.missions.worker_runtime.test_provider_map::test_ad6_table_is_complete",
"tests.missions.workers.test_api_agent_tools::test_command_cancellation_reaps_descendant_tree",
"tests.missions.workers.test_api_agent_tools::test_command_timeout_reaps_descendant_tree",
- "tests.review.test_jarvis_agent_files::test_reviewer_body_contains_hard_rules",
"tests.review.test_jarvis_agent_files::test_reviewer_frontmatter_strict",
- "tests.review.test_jarvis_agent_files::test_subagent_file_exists[path0]",
- "tests.review.test_jarvis_agent_files::test_subagent_file_exists[path1]",
- "tests.review.test_jarvis_agent_files::test_worker_body_mentions_feedback_block",
- "tests.review.test_jarvis_agent_files::test_worker_frontmatter",
"tests.unit.agentic_ide.test_composer_hedge::test_a_defective_brief_teaches_nothing",
"tests.unit.agentic_ide.test_composer_hedge::test_a_delivered_brief_teaches_the_writers_threshold",
"tests.unit.agentic_ide.test_pane_move_route::test_a_pane_can_be_moved_into_another_columns_stack",
@@ -77,7 +71,6 @@
"tests.unit.core.test_colour_env::test_nothing_is_announced_when_there_was_nothing_to_drop",
"tests.unit.core.test_colour_env::test_start_up_drops_the_claims_before_anything_else_runs",
"tests.unit.core.test_colour_env::test_the_drop_is_announced_somewhere_a_person_can_read_it",
- "tests.unit.core.test_dictation_paste_chord_custom::test_a_curated_chord_still_reports_inserted_and_restores",
"tests.unit.core.test_dictation_paste_chord_custom::test_a_custom_chord_reports_paste_sent_and_keeps_the_clipboard",
"tests.unit.dictation.test_polish_boot_safety::test_no_module_under_jarvis_brain_calls_the_polish_pass",
"tests.unit.dictation.test_polish_timeout_ramp::test_a_long_dictation_is_given_more_time_than_a_short_one",
@@ -104,8 +97,6 @@
"tests.unit.plugins.stt.test_dictionary_bias_opt_out::test_the_opt_out_keeps_an_explicit_bias_prompt_but_not_the_dictionary",
"tests.unit.plugins.stt.test_dictionary_bias_opt_out::test_the_opt_out_sends_no_prompt_when_the_dictionary_is_the_only_bias",
"tests.unit.plugins.test_create_skill_tool::test_writes_a_brain_authored_draft_skill",
- "tests.unit.plugins.tts.test_realtime_surface_tts::test_pipeline_tts_cannot_see_a_realtime_only_key",
- "tests.unit.plugins.tts.test_realtime_surface_tts::test_pipeline_tts_credential_map_lists_no_realtime_slots",
"tests.unit.plugins.tts.test_realtime_surface_tts::test_realtime_slots_are_only_trailing_fallbacks_outside_realtime_ids",
"tests.unit.realtime.local_server.test_supervisor::test_runtime_probe_requires_a_valid_loaded_pool",
"tests.unit.realtime.test_lookup_never_reports_done::test_the_fact_list_is_bounded",
@@ -119,8 +110,6 @@
"tests.unit.realtime.test_voice_scenarios::test_scenario_behaves[four-orders-and-the-calendar-fails]",
"tests.unit.realtime.test_voice_scenarios::test_scenario_behaves[partial-success-still-reports-the-work]",
"tests.unit.setup.test_macos_app_bundle::test_a_changed_interpreter_still_earns_a_fresh_rebuild",
- "tests.unit.setup.test_macos_dock::test_a_fresh_install_lands_in_the_dock",
- "tests.unit.setup.test_macos_dock::test_a_tile_the_user_removed_stays_removed",
"tests.unit.skills.test_builtin_instruction_standard::test_builtin_meets_instruction_standard[plugin-agentmail]",
"tests.unit.skills.test_builtin_instruction_standard::test_builtin_meets_instruction_standard[plugin-amd_gpu]",
"tests.unit.skills.test_builtin_instruction_standard::test_builtin_meets_instruction_standard[plugin-apollo]",
@@ -153,11 +142,8 @@
"tests.unit.speech.test_stt_provider_live_switch::test_pipeline_switch_replaces_voice_and_next_dictation_provider",
"tests.unit.speech.test_wake_language_aware::test_the_stt_language_list_has_exactly_one_source",
"tests.unit.telemetry.test_latency_span_event::test_latency_phase_is_a_string_enum_source_of_truth",
- "tests.unit.test_bare_jarvis_starts_desktop::test_readme_still_documents_bare_jarvis_as_the_desktop_entry",
- "tests.unit.test_provider_spec::test_non_gemini_providers_have_no_alt_credential",
"tests.unit.test_router_delegator_policy.TestDelegatorPolicyInPrompt::test_default_on_uncertainty_is_self_serve",
"tests.unit.test_tts_defaults_parity::test_all_tts_providers_have_defaults_entry",
- "tests.unit.ui.test_icon_identity::test_bundled_app_icon_png_is_white_rounded_tile",
"tests.unit.ui.test_relaunch_properties::test_relaunch_properties_stick_on_a_real_window",
"tests.unit.ui.web.test_skills_routes::test_creator_author_writes_a_draft_skill_with_a_brain",
"tests.unit.ui.web.test_society_figure_routes::test_a_contract_figure_is_accepted_stored_and_served",
@@ -173,8 +159,6 @@
"tests.unit.web.test_agentic_ide_workspaces::test_state_carries_the_bar_and_the_front_workspace_together",
"tests.unit.web.test_agentic_ide_workspaces::test_the_bar_lists_every_open_workspace_with_the_front_one_marked",
"tests.unit.web.test_local_only_install_has_every_tier::test_the_dictation_card_follows_the_server_the_user_configured",
- "tests.unit.web.test_mic_level_route::test_macos_permission_block_never_opens_microphone",
- "tests.unit.web.test_mic_level_route::test_macos_wake_self_test_does_not_bypass_permission_gate",
"tests.unit.web.test_mic_level_route::test_mic_level_never_500s_on_helper_error",
"tests.unit.web.test_mic_level_route::test_mic_level_reports_good_level",
"tests.unit.web.test_mic_level_route::test_mic_level_reports_no_device",
@@ -189,7 +173,6 @@
"tests.unit.web.test_realtime_provider_category::test_get_realtime_options_returns_curated_models_and_voices",
"tests.unit.web.test_realtime_provider_category::test_list_providers_includes_active_realtime_provider",
"tests.unit.web.test_realtime_provider_category::test_list_providers_resolves_gemini_only_fresh_install",
- "tests.unit.web.test_realtime_provider_category::test_openai_realtime_spec_owns_a_dedicated_key",
"tests.unit.web.test_realtime_provider_category::test_put_realtime_options_omitted_field_leaves_it_unwritten",
"tests.unit.web.test_realtime_provider_category::test_put_realtime_options_persists_model_and_voice",
"tests.unit.web.test_realtime_provider_category::test_put_realtime_options_persists_voice",
@@ -204,11 +187,6 @@
"tests.unit.web.test_realtime_voice_preview::test_sampler_failure_is_clean_502",
"tests.unit.web.test_realtime_voice_preview::test_uncatalogued_model_is_422",
"tests.unit.web.test_realtime_voice_preview::test_uncatalogued_voice_is_422",
- "tests.unit.workspace.test_custom_clis::test_a_logo_is_stored_and_served",
- "tests.unit.workspace.test_custom_clis::test_a_stored_cli_is_offered_like_a_built_in",
- "tests.unit.workspace.test_custom_clis::test_deleting_an_entry_takes_its_logo_with_it",
- "tests.unit.workspace.test_custom_clis::test_detection_never_runs_a_strangers_binary",
- "tests.unit.workspace.test_custom_clis::test_replacing_a_logo_leaves_no_stale_sibling",
"tests/missions/kontrollierer/test_capture_diff.py::<crash>"
]
}
diff --git a/tests/conftest.py b/tests/conftest.py
index 31cf7adf9d..7c756f9ce5 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -24,6 +24,32 @@ def pytest_configure(config) -> None: # noqa: ANN001
)
[email protected](autouse=True)
+def _society_runtime_isolated():
+ """Put the process-wide society runtime back after every test.
+
+ ``SocietyRuntime.ensure_started`` registers itself as the current runtime and
+ only ``close`` unregisters it, so a test that never closes one leaks it into
+ later suites: the Jarvis chat kit then offers ``society_browser`` and
+ tool-set assertions fail depending on test order. The brain's registered
+ society factory is restored for the same reason.
+ """
+ runtime_module = sys.modules.get("jarvis.society.runtime")
+ runtime_before = runtime_module.current_runtime() if runtime_module is not None else None
+ # Some suites stub these modules in sys.modules; only a real list is tracked.
+ ref = getattr(sys.modules.get("jarvis.brain.factory"), "_SOCIETY_FACTORY_REF", None)
+ # Not imported yet means the import-time state: no factory registered.
+ factory_before = list(ref) if isinstance(ref, list) else []
+ yield
+ runtime_module = sys.modules.get("jarvis.society.runtime")
+ restore = getattr(runtime_module, "set_current_runtime", None)
+ if callable(restore) and runtime_module.current_runtime() is not runtime_before:
+ restore(runtime_before)
+ ref = getattr(sys.modules.get("jarvis.brain.factory"), "_SOCIETY_FACTORY_REF", None)
+ if isinstance(ref, list) and ref != factory_before:
+ ref[:] = factory_before
+
+
@pytest.fixture(autouse=True)
def _authenticated_test_clients(request, monkeypatch): # noqa: ANN001
"""Give legacy TestClient suites a real authenticated browser session.
diff --git a/tests/unit/brain/test_manager_pointer.py b/tests/unit/brain/test_manager_pointer.py
index 2cb233c3af..f22c410489 100644
--- a/tests/unit/brain/test_manager_pointer.py
+++ b/tests/unit/brain/test_manager_pointer.py
@@ -18,7 +18,10 @@ from jarvis.pointer import turn as pturn
from jarvis.pointer.context import PointerContext
from jarvis.screen_context.turn import TurnScreenContext
from jarvis.vision.pointer_types import PointerElement
-from tests.fakes.fake_capabilities import fake_headless_capabilities
+from tests.fakes.fake_capabilities import (
+ fake_headless_capabilities,
+ fake_windows_capabilities,
+)
_DRAFT_FOR_REVIEW = (
"Write an English internal announcement draft, at most 80 words total including any handoff. "
@@ -90,6 +93,10 @@ async def test_deictic_utterance_injects_pointer(monkeypatch) -> None:
)
monkeypatch.setattr(pturn, "resolve_pointer_context_async", fake_resolve)
+ # A desktop with a cursor: a headless CI runner would fast-skip the pointer.
+ monkeypatch.setattr(
+ "jarvis.platform.capabilities.detect_capabilities", fake_windows_capabilities
+ )
manager, rec = _manager()
await manager.generate("was ist das da?", use_history=False)
@@ -229,6 +236,9 @@ async def test_pointer_turn_replaces_fullscreen_with_cursor_crop(monkeypatch) ->
)
monkeypatch.setattr(pturn, "resolve_pointer_context_async", fake_resolve)
+ monkeypatch.setattr(
+ "jarvis.platform.capabilities.detect_capabilities", fake_windows_capabilities
+ )
manager, rec = _manager(vision_images=(fullscreen,))
await manager.generate("was ist das hier?", use_history=False)
diff --git a/tests/unit/setup/test_macos_dock.py b/tests/unit/setup/test_macos_dock.py
index 4401afbc58..a2241b2ffd 100644
--- a/tests/unit/setup/test_macos_dock.py
+++ b/tests/unit/setup/test_macos_dock.py
@@ -11,13 +11,15 @@ from __future__ import annotations
import plistlib
import sys
-from pathlib import Path
+from pathlib import Path, PurePosixPath
import pytest
import jarvis.setup.macos_dock as dock
-_BUNDLE = Path("/Applications/Personal Jarvis.app")
+# A macOS path on every host: on Windows a drive-less Path is not absolute and
+# cannot become a file URI, while the code only names and formats the bundle.
+_BUNDLE = PurePosixPath("/Applications/Personal Jarvis.app")
def _tile(url: str, bundle_id: str | None) -> dict: