mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-30 11:02:19 +08:00
Jenkins tuneup (#28095)
* tuneup * use service messages * logmono * not passive old-commit-hash: d5a0a4b3e8a52b5a0e1da325c15cdb99d2a71350
This commit is contained in:
Vendored
+1
-7
@@ -185,7 +185,7 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('camerad-ar') {
|
||||
stage('camerad') {
|
||||
agent { docker { image 'ghcr.io/commaai/alpine-ssh'; args '--user=root' } }
|
||||
steps {
|
||||
phone_steps("tici-ar0231", [
|
||||
@@ -193,12 +193,6 @@ pipeline {
|
||||
["test camerad", "python system/camerad/test/test_camerad.py"],
|
||||
["test exposure", "python system/camerad/test/test_exposure.py"],
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
stage('camerad-ox') {
|
||||
agent { docker { image 'ghcr.io/commaai/alpine-ssh'; args '--user=root' } }
|
||||
steps {
|
||||
phone_steps("tici-ox03c10", [
|
||||
["build", "cd selfdrive/manager && ./build.py"],
|
||||
["test camerad", "python system/camerad/test/test_camerad.py"],
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
import math
|
||||
import json
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import time
|
||||
import numpy as np
|
||||
@@ -53,7 +54,7 @@ PROCS = {
|
||||
"selfdrive.boardd.pandad": 0,
|
||||
"selfdrive.statsd": 0.4,
|
||||
"selfdrive.navd.navd": 0.4,
|
||||
"system.loggerd.uploader": 30.0,
|
||||
"system.loggerd.uploader": 4.0,
|
||||
"system.loggerd.deleter": 0.1,
|
||||
"selfdrive.locationd.laikad": None, # TODO: laikad cpu usage is sporadic
|
||||
}
|
||||
@@ -94,14 +95,17 @@ class TestOnroad(unittest.TestCase):
|
||||
return
|
||||
|
||||
# setup env
|
||||
os.environ['PASSIVE'] = "0"
|
||||
os.environ['REPLAY'] = "1"
|
||||
os.environ['SKIP_FW_QUERY'] = "1"
|
||||
os.environ['FINGERPRINT'] = "TOYOTA COROLLA TSS2 2019"
|
||||
os.environ['LOGPRINT'] = 'debug'
|
||||
os.environ['LOGPRINT'] = "debug"
|
||||
|
||||
params = Params()
|
||||
params.clear_all()
|
||||
set_params_enabled()
|
||||
if os.path.exists(ROOT):
|
||||
shutil.rmtree(ROOT)
|
||||
|
||||
# Make sure athena isn't running
|
||||
os.system("pkill -9 -f athena")
|
||||
@@ -299,7 +303,7 @@ class TestOnroad(unittest.TestCase):
|
||||
result += "----------------- Service Timings --------------\n"
|
||||
result += "------------------------------------------------\n"
|
||||
for s, (maxmin, rsd) in TIMINGS.items():
|
||||
msgs = [m.logMonoTime for m in self.lr if m.which() == s]
|
||||
msgs = [m.logMonoTime for m in self.service_msgs[s]]
|
||||
if not len(msgs):
|
||||
raise Exception(f"missing {s}")
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@ class Proc:
|
||||
name: str
|
||||
power: float
|
||||
rtol: float = 0.05
|
||||
atol: float = 0.1
|
||||
atol: float = 0.12
|
||||
warmup: float = 6.
|
||||
|
||||
PROCS = [
|
||||
Proc('camerad', 2.15),
|
||||
Proc('camerad', 2.1),
|
||||
Proc('modeld', 0.93, atol=0.2),
|
||||
Proc('dmonitoringmodeld', 0.4),
|
||||
Proc('encoderd', 0.23),
|
||||
@@ -60,7 +60,7 @@ class TestPowerDraw(unittest.TestCase):
|
||||
manager_cleanup()
|
||||
|
||||
tab = []
|
||||
tab.append(['process', 'expected (W)', 'current (W)'])
|
||||
tab.append(['process', 'expected (W)', 'measured (W)'])
|
||||
for proc in PROCS:
|
||||
cur = used[proc.name]
|
||||
expected = proc.power
|
||||
|
||||
Reference in New Issue
Block a user