Commit Graph

191 Commits

Author SHA1 Message Date
Justin Newberry d6922d3522 Revert "CI: use namespace.so" (#31060)
old-commit-hash: 23cbfe9eb3fc3fd3655e41d44a63a20e04bae1f1
2024-01-18 17:35:24 -08:00
Justin Newberry d792c3c5bb CI: use namespace.so (#31056)
* namespace

* mkdir

* fix

* restore only

* restore

* v3
old-commit-hash: 9ee0a8a2b1abb01eeaca7aa9de5fa86ee60a59e9
2024-01-18 17:17:53 -08:00
Justin Newberry 934225a448 replace pytest-timeouts with pytest-timeout (#31053)
* one timeout

* timeout

* higher timeout for now

* bump
old-commit-hash: d98b33adc8aaf10d0174d59e4065802c70a3413a
2024-01-18 16:19:49 -08:00
Adeeb Shihadeh 96e9a7d3ce CI: speedup unit test job (#30995)
* start

* mv to buildjet

* fix
old-commit-hash: e17e66180c3a9432e6d303ca36ff0e4af763dace
2024-01-13 21:16:35 -08:00
Adeeb Shihadeh 8277f37c4b camerad: move ae test to pytest/catch2 (#30994)
* mv ae gray test

* cleanup
old-commit-hash: 3e601b5e8fcaf2fd0885cc64949fa1349a8069eb
2024-01-13 15:40:25 -08:00
Justin Newberry 9e35f77f78 Revert "buildjet: pin location to de" (#30956)
Revert "buildjet: pin location to de (#30955)"

This reverts commit 5ce506c1ee95f7c6afe622430bc6d7eb3f167d5f.
old-commit-hash: af1b7e5c5912f328d196ff7da952f756a0fc5d04
2024-01-10 15:11:20 -08:00
Justin Newberry d2d2190973 buildjet: pin location to de (#30955)
* pin location

* stringify

* Fix

* fromjson

* flip the parens

* and those
old-commit-hash: 576cba217d1334b6429762bb47dfdb77adc576d1
2024-01-10 13:48:35 -08:00
Justin Newberry e1dd457277 CI: set CI=1 in docker image (#30889)
* ci=1

* wrong spot
old-commit-hash: 9b25bfc61866ff7853218e72aebd10df3c28595c
2024-01-02 13:48:16 -08:00
Justin Newberry 6c6f6ef45a CI: set CI=1 globally (#30888)
ci=1
old-commit-hash: 86bd3379522c67da94a3ac6f3e0628bffa14ce50
2024-01-02 13:17:19 -08:00
Adeeb Shihadeh 9ae1b6473c run test_fuzzy.py with pytest
old-commit-hash: b0b4ae9c15e5e4651a83bc9a0a857baf27513d4b
2023-12-18 14:38:57 -08:00
Justin Newberry 0939b25bc4 CI: move test_maprenderer to GH actions (#30610)
maprenderer to ci
old-commit-hash: 5d668701cb69c1e3d170109a8e788a2acbacebd3
2023-12-14 16:59:28 -08:00
Justin Newberry 553a18c065 CI: add codecov token (#30716)
* add codecov token

* retrigger with token
old-commit-hash: a3c0e2bd2500e04da1b8afd39657e7e12e555a7e
2023-12-13 11:50:44 -08:00
Justin Newberry 059aa6ffd9 Revert "Process Replay: move to pytest (#30260)" (#30687)
This reverts commit eb8f3f7f568aa0e294b32226ae5c5ed5e1b75e9d.
old-commit-hash: 7b5d4d031adb0e2fecf36772bbbb95e2989b9cc7
2023-12-11 14:46:56 -08:00
Adeeb Shihadeh d84af30348 bump model unit test timeout
old-commit-hash: afd5877be8260afd840512d477b9164595343eed
2023-11-30 21:48:11 -08:00
Justin Newberry 6af8e72604 Process Replay: move to pytest (#30260)
* process replay pytest

* enable long diff

* readd job name

* make it executable

* cleanup imports

* retrigger
old-commit-hash: 90c873ab1def0756f6f91fcb7f2d6fad503e3f49
2023-11-13 13:50:23 -08:00
Justin Newberry efaa3ea500 Pytest: default settings on PC improvements (#30441)
* always multithreaded

* multithreaded

* pkill correct process

* escape more

* load for interfaces
old-commit-hash: 2ad82cbfb064676401876a20e49e3965c40344a0
2023-11-13 10:45:24 -08:00
Justin Newberry a0b0c1c4e7 CI: codecov for multiprocessing (#30432)
old-commit-hash: 26294173207cd5e3c586ca71a88fdd3a09fc7345
2023-11-10 10:02:05 -08:00
Justin Newberry 0a901ebe02 Revert "CI: codecov for multiprocessing" (#30431)
Revert "CI: codecov for multiprocessing (#30428)"

This reverts commit 3b07eefe35677ba9cd35680864b88d5eacd3a25e.
old-commit-hash: 863fdec50e6e222b4b50157c7fe2e254de3435bd
2023-11-09 15:52:28 -08:00
Justin Newberry 81e3076dc6 CI: codecov for multiprocessing (#30428)
* concurrencty codecov

* its a list

* retrigger ci

* increase delay
old-commit-hash: 1e91cf92a180f7093279d19e4a8694c353910d15
2023-11-09 15:19:10 -08:00
Justin Newberry d50bddf658 CI: label codecov uploads (#30426)
* label

* matrix
old-commit-hash: 5c2796a104fd2bfb4ef7a541108bd4faee587ba5
2023-11-09 11:12:19 -08:00
Justin Newberry e55c032ac0 CI: pytest for the rest for GHA (#30418)
* pytest car

* all pytest

* need more time

* keep release test short

* keep it short
old-commit-hash: 53b6ab9e180381134c3809239768477bcc6cbd25
2023-11-08 16:04:02 -08:00
Justin Newberry 621dae92c7 build_release: increase timeout again (#30417)
* inc timeout

* 3 minute timeout
old-commit-hash: 844cbd95e73b9ea5cc9571534644342458c36d14
2023-11-08 14:32:16 -08:00
Justin Newberry d2fde3ab22 build_release: increase timeout (#30416)
inc timeout
old-commit-hash: fa9d3ec1f5c3ca0b32d61a1fdd410cd7bb59c932
2023-11-08 14:15:15 -08:00
Justin Newberry b4992fefed Pytest: consistent codecov (#30408)
* seed only

* random seed

* ignore version.py

* increase max examples

* increase default max examples
old-commit-hash: d02dd50749c8dabc1cd3385bdf2cf3fb7cb7ac63
2023-11-08 13:43:32 -08:00
Shane Smiskol f22eeaa0be selfdrive_tests: allow manual run (#30307)
* allow manual run

* Apply suggestions from code review
old-commit-hash: 2acb22fadacaa57919e1bf7bbe93e49542db6600
2023-10-25 15:17:17 -07:00
Adeeb Shihadeh 79ad4feddb CI: update to checkout@v4 (#30248)
old-commit-hash: 0336219b6a8c1a416efc6fe70545be6f20aa9bab
2023-10-14 23:25:41 -07:00
Kacper Rączy 2878a3a876 CI: add regen job (#30157)
* Ability to whitelist/blacklist cars in regen_all

* Add CI job for regen, running on 2 segments

* Run regen_all, not regen

* Use coverage run

* Add test_regen

* Use test_regen in ci test

* Add test case names

* ONNXCPU = 1

* Add mazda segment

* Use RUN_CL

* build cl image before running

* unset PYTHONWARNINGS

* Create regen cache

* Replace daemons with processes

* Skip ford

* Skip mazda

* Add comment about commented segments

* Update selfdrive/test/process_replay/test_regen.py

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

* Remove unset pythonwarnings

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 3aa74c28fcd426f73da2201b2fdd7ac2be21ba71
2023-10-05 13:59:00 -07:00
Adeeb Shihadeh e0346cac83 CI: disable native mac build (#30082)
old-commit-hash: 4f72e87ab740ad12932102a8b111818afc77ec38
2023-09-27 21:15:53 -07:00
Justin Newberry ef75f0ab12 CI: use "slow" marker for pytest (#30063)
* skip to mark

* fix quotes
old-commit-hash: 0251742079b206ce40a3b4d8ae9cec1381494d4a
2023-09-26 13:44:18 -07:00
Adeeb Shihadeh 3512ac86eb pre-commit: always check all file sizes (#30050)
* pre-commit: always check all file sizes

* fix release
old-commit-hash: 425fa316d15e45595ecdd7d394ee28d7fb84e214
2023-09-25 22:22:48 -07:00
Adeeb Shihadeh e69eeb7344 move remaining big files into LFS (#30053)
old-commit-hash: e185e5ffcd165ee35e1bbd8c80631a89247a1dfc
2023-09-25 21:53:03 -07:00
Justin Newberry 52b437f6b6 CI: remove warning messages (#30013)
remove ci warnings
old-commit-hash: f223b66b7ba3f0b5f9cfb86b6350e8bb1d53d0f3
2023-09-22 19:59:38 -07:00
Justin Newberry 70a5d52887 CI: disable buildjet on PR's from forks (#29979)
* fix fork CI

* linter

* needed for docker build too

* slightly more clear

* you should have gone for the head
old-commit-hash: 6f0affbcd29d3ac84ca5db73d3eb12dbfcd6b79f
2023-09-20 13:15:23 -07:00
Adeeb Shihadeh e14996e079 CI: login to docker hub on BuildJet (#29961)
* CI: login to docker hub on BuildJet

* shell

* try quotes

* forward

* try this

* can't believe this is broken

* try

* fix process replay
old-commit-hash: 4b7b234b9e91c0a291e2ff3fae6e6b5f0cf02113
2023-09-18 15:53:16 -07:00
Adeeb Shihadeh ee0ddd7e26 Revert "CI: login to dockerhub on aarch64 runners (#29915)"
This reverts commit 28211fe8ada8997119c57c5619349332a406aa76.

old-commit-hash: 079a51cfdff8e79aa4e85d8e3c70285c0a7ab2e0
2023-09-17 15:16:07 -07:00
Kacper Rączy 4fd9b553be macOS: add prompt about support in setup script (#29939)
* Add prompt about the state of macos support in mac_setup

* Change words

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

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: f0b8ecd14f7aed3d3ad46c770881e3028ed9781f
2023-09-15 19:05:32 -07:00
Justin Newberry 79feec2438 CI: reduce unittest timeout (#29937)
reduce timeout
old-commit-hash: c6f1f36789427e115c533a5d5c319d4e58ff644a
2023-09-15 14:38:51 -07:00
Kacper Rączy 9525da02b6 CI: login to dockerhub on aarch64 runners (#29915)
* DOCKER_HUB_LOGIN command

* Add docker creds

* checkout runner name

* test again

* Use runner.name to distinguish between buildjet and GH runners
old-commit-hash: c9ec7bc2a3de1bd889d9034bd9336a4f65d36e23
2023-09-14 17:08:49 -07:00
Adeeb Shihadeh cc4cb7e078 don't run test twice
old-commit-hash: 7ef8898624cddb0f2afb3322e2691dd5212239f2
2023-09-14 14:08:24 -07:00
Vivek Aithal 244a2fc793 locationd: Unit tests for different scenarios (#29908)
* add different scenarios for locationd

* add locationd scenario tests to unit tests
old-commit-hash: e9edf1300ac486e1e1f79035b14a648d41f0d16d
2023-09-14 13:59:21 -07:00
Vivek Aithal 370d912053 liblocationd: No longer used (#29909)
remove liblocationd
old-commit-hash: 01011c6c1d8a211092d8f90658497f50ebd06bf1
2023-09-13 18:59:32 -07:00
Adeeb Shihadeh 1f8459d285 use pytest for cpp tests (#29833)
* add pytest-cpp package (#29828)

* add pytest-cpp package

* disable for now

* use in ci

* use pytest cpp

* use my branch

* add missing tests

* that doesn't make sense

* it was merged upstream

* replace TEST_RLOG_URL with a publicly accessible url

* PR Cleanup

* assert instead

* update poetry lock

* add comment about  pytest-cpp

---------

Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
Co-authored-by: Justin Newberry <justin@comma.ai>
Co-authored-by: deanlee <deanlee3@gmail.com>
old-commit-hash: 2c1dfc2f341b09381af2cc7872c4092df28dc9d5
2023-09-11 14:01:50 -07:00
Kacper Rączy fc4972539f docker: fix cl tag (#29858)
unset TARGET_ARCHITECTURE before running build
old-commit-hash: c417669cbdadbc3a4fc31073116987264aa0e2d4
2023-09-08 17:20:03 -07:00
Justin Newberry 5ac2ef0e3f CI: fix aarch64 cache (#29857)
was not passed in
old-commit-hash: d3e5f66fc19c15accd684d397b8e25823e431b47
2023-09-08 17:13:18 -07:00
Kacper Rączy 73c25cc743 docker: fix multiarch tag push (#29850)
Fix multiarch merge script
old-commit-hash: b09ec6bb5bd73b6623e686ebc94f8a316102ae11
2023-09-08 15:03:40 -07:00
Kacper Rączy f8c6ebd3ad docker: multiarch images (amd64/aarch64) (#29691)
* arch specific tags

* merge multiarch script

* arm64 build and merge jobs

* update tag script

* casual ci test

* change image to 2204

* docker -v test

* arch specific naming

* Remove test_buildjet

* build -arch images only when CURRENT_ARCH_BUILD is set

* support new tags in tag_multiarch

* Toggle CURRENT_ARCH_BUILD on in ci

* Docker common

* Fix condition

* Fix path to docker_common

* Add more stuff to common

* Add build_arm job

* composite job for building

* Run checkout before build composite

* add shell arg

* move timeout to selfdrive_tests

* TARGET ARCHITECTURE var

* Support TARGET_ARCHITECTURE in workflow

* Rewrite to Single build job with matrix

* Remove shebang from docker_common

* Attempt for fix build matrix

* Remove setup arch

* build matrix for docker push

* Use 2vcpu for arm build

* 2vcpu for docker_push too

* temporarly unlock docker_push

* Remove requirement for target arch when pushing

* Unset target architecture in docker_push cl

* fix sha tags

* Rename action to compile-openpilot

* move push_image line to tag_multiarch step

* arch suffix for scons cache

* cache_key_prefix for setup-with-retry

* Re-disable docker_push on non-master

* Add newlines
old-commit-hash: 1344a93a356e4734fedb5f717778a8b1a273c74b
2023-09-08 14:46:39 -07:00
Adeeb Shihadeh 13c3bf2cbd CI: increase model replay timeout
old-commit-hash: c96fe132e8e708d8a9cb2d4d6a3e8b9f1028018b
2023-09-08 10:41:54 -07:00
Justin Newberry 5b1e60f5da Pytest: enforce a default timeout (#29793)
* pytest: enforce default timeout

* disable that for now

* 30 second timeout on tests
old-commit-hash: b0a71d45536d6fe0c0e8365913c6ffbc64a58b1b
2023-09-07 17:53:51 -07:00
Justin Newberry 37e4b2cba9 CI: run unittests in parallel with xdist (#29756)
* parallel tests

* review suggesions

* add to pyproject

* add a bit more buffer on that

* fix rare athena issue

* remove from pypoetry
old-commit-hash: dde225221e8fa0063bb52786232be33b8374dfcd
2023-09-07 16:29:36 -07:00
Justin Newberry e468072f1f CI: retry setup on failure (#29785)
* try a setup action

* should be uses

* fix that formatting

* try conclusion

* continue on error

* try without hyphens

* only when failure

* make it optional

* continue on error

* those don't fail anymore

* what about 3 failures

* remove stuff for debugging

* cleanup

* review suggestions

* change that too

* fix pj
old-commit-hash: 917f71d4460bf5503190ade72a3fa760b64dca66
2023-09-06 11:11:15 -07:00