Move to FrogPilot API

This commit is contained in:
James
2026-03-06 03:43:23 -07:00
parent c5a332081d
commit d242fd96d5
727 changed files with 1965 additions and 128440 deletions
+1
View File
@@ -132,6 +132,7 @@ if HARDWARE.get_device_type() == "mici":
elif TICI:
procs.append(NativeProcess("ui", "selfdrive/ui", ["./ui"], always_run, watchdog_max_dt=5)),
procs += [
PythonProcess("device_syncd", "frogpilot.system.device_syncd", always_run),
PythonProcess("frogpilot_process", "frogpilot.frogpilot_process", always_run),
NativeProcess("mapd", "frogpilot/navigation", ["./mapd"], always_run),
PythonProcess("speed_limit_filler", "frogpilot.system.speed_limit_filler", run_speed_limit_filler),
+5 -5
View File
@@ -1,5 +1,4 @@
"""Install exception handler for process crash."""
import os
import sentry_sdk
import traceback
from datetime import datetime
@@ -12,14 +11,15 @@ from openpilot.system.hardware import HARDWARE, PC
from openpilot.common.swaglog import cloudlog
from openpilot.system.version import get_build_metadata, get_version
from openpilot.frogpilot.common.frogpilot_utilities import get_sentry_dsn
from openpilot.frogpilot.common.frogpilot_variables import ERROR_LOGS_PATH
class SentryProject(Enum):
# python project
SELFDRIVE = os.environ.get("SENTRY_DSN", "")
SELFDRIVE = "https://6f3c7076c1e14b2aa10f5dde6dda0cc4@o33823.ingest.sentry.io/77924"
# native project
SELFDRIVE_NATIVE = os.environ.get("SENTRY_DSN", "")
SELFDRIVE_NATIVE = "https://3e4b586ed21a4479ad5d85083b639bc6@o33823.ingest.sentry.io/157615"
def report_tombstone(fn: str, message: str, contents: str) -> None:
@@ -85,7 +85,7 @@ def init(project: SentryProject) -> bool:
short_branch = build_metadata.channel
if short_branch in ["COMMA", "HEAD"]:
return
return False
elif short_branch == "FrogPilot-Development":
env = "Development"
elif build_metadata.release_channel:
@@ -101,7 +101,7 @@ def init(project: SentryProject) -> bool:
if project == SentryProject.SELFDRIVE:
integrations.append(ThreadingIntegration(propagate_hub=True))
sentry_sdk.init(project.value,
sentry_sdk.init(get_sentry_dsn(),
default_integrations=False,
release=get_version(),
integrations=integrations,