openpilot/selfdrive/test/process_replay
HaraldSchafer 124100d0fa
remove old model packet (#19769)
* remove publisher

* move to V2

* radard new model

* fix plant

* change packety

* need hack here too

* change to new

* this has been wrong all along

* no more model msg

* subscribe to new model

* not needed anymore

* make work

* need to ignore that too

* should pass tests, needs car test

* fix process replay

* no more poly

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-01-19 17:15:16 -08:00
..
__init__.py selfdrive/test 2020-01-17 11:16:14 -08:00
camera_replay.py remove old model packet (#19769) 2021-01-19 17:15:16 -08:00
compare_logs.py add modelV2 to model replay (#2725) 2020-12-08 22:01:34 -08:00
inject_model.py Added model_replay and fixed some bugs in camera_replay (#2679) 2020-12-08 19:01:59 -08:00
model_ref_commit Nissan port - dashcam only (#1203) 2020-03-05 15:40:07 -08:00
model_replay_ref_commit Mpc rework2 (#19660) 2021-01-14 18:43:50 -08:00
process_replay.py remove old model packet (#19769) 2021-01-19 17:15:16 -08:00
README.md Process replay for C++ daemons (#2288) 2020-10-12 11:18:53 +02:00
ref_commit remove old model packet (#19769) 2021-01-19 17:15:16 -08:00
test_processes.py remove old model packet (#19769) 2021-01-19 17:15:16 -08:00
update_model.py add type hints to selfdrive/version.py 2020-09-19 14:55:27 -07:00
update_refs.py add type hints to selfdrive/version.py 2020-09-19 14:55:27 -07:00

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
  • ubloxd

Forks

openpilot forks can use this test with their own reference logs

To generate new logs:

./update_refs.py --no-upload

Then, check in the new logs using git-lfs. Make sure to also include the updated ref_commit file.