diff --git a/pyproject.toml b/pyproject.toml index 16908b11d0..da7f1021e6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ testpaths = [ "selfdrive/navd/tests", "selfdrive/test/longitudinal_maneuvers", "selfdrive/test/process_replay/test_fuzzy.py", - "selfdrive/updated", + "system/updated", "system/thermald", "system/athena", "system/camerad", diff --git a/release/files_common b/release/files_common index f6afd9390e..ff3e62aa15 100644 --- a/release/files_common +++ b/release/files_common @@ -54,8 +54,6 @@ tools/replay/*.h selfdrive/__init__.py -selfdrive/updated/** - system/logmessaged.py system/micd.py system/version.py @@ -189,7 +187,7 @@ system/ubloxd/generated/* system/ubloxd/*.h system/ubloxd/*.cc -system/updated/* +system/updated/** selfdrive/locationd/__init__.py selfdrive/locationd/SConscript diff --git a/scripts/stop_updater.sh b/scripts/stop_updater.sh index 7f82191823..703b363928 100755 --- a/scripts/stop_updater.sh +++ b/scripts/stop_updater.sh @@ -1,7 +1,7 @@ #!/usr/bin/env sh # Stop updater -pkill -2 -f selfdrive.updated.updated +pkill -2 -f system.updated.updated # Remove pending update rm -f /data/safe_staging/finalized/.overlay_consistent diff --git a/scripts/update_now.sh b/scripts/update_now.sh index 3f0193f081..c34228976a 100755 --- a/scripts/update_now.sh +++ b/scripts/update_now.sh @@ -1,4 +1,4 @@ #!/usr/bin/env sh # Send SIGHUP to updater -pkill -1 -f selfdrive.updated +pkill -1 -f system.updated diff --git a/selfdrive/manager/process_config.py b/selfdrive/manager/process_config.py index a8ab204da4..b6567c2f72 100644 --- a/selfdrive/manager/process_config.py +++ b/selfdrive/manager/process_config.py @@ -78,7 +78,7 @@ procs = [ PythonProcess("radard", "selfdrive.controls.radard", only_onroad), PythonProcess("thermald", "system.thermald.thermald", always_run), PythonProcess("tombstoned", "system.tombstoned", always_run, enabled=not PC), - PythonProcess("updated", "selfdrive.updated.updated", only_offroad, enabled=not PC), + PythonProcess("updated", "system.updated.updated", only_offroad, enabled=not PC), PythonProcess("uploader", "system.loggerd.uploader", always_run), PythonProcess("statsd", "system.statsd", always_run), diff --git a/selfdrive/test/test_updated.py b/selfdrive/test/test_updated.py index 5220cfb288..12619d4246 100755 --- a/selfdrive/test/test_updated.py +++ b/selfdrive/test/test_updated.py @@ -89,7 +89,7 @@ class TestUpdated: os.environ["UPDATER_STAGING_ROOT"] = self.staging_dir os.environ["UPDATER_NEOS_VERSION"] = self.neos_version os.environ["UPDATER_NEOSUPDATE_DIR"] = self.neosupdate_dir - updated_path = os.path.join(self.basedir, "selfdrive/updated.py") + updated_path = os.path.join(self.basedir, "system/updated.py") return subprocess.Popen(updated_path, env=os.environ) def _start_updater(self, offroad=True, nosleep=False): diff --git a/selfdrive/ui/qt/offroad/software_settings.cc b/selfdrive/ui/qt/offroad/software_settings.cc index d12db3f878..c8245205ce 100644 --- a/selfdrive/ui/qt/offroad/software_settings.cc +++ b/selfdrive/ui/qt/offroad/software_settings.cc @@ -17,7 +17,7 @@ void SoftwarePanel::checkForUpdates() { - std::system("pkill -SIGUSR1 -f selfdrive.updated.updated"); + std::system("pkill -SIGUSR1 -f system.updated.updated"); } SoftwarePanel::SoftwarePanel(QWidget* parent) : ListWidget(parent) { @@ -36,7 +36,7 @@ SoftwarePanel::SoftwarePanel(QWidget* parent) : ListWidget(parent) { if (downloadBtn->text() == tr("CHECK")) { checkForUpdates(); } else { - std::system("pkill -SIGHUP -f selfdrive.updated.updated"); + std::system("pkill -SIGHUP -f system.updated.updated"); } }); addItem(downloadBtn); diff --git a/system/updated/casync/tests/test_casync.py b/system/updated/casync/tests/test_casync.py index 80c5d2705c..29cf78f0f1 100755 --- a/system/updated/casync/tests/test_casync.py +++ b/system/updated/casync/tests/test_casync.py @@ -14,6 +14,7 @@ from openpilot.system.updated.casync import tar LOOPBACK = os.environ.get('LOOPBACK', None) +@pytest.mark.skip("not used yet") class TestCasync: @classmethod def setup_class(cls): @@ -151,6 +152,7 @@ class TestCasync: assert stats['remote'] < len(self.contents) +@pytest.mark.skip("not used yet") class TestCasyncDirectory: """Tests extracting a directory stored as a casync tar archive""" diff --git a/selfdrive/updated/tests/test_base.py b/system/updated/tests/test_base.py similarity index 100% rename from selfdrive/updated/tests/test_base.py rename to system/updated/tests/test_base.py diff --git a/selfdrive/updated/tests/test_git.py b/system/updated/tests/test_git.py similarity index 88% rename from selfdrive/updated/tests/test_git.py rename to system/updated/tests/test_git.py index 51ea77fb81..5a5a27000b 100644 --- a/selfdrive/updated/tests/test_git.py +++ b/system/updated/tests/test_git.py @@ -1,5 +1,5 @@ import contextlib -from openpilot.selfdrive.updated.tests.test_base import ParamsBaseUpdateTest, run, update_release +from openpilot.system.updated.tests.test_base import ParamsBaseUpdateTest, run, update_release class TestUpdateDGitStrategy(ParamsBaseUpdateTest): diff --git a/selfdrive/updated/updated.py b/system/updated/updated.py similarity index 100% rename from selfdrive/updated/updated.py rename to system/updated/updated.py