Commit Graph

109 Commits

Author SHA1 Message Date
Adeeb Shihadeh
75ab960557 CI: add timeouts to selfdrive tests (#29239)
* CI: add timeouts to selfdrive tests

* ugh, so slow

* will have to come back to this one
2023-08-04 18:14:14 -07:00
Adeeb Shihadeh
f714e7cb24 CI: update cache action (#29241)
* update that

* update one more
2023-08-04 17:59:55 -07:00
Adeeb Shihadeh
0df2cd4fa8 CI: only run on master + PRs (#29242) 2023-08-04 17:56:30 -07:00
Shane Smiskol
6ad6191e6a car docs diff bot: don't ignore failures
we have a test for this, so if that fails, doesn't matter if this fails too
2023-08-02 17:18:43 -07:00
Adeeb Shihadeh
34389acbbf CI: run plotjuggler test on mac (#29102)
* CI: run plotjuggler test on mac

* source

* python path
2023-07-22 23:10:31 -07:00
Adeeb Shihadeh
a83dec9d94 CI: add docker images tagged with git commit (#29052)
* CI: add docker images tagged with git commit

* tag later

* debug

* fix tag

* test that

* cleanup
2023-07-19 23:35:33 -07:00
Adeeb Shihadeh
22882a0d22 CI: use locally built image as CL base (#29030) 2023-07-18 22:57:32 -07:00
Maxime Desroches
56a0f9e074 Force build of openpilot-base for OpenCL tests (#29022) 2023-07-18 16:25:05 -07:00
Adeeb Shihadeh
ae6f13fb50 CI: update codecov action (#28967) 2023-07-15 22:55:33 -07:00
Maxime Desroches
0ebec253d0 simple fuzzing test for all processes (#28661)
* Revert "Revert "simple fuzzing test for all processes (#28584)""

This reverts commit 7783dc602c.

* determinism

* fingerprint
2023-06-29 21:49:23 -07:00
Adeeb Shihadeh
7783dc602c Revert "simple fuzzing test for all processes (#28584)"
This reverts commit bac193bdd5.
2023-06-22 14:59:50 -07:00
Kacper Rączy
f7c520b0d9 macOS: re-order CI caching jobs (#28622)
Save scons cache before dependency cleanup
2023-06-21 14:01:33 -07:00
Kacper Rączy
45a6834a74 macOS: fix build issues & re-enable CI (#28258)
* Uncomment build_mac job

* Add PYCURL_CURL_CONFIG

* Acados universal binary

* Remove x86 macos references from sconscript

* Add missing include in cabana

* Update cereal

* Update workflow

* Remove unnecessary libpaths for darwin

* Add missing path to cached dirs

* Fix path in cache preparation step

* Add poetry caches to CI cache

* Compile acados with lower deployment target for CI

* Update cereal

* Pass -rpath in linker flags as scons doed not support RPATH on macos

* Use scons api instead of os

* @rpath in install name of acados dylibs

* SConstruct cleanup

* fix liblocationd tests by adding lib suffix based on platform

* Update cereal

* Update opendbc

* Update opendbc

* Add acados gitignore to release files

* Update cereal

* Update cereal

* Add scons_cache to build cache

* Add Caskroom to cache

* Fix typo

* Link all packages at once, instead of one by one

* Run cleanup stage using poetry

* Remove casks from cache

* Move scons cache to separate cache step

* Save scons cache only on master

* Remove restore-keys from save-scons-cache step

* Uncomment if conditions for scons save

* Add gcc-arm-embedded cask cache to cache

* Custom handling of gcc-arm-embedded toolchain cache

* Rename dep cache key

* Exclude .fseventsd from cache

* Fix glob pattern

* Remove .feventsd before caching

* Run mac_setup only if dependency cache-hit != true

* Update cereal to master

* Add overwrite flag to brew link

* Remove manual casadi build from mac_setup

* Remove restore-keys from dependency cache

* Remove linux requirement for casadi

* Restore restore-keys to dependency cache
2023-06-21 13:14:20 -07:00
Maxime Desroches
bac193bdd5 simple fuzzing test for all processes (#28584)
* working test

* classmethod

* review

* add to ci
2023-06-20 10:57:02 -07:00
Adeeb Shihadeh
a1b6697629 logmessaged: handle big cloudlogs (#28553)
* logmessaged: handle big cloudlogs

* revert

* switch
2023-06-14 22:48:51 -07:00
Kacper Rączy
23de5f1bac pre-commit: validate poetry lock (#28313)
* Add CI step to validate lock file

* Fix run script

* Build docker image before running the check

* Fix

* Use setup instead of docker build

* Add pre-commit check

* Update hooks

* Add files to lock validation hook

* Add pyproject.toml and poetry.lock to release files

* Cleanup
2023-05-26 19:21:34 -07:00
Adeeb Shihadeh
5ec7da96a6 ci: always upload process replay ref logs 2023-03-30 12:43:08 -07:00
Adeeb Shihadeh
c97911dbad ubloxd: move to system/ (#27536)
* ubloxd: move to system/

* more fixes

* add missing sconscript

* fix valgrind tests

* uncomment
2023-03-08 16:11:18 -08:00
Adeeb Shihadeh
94eb215980 loggerd: move to system/ (#27534) 2023-03-08 11:20:49 -08:00
Shane Smiskol
b536b9c4c0 process replay: don't upload if diff doesn't exist (#27333)
* fail the replay, successfully print

* should still run

* debug

* outside?

* don't fail

* don't fail

* don't fail

* test

* test

* test

* try this now

* clean up, works!
2023-02-13 21:39:06 -08:00
Adeeb Shihadeh
01bdf382c4 CI: temporarily remove timeouts 2023-02-07 12:52:50 -08:00
Kurt Nistelberger
e2f5b164bd Ubloxd: glonass parsing tests (#27125)
* add glonass kaitai parsing

* add kaita generated files

* remove glonass from build

* add string non immediate type

* fix kaitai bug

* cleanUp

* add patch file

* fix scons order

* make lookup const

* remove comments

* rename

* add to release files

* remove printf

* add signs

* add glonass parsing test

* finish up glonass kaitai tests

* move cereal back to master

* ignore test_runner

* sign is not two complement

* address comments
---------

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2023-01-30 16:34:07 -08:00
Shane Smiskol
3efb22e82b release pre-commit: test translations (#27017)
we should be able to run on the stripped dir now
2023-01-20 11:46:02 -08:00
Adeeb Shihadeh
1da6f6a6e2 nav model replay (#26697)
* nav model replay

* set token

* fix gh actions

* update refs

* fix pc
2022-12-07 19:36:30 -08:00
Cameron Clough
a662af57c7 CI: use github.head_ref to group PR action runs (#26505)
* CI: use github.head_ref to group PR action runs

for push triggers, github.ref is set to the "branch or tag ref that was pushed"
for pull_request triggers, it is set to the "pull request merge branch" (master?)

github.head_ref is only set when the trigger is pull_request

https://docs.github.com/en/actions/learn-github-actions/contexts#github-context

* only check github.ref for push event
2022-11-15 13:07:46 -08:00
Dean Lee
80b088c332 Cabana: add save DBC dialog (#26282)
* export DBC to text edit

* added saveAs & Copy To Clipboard

* cleanup

* cleanup include

* add test case

* rename variable

* fix precision
2022-10-30 07:31:12 -07:00
Cameron Clough
335351123a Revert "ci: run some jobs only on push (#26202)"
This reverts commit 04b40aad92.
2022-10-22 01:04:54 -07:00
Cameron Clough
04b40aad92 ci: run some jobs only on push (#26202)
* ci: run some jobs only on push

alternative to #25900

* tools too
2022-10-21 21:13:55 -07:00
Cameron Clough
dba8e8ec0e Revert "ci: don't trigger on pull request sync event (#25900)"
This reverts commit 68530f18b4.
2022-10-21 18:04:07 -07:00
HaraldSchafer
a98d105cb9 Pipenv -> poetry (#24858)
* Try poetry

* Remove casadi for now

* Update docker

* Copy pipfiles

* add casadi back

* Too many slashes

* New poetry api

* Install system

* Try again

* No more pipenv

* new dependencies

* updates

* poetry 1.2.1, install dev dependencies

* keep install pipenv for xx for now?

* add pre-commit checks for poetry

* poetry lock is too slow

* update pip

* migrate to poetry groups

* update lockfile

* don't need to specify dev group unless it is made optional

* always install poetry

* set POETRY_VIRTUALENVS_CREATE instead, and use pipenv for xx

* use env for docs docker image

* alphabetical

* poetry 1.2.2

* add dev dependencies for typing

added in 4e310b80

* remove constraint

* fix PIPENV_SYSTEM

* remove constraint

* don't need this here

* bump

* bump pipenv

adds support for installing local pyprojects (can add openpilot as dependency of xx)

* README improvements

* probably not necessary

* bump pip

* maybe not necessary?

* revert

* don't install openpilot itself into the virtual env

* remove PySide2 and shiboken2

reverts c6b749fb96

* remove Pipenv, add xx dependencies, sync system python

* add pipenv as xx dep

* semver package constraints, use old lockfile versions

* fix casadi

* remove whitespace

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

* disable poetry cache

* cleanup

* prefer config file

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-10-21 16:23:56 -07:00
Cameron Clough
68530f18b4 ci: don't trigger on pull request sync event (#25900) 2022-10-20 13:23:59 -07:00
Adeeb Shihadeh
00494a44f4 CI speedup (#26096)
* CI speedup

* use the new stuff

* push

* no regressions

* try that

* don't let this slip

* fix modeld tests

* fix linter

* modernize prebuilt

* cleanup

* fix those

* increase a bit
2022-10-16 15:54:36 -07:00
Cameron Clough
077f0e0a44 ci: disable concurrency for master branch (#26052)
disable concurrency for master branch
2022-10-12 15:11:03 -07:00
Cameron Clough
03f06b0e32 ci: don't cancel concurrent workflows for master branch (#26047)
don't cancel for master branch
2022-10-12 14:03:44 -07:00
Cameron Clough
03a065160e ci: only run one instance of each workflow (#26036)
only allow one running workflow per event for each branch
2022-10-12 13:51:09 -07:00
Shane Smiskol
6393d29b04 pre-commit: test translations (#25695)
* add test translations to precommit

* fix test translations pre-commit hook

* revert

* fix that

* add to release files

add to release files

* fix

* don't run test on stripped dir

* fix
2022-10-03 12:26:12 -07:00
Adeeb Shihadeh
c626198575 webcam isn't a special build anymore 2022-08-26 20:44:29 -07:00
Adeeb Shihadeh
c2fee2d45e build test files by default (#25515)
* build test files by default

* only on master based
2022-08-25 16:22:52 -07:00
Adeeb Shihadeh
71e76c3d0f CI: Actions cleanup + speedup (#25514)
* actions cache cleanup

* release build cleanup

* fetch dpeth
2022-08-21 19:14:36 -07:00
Adeeb Shihadeh
ce1e40285b build_devel: check file sizes against GH limit (#25391)
* build_devel: check file sizes against GH limit

* pull lfs
2022-08-08 14:16:47 -07:00
HaraldSchafer
9fbbefbc94 Update model replay commit for calib change (#25357)
* Update model replay commit for calib test

* more reliable baseline

* update docker login

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-08-03 22:35:03 -07:00
Shane Smiskol
b5e3678245 Car info diff comment: don't fail if car info structure changes (#25193)
Don't fail if car info structure changes
2022-07-18 23:17:29 -07:00
Willem Melching
a006cd168e run pre-commit in release CI (#25158)
* run pre-commit in release

* add pylintrc and init files

* build first

* add mypy ini

* limit amount of debug scripts shipped in release

* add python version?

* add more missing __init__.py

* excluded rednose for cppcheck

* remove files before dirty check
2022-07-13 17:55:05 +02:00
Shane Smiskol
e710ba549a Car docs diff bot: skip PRs from forks (#25151)
* check permissions explicitly

* fix syntax

* Fix

* Diff

* fix

* revert
2022-07-13 00:20:35 -07:00
Shane Smiskol
aadaaabd54 compatibility docs: print diff from PR (#24941)
* print docs diff

* revert car changes

* cause a diff

* temp so it works

* text diff

* tier inline is a bit too much

* comments

* fix

* use paths

* fix

* temp

* temp

* diff

* fix

* remove something

* more text diff

* Delete comment if outdated

* Smaller diff

* remove

* no diff

* Don't try to run on fork PRs

* cause some errors

* Fix

* Fix

* Doesn't support env in job if, only step if

* in case file was moved, don't throw error

* See if this does what I think it does

* See if this does what I think it does

* should work

* change something

* revert

* uncomment

* no comment

* this shouldn't fail

* rename to base

* Remove true

* Remove other true
2022-07-12 18:58:46 -07:00
Adeeb Shihadeh
df251ef50e Fix master-ci dirty working tree + CI test (#25087)
* check

* test for dirty working tree

* swap order

* fix diff
2022-07-08 13:00:43 -07:00
martinl
0bf1462ad0 Update path for github workflow hardware unit tests (#25035)
* Update hardware path for github workflow unit tests

* Update release/files_common

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-07-05 10:33:20 -07:00
Shane Smiskol
7178800d84 Multilang prerequisites (#24999)
* some supporting code for multilang

* for now just english

* test for missing language files

* test for checking if ts file is up to date

* Skip test if causes exception, other test catches this

Test test

Should also work

should now fail

revert

rmn

* add to files_common

* fix files_common

* newlines

* no need to not update

* comment

* only english

* double quotes

* switch around
2022-06-30 11:02:53 +02:00
Shane Smiskol
879a7c3201 UI: wrap all text for translation (#24961)
* rough multiple language demo

* more wrappings

* stash

* add some bad translations

* updates

* map from french to spanish still has same problem of needing to call setText on everything

* add files

* restart UI

* use return code

* relative path

* more translations

* don't loop restart

* Toggle and prime translations

* try on device

* try QComboBox with readable style

* stash

* not yet scrollable

* stash

* dynamic translations (doesn't work for dynamic widget strings yet)

* clean up multiple option selector

* store languages in json

* try transparent

* Try transparent popup

* see how this looks

* tweaks

* clean up

* clean up

* clean up 2 and missing tr

* wrap more strings

* missing updater

* fixes

* add basic test to ensure all strings wrapped

* try in CI

* clean up

* test name

* fix test

* always install qt dev tools

* fix deps

* fast test

* add section so it prints multiple errors

* debug

* debug

get rid of those

* make any difference?

* comment

* oh...

* run with offscreen platform

* try out section

* clean up

* fix missing wrappings (it works!)

* move down

* space

* clear relevant params, set TICI=1
2022-06-29 14:47:46 -07:00
Dean Lee
fd5b3d7603 move replay from selfdrive/ui/replay to tools/replay (#24971)
* mv to tools/replay

* change folder

* add .gitignore

* fix build doc

* disable warning

* enable warning after build

* build qt/util.cc qt/api.cc to library

* cleanup
2022-06-28 16:12:42 +02:00