Commit Graph

112 Commits

Author SHA1 Message Date
Dean Lee
c77354009c panda: add unit tests for usb protocol (pack/unpack) (#22955)
* prepare for unit tests

* add to selfdrive_tests.yaml

* test header

* test chunk count

* rename test function

* continue

* don't check chunks count

* test recv_can

* continue

* small cleanup

* merge master

* cleanup

* rename functions

* test different packet size

* fix operator precedence problem

* refactor unpack_can_buffer

* cleanup test

* cleanup unpack_can_buffer

* add test for multiple pandas

* rename to test_panda

* restore test_boardd

* rename to test_boardd_usbprotocol

* fix typo

* bus_offset = [0,4]

* change src

* use USBPACKET_MAX_SIZE
2021-11-23 20:15:22 -08:00
Willem Melching
ba0c844ad9 ci: move timestamp step into correct job 2021-11-17 14:21:59 +01:00
Willem Melching
6bbcecb41c ci: scons cache should be pushed by a stage that actually builds 2021-11-12 19:54:04 +01:00
Willem Melching
264c5f4e61 ci: run test car models in matrix (#22884)
* Run test car models in matrix

* cache key per job

* actually cache files

* ci

* make files readable

* actually expose variables

* fix quote

* get cache unstuck

* ro cache can use more prefixes

* ci
2021-11-12 19:50:15 +01:00
Willem Melching
579994ced9 ci: scons save condition was flipped 2021-11-12 19:30:55 +01:00
Willem Melching
d98c73adb4 ci: fix timestamp in cache key (#22886) 2021-11-12 18:13:21 +01:00
Willem Melching
4462d4c31f ci: new name for scons cache to switch to new timestamp 2021-11-12 17:25:31 +01:00
Willem Melching
b213e225a6 ci: use scons cache (#22885)
* ci: populate scons cache

* release build can use the regular cache

* no volume for docker run

* no need to load the cache then

* upload cache on master
2021-11-12 17:19:25 +01:00
Willem Melching
0e78502181 remove broken athena test 2021-11-11 17:32:26 +01:00
Willem Melching
b816b5b644 Sphinx docs generation (#22697)
* add sphinx

* switch theme

* Experiment: sphinx docs generation updated (#22708)

* moved build to root gitignore, added .gitkeep

* Improved makefile doc build process

- Removed auto-generated docs from source control
- Moved apidoc.sh into Makefile
- Removed make.bat (can add back if Windows support desired)
- Added sphinx viewcode and markdown extensions
- Added feature to source /docs in build, so any .rst file in /docs will
  override the respective file during the build process
- Added feature to copy all markdown/rst files from source into /build/
  during build process so they can be easily referenced while writing
  docs (see examples in index.md)
- Wrote basic starter index.md file

TODO: Add new dependencies to Pipfile [dev-packages]

* Revert accidental modification to Pipfile

* fix command substitution

* exclude xx

* improve docs

* dont include all docs in release build

* Add dockerfile

* update title

* include normal readme

* build container in CI

* use buildkit

* add login

Co-authored-by: Chad Bailey <chadbailey904@gmail.com>
2021-10-28 15:14:37 +02:00
Willem Melching
8cd195d030 fix test_models.py (#22694) 2021-10-26 14:46:31 +02:00
Adeeb Shihadeh
5b641379ae phonelibs -> third_party (#22477)
* git mv to third_party

* find and replace

* fix release tests

* update pre-commit

* update tici bins

* update eon bins

Co-authored-by: Comma Device <device@comma.ai>
2021-10-07 16:32:44 -07:00
Adeeb Shihadeh
de7a9e0116 move athena tests to github actions (#22475)
* move athena tests to actions

* run

* fix timeout
2021-10-07 13:22:14 -07:00
Dean Lee
f3683dd4cb test_replay.cc: temporarily comment out the rand seek test (#22192)
* Temporarily comment out the rand seek test

* enable ci

* trigger ci

* trigger ci

* trigger ci

* trigger ci

* trigger ci
2021-09-10 21:53:46 -07:00
Adeeb Shihadeh
95ee5daec5 disable replay tests for now 2021-09-10 17:33:20 -07:00
Dean Lee
81a128cd76 FrameReader: do not depend on Qtunit tests (#21379)
* add timeout and test case

* remove useless comment

* reduce to 1s

* fix gotframe fail when Duplicate POC in a sequence

* cleanup

* remove space

* fix
2021-09-09 13:40:12 -07:00
Adeeb Shihadeh
81006b03c2 handle missing routes better in test car models 2021-09-06 19:21:06 -07:00
Dean Lee
935cbd3139 LoggerState: test cases (#21855)
* test multiple threads writing to log

* fix typo

* use util::getenv

* check INIT_DATA and SENTINEL

* test END_OF_SEGMENT

* add comment

* test multiple threads logging and rotation

* cleanup

* update

* LoggerHandle:quick fix

* cleanup

* revert test_loggerd.py

* refactor test case

* check lock file

* check refcnt after close

* test_runner.cc

d

* int eixt_signal
2021-08-30 17:12:09 -07:00
Dean Lee
d0fa98931b proclogd: reduce the size of the procLog message by nearly half (#21800)
* cp msg to remove the space

* no orphans

* cleanup

* parse using istringstream

* add test

* split files

* cleanup

* add parser.cc to files_common

* add test for build message

* use > 0

* cleanup

* test proc/self/stat

* more test

* dd

* fix bug

* update test

* refactor pidStat

* cleanup

* test exe

* check procs size in message

* rename pidStat->ProcStat

* don't use util::format_string

* robust pids()

* catch conversion exception

* fix softirq

* udpate test

* use istringstream

* use REQUIRE_THAT&cleanup

* reserve vector of procStats

* use istream to parse cmdline

* cleanup
2021-08-05 11:27:02 +02:00
Adeeb Shihadeh
7a5f30f16b remove nav sconscript hack (#21768)
* remove nav sconscript hack

* pc files
2021-07-28 17:44:01 -07:00
Adeeb Shihadeh
ccf2780456 check submodule commits on master (#21446) 2021-07-01 23:12:39 -07:00
Adeeb Shihadeh
7d04be39cb CI: fix hanging if build failed 2021-06-30 17:58:28 -07:00
Dean Lee
a873a23e0d common/util.cc: add unit test, fix bug in util::read_file (#21251)
* add test case for util

* fix bug in read_file

* gitignore test_util

* better test

* referer

* more

* more test

* REQUIRE size

* apply reviews

* only test binary

* simplify the test

* read  non-permission

* debug print

* remove /etc/shadow

* test read directory

* Update selfdrive/common/tests/test_util.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-06-16 11:01:13 +02:00
Adeeb Shihadeh
164e018d38 increase test car moddels timeout 2021-06-04 04:38:43 -07:00
Adeeb Shihadeh
a0dabd94e9 use scons cache by default (#21102)
* always use scons cache

* cleanup
2021-06-01 17:12:32 -07:00
Adeeb Shihadeh
cf6d133638 fix up model tests + tools (#21071)
* unlogger: send yuv stream

* fix up model test tools

* fix unlogger

* rename model replay

* bump cereal

* test in actions

* no ci for now
2021-05-28 23:08:08 -07:00
Adeeb Shihadeh
5488793a60 disable mac for now 2021-05-20 03:14:43 -07:00
Adeeb Shihadeh
7e632900e5 cleanup car tests (#20562)
* cleanup test_car_models

* don't fail on that
2021-04-01 16:46:08 -07:00
Adeeb Shihadeh
cfe4cea2c9 test build script in CI (#20482) 2021-03-25 20:22:59 -07:00
ZwX1616
65bb979c34 set_exposure_target test (#20318)
* build

* remove junk

* clean up

* clean up rebase

* new patterns

* add gts

* add to jenkis

* this more useful

* typo

* test only

* Update Jenkinsfile

* test flag

* remove from jenkins

* these should all just be common:wq

* oops

* unigt

* add to unit tests?

* build all is fine

Co-authored-by: Comma Device <device@comma.ai>
2021-03-12 17:40:50 -08:00
iejMac
539426033b Move simulator CI to tools workflow (#20285)
* sim CI

* simulator CI

* scons already in Dockerfile.sim

* faster

* fast

* testing
2021-03-08 21:33:15 -08:00
Adeeb Shihadeh
7921759bbe scons cache in CI (#20197)
* scons cache in ci

* clean up cache

* fix cleanup step

* non fixed key

* quote
2021-02-28 15:50:20 -08:00
Adeeb Shihadeh
9288031e6f CI: fix webcam cache 2021-02-27 21:54:34 -08:00
iejMac
9144dd7c2f PlotJuggler CI with build from source (#20166)
* CI attempt

* fixing location

* fix

* fixes

* hardcode test_url for CI

* fixes

* cd fix

* Update tools/plotjuggler/juggle.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update tools/plotjuggler/test_plotjuggler.py

* fixes

* fixes

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-02-26 17:14:37 -08:00
Adeeb Shihadeh
9ceb117591 fix prebuilt docker build (#20123)
* try this

* back to the schedule
2021-02-20 16:33:58 -08:00
Adeeb Shihadeh
d1b44bbb34 tools: cleanup + setup CI (#20104)
* cleanup tools

* setup tools CI

* loggerd doesn't support this anymore

* cleanup

* builds with openpilot now
2021-02-17 20:37:01 -08:00
Willem Melching
e9c4a75a5c Remove dockerhub references from CI (#20038)
* cache from base image

* specify github repo
2021-02-08 11:53:47 +01:00
Adeeb Shihadeh
afa1e69bc1 faster webcam CI (#19975)
* don't copy in openpilot

* need that

* try this

* reenable the condition
2021-01-30 17:56:54 -08:00
Adeeb Shihadeh
a08360c4d0 build openpilot prebuilt on schedule (#19847)
* build openpilot prebuilt on schedule

* test

* back to schedule

* rename
2021-01-19 21:16:06 -08:00
Adeeb Shihadeh
c75b84e596 remove docker prebuilt CI job 2021-01-19 20:02:08 -08:00
Willem Melching
667390701f Fix macOS CI (#19822)
* does this fix the hash

* this is not the solution

* restore key doesnt work
2021-01-18 15:08:11 +01:00
Willem Melching
278a838231 Fix macOS CI (#19646)
* fix macOS ci

* no partial matches

* Change key
2021-01-04 21:34:23 +01:00
Adeeb Shihadeh
330f34bd0d cleanup mac build CI job 2021-01-03 12:39:31 -08:00
Mayfield
cbc25cc0f1 Make macos ci homebrew dep-caching fast (#19632)
* try out /usr/local for homebrew caching

* TEMP: disable non-macos jobs

* TEMP: disable more

* sizes

* temp: nothing change

* more

* try -1

* quotes

* delete existing downloads

* fix ~ expansion

* nothing

* try caching cellar

* move to yaml

* nothing

* nothing

* asdf

* nothing

* fixed cache key

* nothing

* stay in home dir

* keep zstd

* brew link

* fix cleaning?

* brew link in yaml

* fix zstd exclusion

* capnp

* revert mac_setup

* finish up

* done
2021-01-03 12:33:42 -08:00
Adeeb Shihadeh
59d7c5e64a move to github container registry + CI speedup (#19621) 2020-12-31 14:57:01 -08:00
Willem Melching
665f27e777 On status still triggers recursive builds
This reverts commit bd4b731e4e.
2020-11-25 14:22:44 +01:00
Willem Melching
bd4b731e4e add back run on status 2020-11-25 13:52:42 +01:00
Adeeb Shihadeh
cc1bca542d update simulator to ubuntu 20.04 (#2463)
* fix sim build in 20.04

* run ci

* fix docker build

* restore ci cofnig

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-11-18 13:10:37 -08:00
Adeeb Shihadeh
818bd8a591 trim trailing whitespace 2020-11-05 14:11:41 -08:00
Adeeb Shihadeh
719c5e3598 ubuntu 16.04 -> 20.04 (#2378) 2020-10-29 16:51:09 -07:00