mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-22 09:33:52 +08:00
* test failure() * let's just change a tune here * debug revert * debug * use current commit, not ref_commit fix * need to figure out better place for this * quick test * test without upload * temp * use azure token * fixes * shouldn't need this * debug * debug * not getting anything? * does this mean nothing gets envvars? * add azure token to docker environment variables * quote * move back * clean up a bit * more clean up * like this sorting better * replace flags with CI and clean up * test FULL_TEST and minimalize diff a bit * now test all * revert tests comments * remove flags * revert this revert this * now make it fail * now update ref_commit to last commit (make sure we can re-start this test if we commit before last one finishes uploading) * fix fix fix fix * bad commit * why is it not throwing an exception? * debug * URLFile returns empty bytes if using cache and remote file doesn't exist * we always need to download anyway * debug... * duh, wrong file. but neither should have it * add that back and just check explicitly * check both * clean up and make a diff * stylize * see if this is a better diff on files changed * update refs * revert changes * only for owners or members * if we have token access * if we have token access * if we have token access * move up * clean up * revert * move update refs to test_processes * clean up * update messages * update msg * update README and delete update_refs * this isn't possible to reach anymore * fix readme * better help message better help message better help message * only show basename when uploading, only if failed to find * test diff * fix printing old ref commit * change to using * update refs * Revert "update refs" This reverts commit 2e352a736a6de68e2c7064daa4e2e9409ce77686. * revert * ref refers to reference commit/logs, cur refers to current logs/commit (future ref) * like for better * Apply suggestions from code review Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> * Update selfdrive/test/process_replay/test_processes.py * every time lol Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
46 lines
2.0 KiB
Markdown
46 lines
2.0 KiB
Markdown
# 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.
|