mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-20 21:53:56 +08:00
* kind of works
* move that
* hack to get camerad to reliably terminate
* not sure why SIGTERM wasn't working before
* compare bytes
* clean up some hacks
* gitignore
* fix that
* WIP
* no reboot
* comparison works
* pretty print
* fix build
* run in jenkins
* python path
* space
* raise timeout
* new eon
* skip the copy
* spinner
* spin less
* update model ref commit
* reenable that
* clean up
* fix jenkinsfile
* parallel
* wrap it in a stage
* fix linter
* better progress
* lower timeout
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 63c8e8439b
42 lines
1.2 KiB
Python
Executable File
42 lines
1.2 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
import os
|
|
import sys
|
|
|
|
from selfdrive.test.openpilotci import upload_file
|
|
from selfdrive.test.process_replay.compare_logs import save_log
|
|
from selfdrive.test.process_replay.process_replay import replay_process, CONFIGS
|
|
from selfdrive.test.process_replay.test_processes import segments, get_segment
|
|
from selfdrive.version import get_git_commit
|
|
from tools.lib.logreader import LogReader
|
|
|
|
if __name__ == "__main__":
|
|
|
|
no_upload = "--no-upload" in sys.argv
|
|
|
|
process_replay_dir = os.path.dirname(os.path.abspath(__file__))
|
|
ref_commit_fn = os.path.join(process_replay_dir, "ref_commit")
|
|
|
|
ref_commit = get_git_commit()
|
|
with open(ref_commit_fn, "w") as f:
|
|
f.write(ref_commit)
|
|
|
|
for car_brand, segment in segments:
|
|
rlog_fn = get_segment(segment)
|
|
|
|
if rlog_fn is None:
|
|
print("failed to get segment %s" % segment)
|
|
sys.exit(1)
|
|
|
|
lr = LogReader(rlog_fn)
|
|
|
|
for cfg in CONFIGS:
|
|
log_msgs = replay_process(cfg, lr)
|
|
log_fn = os.path.join(process_replay_dir, "%s_%s_%s.bz2" % (segment, cfg.proc_name, ref_commit))
|
|
save_log(log_fn, log_msgs)
|
|
|
|
if not no_upload:
|
|
upload_file(log_fn, os.path.basename(log_fn))
|
|
os.remove(log_fn)
|
|
|
|
print("done")
|