update tested branches
old-commit-hash: 116bb0b52486d5b5d5fcf682b1353d48126ea157
This commit is contained in:
@@ -21,7 +21,7 @@ from selfdrive.loggerd.config import get_available_percent
|
|||||||
from selfdrive.pandad import get_expected_signature
|
from selfdrive.pandad import get_expected_signature
|
||||||
from selfdrive.swaglog import cloudlog
|
from selfdrive.swaglog import cloudlog
|
||||||
from selfdrive.thermald.power_monitoring import PowerMonitoring
|
from selfdrive.thermald.power_monitoring import PowerMonitoring
|
||||||
from selfdrive.version import get_git_branch, terms_version, training_version
|
from selfdrive.version import tested_branch, terms_version, training_version
|
||||||
|
|
||||||
FW_SIGNATURE = get_expected_signature()
|
FW_SIGNATURE = get_expected_signature()
|
||||||
|
|
||||||
@@ -151,7 +151,6 @@ def thermald_thread():
|
|||||||
started_seen = False
|
started_seen = False
|
||||||
thermal_status = ThermalStatus.green
|
thermal_status = ThermalStatus.green
|
||||||
usb_power = True
|
usb_power = True
|
||||||
current_branch = get_git_branch()
|
|
||||||
|
|
||||||
network_type = NetworkType.none
|
network_type = NetworkType.none
|
||||||
network_strength = NetworkStrength.unknown
|
network_strength = NetworkStrength.unknown
|
||||||
@@ -333,7 +332,7 @@ def thermald_thread():
|
|||||||
last_update_exception = params.get("LastUpdateException", encoding='utf8')
|
last_update_exception = params.get("LastUpdateException", encoding='utf8')
|
||||||
|
|
||||||
if update_failed_count > 15 and last_update_exception is not None:
|
if update_failed_count > 15 and last_update_exception is not None:
|
||||||
if current_branch in ["release2", "dashcam"]:
|
if tested_branch:
|
||||||
extra_text = "Ensure the software is correctly installed"
|
extra_text = "Ensure the software is correctly installed"
|
||||||
else:
|
else:
|
||||||
extra_text = last_update_exception
|
extra_text = last_update_exception
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ from common.basedir import BASEDIR
|
|||||||
from selfdrive.swaglog import cloudlog
|
from selfdrive.swaglog import cloudlog
|
||||||
|
|
||||||
|
|
||||||
|
TESTED_BRANCHES = ['devel', 'release2-staging', 'release3-staging', 'dashcam-staging', 'release2', 'release3', 'dashcam']
|
||||||
|
|
||||||
|
|
||||||
def run_cmd(cmd: List[str]) -> str:
|
def run_cmd(cmd: List[str]) -> str:
|
||||||
return subprocess.check_output(cmd, encoding='utf8').strip()
|
return subprocess.check_output(cmd, encoding='utf8').strip()
|
||||||
|
|
||||||
@@ -60,7 +63,7 @@ commit = get_git_commit()
|
|||||||
if (origin is not None) and (branch is not None):
|
if (origin is not None) and (branch is not None):
|
||||||
try:
|
try:
|
||||||
comma_remote = origin.startswith('git@github.com:commaai') or origin.startswith('https://github.com/commaai')
|
comma_remote = origin.startswith('git@github.com:commaai') or origin.startswith('https://github.com/commaai')
|
||||||
tested_branch = get_git_branch() in ['devel', 'release2-staging', 'dashcam-staging', 'release2', 'dashcam']
|
tested_branch = get_git_branch() in TESTED_BRANCHES
|
||||||
|
|
||||||
dirty = False
|
dirty = False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user