diff --git a/system/manager/process_config.py b/system/manager/process_config.py index 4b758db579..0a00a067f4 100644 --- a/system/manager/process_config.py +++ b/system/manager/process_config.py @@ -135,18 +135,22 @@ procs = [ ] # StarPilot variables +procs += [ + PythonProcess("the_pond", "starpilot.system.the_pond.the_pond", always_run, nice=19), + PythonProcess("galaxy", "starpilot.system.galaxy.galaxy", always_run, nice=19), +] + device_type = HARDWARE.get_device_type() if device_type in ("tici", "tizi"): procs.append(NativeProcess("ui", "selfdrive/ui", ["./ui"], always_run, watchdog_max_dt=UI_WATCHDOG_MAX_DT)) else: # C4 (mici) runs the Python raylib UI path. procs.append(PythonProcess("ui", "selfdrive.ui.ui", always_run, watchdog_max_dt=UI_WATCHDOG_MAX_DT)) + procs += [ PythonProcess("device_syncd", "starpilot.system.device_syncd", always_run), PythonProcess("starpilot_process", "starpilot.starpilot_process", always_run), PythonProcess("mapd", "starpilot.navigation.mapd_wrapper", always_run), - PythonProcess("the_pond", "starpilot.system.the_pond.the_pond", always_run, nice=19), - PythonProcess("galaxy", "starpilot.system.galaxy.galaxy", always_run, nice=19), PythonProcess("speed_limit_filler", "starpilot.system.speed_limit_filler", run_speed_limit_filler), PythonProcess("speed_limit_vision", "starpilot.system.speed_limit_vision", run_speed_limit_vision, nice=19), ] diff --git a/system/manager/test/test_manager.py b/system/manager/test/test_manager.py index 681ea57849..8f2224c20f 100644 --- a/system/manager/test/test_manager.py +++ b/system/manager/test/test_manager.py @@ -89,6 +89,13 @@ class TestManager: def test_duplicate_procs(self): assert len(procs) == len(managed_processes), "Duplicate process names" + def test_remote_access_procs_start_before_ui(self): + names = [p.name for p in procs] + ui_idx = names.index("ui") + + assert names.index("the_pond") < ui_idx + assert names.index("galaxy") < ui_idx + def test_blacklisted_procs(self): # TODO: ensure there are blacklisted procs until we have a dedicated test assert len(BLACKLIST_PROCS), "No blacklisted procs to test not_run"