Commit Graph

116 Commits

Author SHA1 Message Date
Dean Lee
ee8b53a7e8 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
old-commit-hash: d0fa98931b22d60e0e70a54d683905d8b34ffb10
2021-08-05 11:27:02 +02:00
Adeeb Shihadeh
28ddda3011 remove nav sconscript hack (#21768)
* remove nav sconscript hack

* pc files
old-commit-hash: 7a5f30f16bb25d8e297a38c8489d76909d53a115
2021-07-28 17:44:01 -07:00
Adeeb Shihadeh
c07de2492e issue templates: add note about uploading logs and remove redundant field
old-commit-hash: 6d4307e9f7e2f97560119f9d0ae5a9a91cdd1486
2021-07-07 19:02:44 -07:00
Adeeb Shihadeh
88eab8b0a8 check submodule commits on master (#21446)
old-commit-hash: ccf278045679d4b3aca1201455a3370f0d0b41c4
2021-07-01 23:12:39 -07:00
Adeeb Shihadeh
add0d2d65e CI: fix hanging if build failed
old-commit-hash: 7d04be39cb0e76127df999291608327051c66fed
2021-06-30 17:58:28 -07:00
Nelson Chen
f0b9e5dd42 Fix link to test_routes in PR template (#21398)
old-commit-hash: 450e9d2dc918c91f181883d0ffb94a92b477c2c1
2021-06-24 11:35:35 -07:00
Chris McCammon
86e8145ec8 add car harness as checkbox in car port (#21367)
old-commit-hash: d92a1a479967983276e67c4a2ad6ca7f71cf8226
2021-06-21 19:02:17 -07:00
Dean Lee
6bfc7f4ca5 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>
old-commit-hash: a873a23e0dbfe43027911acdd270610048eed74a
2021-06-16 11:01:13 +02:00
Willem Melching
a3a640dbe6 Disable dependabot
old-commit-hash: 2753e2bcc9fefa36fe69af1e26c49d84c30ff572
2021-06-07 19:54:12 +02:00
Adeeb Shihadeh
d1068dc263 increase test car moddels timeout
old-commit-hash: 164e018d384b1b07f97890eef6ee1397630112ff
2021-06-04 04:38:43 -07:00
Adeeb Shihadeh
fb62002e92 use scons cache by default (#21102)
* always use scons cache

* cleanup
old-commit-hash: a0dabd94e9d04fdc772b3cb34b6cd016da29d971
2021-06-01 17:12:32 -07:00
Adeeb Shihadeh
c7c49e8e35 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
old-commit-hash: cf6d133638caac0d974209f92be9c200cdbcbf3f
2021-05-28 23:08:08 -07:00
Jason Young
66831756a5 Fix broken relative URL in car port PR template (#21014)
* Relative to absolute URL

* Fix URL in another location
old-commit-hash: 4587c17f44f587bc3410337009a289b1b6ce2cc6
2021-05-24 18:03:18 +02:00
Adeeb Shihadeh
89105c46ac disable mac for now
old-commit-hash: 5488793a60675da8de6d0fb522974ab8c1e1192a
2021-05-20 03:14:43 -07:00
Adeeb Shihadeh
df17f65c61 cleanup car tests (#20562)
* cleanup test_car_models

* don't fail on that
old-commit-hash: 7e632900e5fc6581ead248581e5f90703f851d23
2021-04-01 16:46:08 -07:00
Adeeb Shihadeh
85ab6b1c79 test build script in CI (#20482)
old-commit-hash: cfe4cea2c93a36124c04d6bf1267b1bb5ccadbf7
2021-03-25 20:22:59 -07:00
ZwX1616
d8c1e9a16e 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>
old-commit-hash: 65bb979c34f3941044eb6a78f94037b2d4321418
2021-03-12 17:40:50 -08:00
iejMac
926e0dfca6 Move simulator CI to tools workflow (#20285)
* sim CI

* simulator CI

* scons already in Dockerfile.sim

* faster

* fast

* testing
old-commit-hash: 539426033b87e175d874973b6cdf633e8a70d0be
2021-03-08 21:33:15 -08:00
Adeeb Shihadeh
233c41bc60 scons cache in CI (#20197)
* scons cache in ci

* clean up cache

* fix cleanup step

* non fixed key

* quote
old-commit-hash: 7921759bbe99dec937f4c6cd54654f276a7015d6
2021-02-28 15:50:20 -08:00
Adeeb Shihadeh
b93cc8417a CI: fix webcam cache
old-commit-hash: 9288031e6f8966607a9b37291a20484ebfe5c399
2021-02-27 21:54:34 -08:00
iejMac
36ecc144ff 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>
old-commit-hash: 9144dd7c2f9c0a4d3a4b5188367b409ac3349eba
2021-02-26 17:14:37 -08:00
Adeeb Shihadeh
7dce3753e4 add car bug report template
old-commit-hash: c747654f057fde3adb5dda3a8a032e24b110735c
2021-02-20 19:03:00 -08:00
Adeeb Shihadeh
ca5f2ed4fd fix prebuilt docker build (#20123)
* try this

* back to the schedule
old-commit-hash: 9ceb117591fe1442d3641beaea0108b5eeefc6e4
2021-02-20 16:33:58 -08:00
Adeeb Shihadeh
0823abceff tools: cleanup + setup CI (#20104)
* cleanup tools

* setup tools CI

* loggerd doesn't support this anymore

* cleanup

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

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

* need that

* try this

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

* test

* back to schedule

* rename
old-commit-hash: a08360c4d091788ba70be489c802d8e0c6d3f6b2
2021-01-19 21:16:06 -08:00
Adeeb Shihadeh
51f8dc7f0e remove docker prebuilt CI job
old-commit-hash: c75b84e596f6f20556a166c19a3c0b7b0b2579bd
2021-01-19 20:02:08 -08:00
Willem Melching
42ba637d9b Fix macOS CI (#19822)
* does this fix the hash

* this is not the solution

* restore key doesnt work
old-commit-hash: 667390701f8a74f55343d5c1d3a21ea2392affac
2021-01-18 15:08:11 +01:00
Willem Melching
73e04b8164 Fix macOS CI (#19646)
* fix macOS ci

* no partial matches

* Change key
old-commit-hash: 278a838231d781282d783405a07be9bde47c8efb
2021-01-04 21:34:23 +01:00
Adeeb Shihadeh
9abcc61ddb cleanup mac build CI job
old-commit-hash: 330f34bd0d3b4ff66900bbcdbc92557d28537422
2021-01-03 12:39:31 -08:00
Mayfield
dc72980c83 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
old-commit-hash: cbc25cc0f1c639e948181e1218db60631cf9ff66
2021-01-03 12:33:42 -08:00
Adeeb Shihadeh
c64a8356fe move to github container registry + CI speedup (#19621)
old-commit-hash: 59d7c5e64ac3c8666c54c3443f912e4e0db92eb9
2020-12-31 14:57:01 -08:00
Willem Melching
eed710aa0d On status still triggers recursive builds
This reverts commit 41d35f1415760ec5aa3fd0a3de1903aac4602813.

old-commit-hash: 665f27e777f04fca9eabac196e70f8d3e3a04473
2020-11-25 14:22:44 +01:00
Willem Melching
9868a9c3f1 add back run on status
old-commit-hash: bd4b731e4e887d419318a14c6e2f3c3d082382b0
2020-11-25 13:52:42 +01:00
Adeeb Shihadeh
d4bf764d99 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>
old-commit-hash: cc1bca542d8a12acc381fc3d284d37b57b12c6ee
2020-11-18 13:10:37 -08:00
Adeeb Shihadeh
0f2dfbfc52 trim trailing whitespace
old-commit-hash: 818bd8a591193b891cee44726203de327c5dd7fb
2020-11-05 14:11:41 -08:00
Adeeb Shihadeh
2e5247056a ubuntu 16.04 -> 20.04 (#2378)
old-commit-hash: 719c5e3598846a6f3fa08c85bb811d197e0c6d0a
2020-10-29 16:51:09 -07:00
Adeeb Shihadeh
9e35e058ed don't fail CI if artifacts don't upload
old-commit-hash: 99029cda01f9d1990c7abdea0403753eeb47e339
2020-10-20 15:29:15 -07:00
Adeeb Shihadeh
a96e31391d no CI on testing closet branches
old-commit-hash: cdf812de1e281a7ac61d915ee17bed12d1bba292
2020-10-19 16:40:30 -07:00
Adeeb Shihadeh
fb935fa5f7 Build openpilot with webcam support in CI (#2070)
old-commit-hash: f4e18e0b7408bc73ffa9320c8ce2689b74993430
2020-10-16 15:16:17 -07:00
Willem Melching
e45715342b change macos cache policy and fix typo
old-commit-hash: 1b3f37d0cb28172beeeed53958ebe2936a7bcd1d
2020-10-13 16:55:46 +02:00
Willem Melching
872b7f02b0 remove on status
old-commit-hash: 4210ce24cfdcd0bb3a1017c3b15ac44403131ba9
2020-10-13 15:55:06 +02:00
grekiki
469a7ee7ef add caching to CI tests (#2269)
* first caching attempt

* caching attempt

* caching attempt

* caching attempt

* caching attempt

* caching attempt

* dump logs

* does this work?

* Create cache folder

* Print folder contents

* Fix volume mount

* Update test.yaml

* add removed tests

* reduce diff

* reduce diff

* reduce diff

* reduce diff

* reduce diff

* readd coverage upload

* Update test.yaml

* add more caching

* Use hash of test file to compute cache key

* add cache to valgrind tests

* Update .github/workflows/test.yaml

Co-authored-by: Willem Melching <willem.melching@gmail.com>

* Update .github/workflows/test.yaml

Co-authored-by: Willem Melching <willem.melching@gmail.com>

* Also hash workflow yaml

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: fc1d01be81d4e0716d10f8bed9ea3feb6a22be5b
2020-10-13 15:38:13 +02:00
Willem Melching
0af56c250c Build sim container once an hour
old-commit-hash: 6bded95c90e37ed75d713bf806354171e4721557
2020-10-12 15:14:03 +02:00
Willem Melching
af97e71063 Try only extracting python folder (#2321)
old-commit-hash: f258366e0c276bec0818286f5aeca1397eb51621
2020-10-12 13:37:01 +02:00
grekiki
67b02775da CI: Add valgrind (#2245)
* prepare a test for valgrind by fixing linter issues

* something went wrong

* Try update cereal

* Not working, fixing replay_learning.py

* Testing

* Testing

* Working now

* More logs, a bit of cleaning, still no idea how this works

* Ok got 10% cleaning done

* trying some stackOverflow code

* Lots of cleaning

* wip

* Delete valgrind_testing.py

* Delete replay_learning.py

* Add to CI, cannot fail though

* Add to CI, cannot fail though

* Now the unit test should fail

* Dump valgrind output in case of a failure

* fix subrepos

* fix subs

* hopefully fixes every issue that we have

* wait for message confirmation

* Revert "wait for message confirmation"

This reverts commit ad7ba280ec6536015ac1a442c9732bfe42fd5664.

* fix local issues

* Revert "fix local issues"

This reverts commit 4498df21df471fa6e9360d50407eaefdf24ae69f.

* attempt 3 to fix things

* untested function extraction

* refactor

* add valgrind task

* add delay and BASEDIR

* Make test not fail, it is not designed for that

* fix subrepositories

* fix tests

* Real fix now :)

* scons

* ... stupid CI

* fix valgrind CI

* Update test.yaml

* Update test.yaml

* Update test.yaml

* add valgrind logs as file

* remove delays

* kill process more reliably

* rename action

* small cleanup

* fix casting to int in case of large leaks

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: a09fd7c860555c308e516bbcfbf4fff850a694e1
2020-10-05 16:09:32 +02:00
Willem Melching
37e173acdc Fix MacOS CI (#2145)
* compile flag for cython

* fix more setups

* bump cereal

* reenable mac build

* don't let that fail the build

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8e0bb6a7cee869b9aa6a724b20ab8d79141eaad4
2020-10-04 15:03:20 -07:00
Adeeb Shihadeh
e4afed91ec this sounds better
old-commit-hash: 562cde2022fe1abf2176b4766e045bdf623b05e6
2020-09-28 13:48:09 -07:00
Adeeb Shihadeh
2e73593038 no more question issue type, we have discussions
old-commit-hash: 6101951dc459b45fa4069003473e1edcb208e96c
2020-09-28 13:43:46 -07:00