dragonpilot - 基於 openpilot 的開源駕駛輔助系統
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
HaraldSchafer d708a134bd
Tssp prius torque control (#24669)
3 years ago
..
.gitignore test_debayer.py some PC fixes (#24449) 3 years ago
README.md process replay: automatically push refs on fail (#24414) 3 years ago
__init__.py selfdrive/test 5 years ago
compare_logs.py process replay: support running in parallel (#24534) 3 years ago
debayer_replay_ref_commit debayering: update test ref commit 3 years ago
helpers.py process replay: prefix setup in helper (#24636) 3 years ago
model_replay.py visionipc python shim (#24660) 3 years ago
model_replay_ref_commit New model: better laneless (#24605) 3 years ago
process_replay.py process replay: prefix setup in helper (#24636) 3 years ago
ref_commit Tssp prius torque control (#24669) 3 years ago
regen.py visionipc python shim (#24660) 3 years ago
regen_all.py Ensure controlsd can engage again in process replay (#23556) 3 years ago
test_debayer.py make debayer faster (#24557) 3 years ago
test_fuzzy.py update test fuzzy 4 years ago
test_processes.py process replay: fix updating refs after regen (#24656) 3 years ago

README.md

Process replay

Process replay is a regression test designed to identify any changes in the output of a process. This test replays a segment through individual processes and compares the output to a known good replay. Each make is represented in the test with a segment.

If the test fails, make sure that you didn't unintentionally change anything. If there are intentional changes, the reference logs will be updated.

Use test_processes.py to run the test locally.

Currently the following processes are tested:

  • controlsd
  • radard
  • plannerd
  • calibrationd
  • dmonitoringd
  • locationd
  • paramsd
  • ubloxd

Usage

Usage: test_processes.py [-h] [--whitelist-procs PROCS] [--whitelist-cars CARS] [--blacklist-procs PROCS]
                         [--blacklist-cars CARS] [--ignore-fields FIELDS] [--ignore-msgs MSGS] [--update-refs] [--upload-only]
Regression test to identify changes in a process's output
optional arguments:
  -h, --help            show this help message and exit
  --whitelist-procs PROCS               Whitelist given processes from the test (e.g. controlsd)
  --whitelist-cars WHITELIST_CARS       Whitelist given cars from the test (e.g. HONDA)
  --blacklist-procs BLACKLIST_PROCS     Blacklist given processes from the test (e.g. controlsd)
  --blacklist-cars BLACKLIST_CARS       Blacklist given cars from the test (e.g. HONDA)
  --ignore-fields IGNORE_FIELDS         Extra fields or msgs to ignore (e.g. carState.events)
  --ignore-msgs IGNORE_MSGS             Msgs to ignore (e.g. carEvents)
  --update-refs                         Updates reference logs using current commit
  --upload-only                         Skips testing processes and uploads logs from previous test run

Forks

openpilot forks can use this test with their own reference logs, by default test_proccess.py saves logs locally.

To generate new logs:

./test_processes.py

Then, check in the new logs using git-lfs. Make sure to also update the ref_commit file to the current commit.