selfdrive package

Subpackages

Submodules

selfdrive.sentry module

Install exception handler for process crash.

class selfdrive.sentry.SentryProject(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

SELFDRIVE = 'https://6f3c7076c1e14b2aa10f5dde6dda0cc4@o33823.ingest.sentry.io/77924'
SELFDRIVE_NATIVE = 'https://3e4b586ed21a4479ad5d85083b639bc6@o33823.ingest.sentry.io/157615'
selfdrive.sentry.capture_exception(*args, **kwargs) None[source]
selfdrive.sentry.init(project: SentryProject) bool[source]
selfdrive.sentry.report_tombstone(fn: str, message: str, contents: str) None[source]
selfdrive.sentry.set_tag(key: str, value: str) None[source]

selfdrive.statsd module

class selfdrive.statsd.METRIC_TYPE[source]

Bases: object

GAUGE = 'g'
SAMPLE = 'sa'
class selfdrive.statsd.StatLog[source]

Bases: object

connect() None[source]
gauge(name: str, value: float) None[source]
sample(name: str, value: float)[source]
selfdrive.statsd.main() NoReturn[source]

selfdrive.tombstoned module

selfdrive.tombstoned.clear_apport_folder()[source]
selfdrive.tombstoned.get_apport_stacktrace(fn)[source]
selfdrive.tombstoned.get_tombstones()[source]

Returns list of (filename, ctime) for all crashlogs

selfdrive.tombstoned.main() NoReturn[source]
selfdrive.tombstoned.report_tombstone_apport(fn)[source]
selfdrive.tombstoned.safe_fn(s)[source]

selfdrive.updated module

class selfdrive.updated.Updater[source]

Bases: object

check_for_update() None[source]
fetch_update() None[source]
get_branch(path: str) str[source]
get_commit_hash(path: str = '/data/safe_staging/merged') str[source]
property has_internet: bool
set_params(update_success: bool, failed_count: int, exception: str | None) None[source]
property target_branch: str
property update_available: bool
property update_ready: bool
class selfdrive.updated.UserRequest[source]

Bases: object

CHECK = 1
FETCH = 2
NONE = 0
class selfdrive.updated.WaitTimeHelper[source]

Bases: object

check_now(signum: int, frame) None[source]
sleep(t: float) None[source]
update_now(signum: int, frame) None[source]
selfdrive.updated.dismount_overlay() None[source]
selfdrive.updated.finalize_update() None[source]

Take the current OverlayFS merged view and finalize a copy outside of OverlayFS, ready to be swapped-in at BASEDIR. Copy using shutil.copytree

selfdrive.updated.handle_agnos_update() None[source]
selfdrive.updated.init_overlay() None[source]
selfdrive.updated.main() None[source]
selfdrive.updated.parse_release_notes(basedir: str) bytes[source]
selfdrive.updated.read_time_from_param(params, param) datetime | None[source]
selfdrive.updated.run(cmd: list[str], cwd: str = None) str[source]
selfdrive.updated.set_consistent_flag(consistent: bool) None[source]
selfdrive.updated.setup_git_options(cwd: str) None[source]
selfdrive.updated.write_time_to_param(params, param) None[source]

Module contents