updated: finish system/ move (#32535)

* updated: finish system/ move

* add those back

* skip that

* skip whole file

* one more time
old-commit-hash: 73b02f2cda
This commit is contained in:
Adeeb Shihadeh 2024-05-25 12:22:02 -07:00 committed by GitHub
parent f1c241361c
commit 4356b74cca
11 changed files with 11 additions and 11 deletions

View File

@ -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",

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/usr/bin/env sh
# Send SIGHUP to updater
pkill -1 -f selfdrive.updated
pkill -1 -f system.updated

View File

@ -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),

View File

@ -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):

View File

@ -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);

View File

@ -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"""

View File

@ -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):