Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

working action. #89

Merged
merged 233 commits into from
Jan 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
233 commits
Select commit Hold shift + click to select a range
347972f
Create main.yml
rav4kumar Dec 22, 2020
ef020eb
test files
Dec 12, 2020
bf7a977
tools and test files
rav4kumar Dec 12, 2020
c7b7568
docker file
Dec 12, 2020
dc70518
mac_setup.sh
Dec 12, 2020
2c161ff
no widget
rav4kumar Dec 12, 2020
042d356
add external
rav4kumar Dec 12, 2020
83afc42
more stuff for action
rav4kumar Dec 12, 2020
47f867e
laika
rav4kumar Dec 12, 2020
de92484
not needed
rav4kumar Dec 22, 2020
3135325
pc model
rav4kumar Dec 22, 2020
064767f
new from comma
rav4kumar Dec 22, 2020
ee6e638
update the path
rav4kumar Dec 22, 2020
082487a
form master
rav4kumar Dec 22, 2020
2de571d
more changes from master
rav4kumar Dec 23, 2020
ac60087
fix for unit test.
rav4kumar Dec 23, 2020
3798c20
fix for webcam test.
rav4kumar Dec 23, 2020
2ac7493
needed
rav4kumar Dec 23, 2020
41e3ae3
typo
rav4kumar Dec 23, 2020
fed970a
add yuv
arne182 Dec 31, 2020
be2c543
force libyuv
arne182 Dec 31, 2020
914ed60
add all phonelibs
arne182 Dec 31, 2020
0c5ad54
Create __init__.py
arne182 Dec 31, 2020
e0df78a
Add dp files
arne182 Dec 31, 2020
d8f4649
remove process replay
arne182 Dec 31, 2020
3fbe416
Remove unused import
arne182 Dec 31, 2020
774e4a9
Update main.yml
arne182 Dec 31, 2020
b5a83a6
make exec
arne182 Dec 31, 2020
7f7e15d
add oo_params
arne182 Dec 31, 2020
0af74d5
no Golf in DP
arne182 Dec 31, 2020
ae6f29e
add common/travis_checker.py
arne182 Dec 31, 2020
4aed085
fix for github actions
arne182 Dec 31, 2020
e82d12e
add panda tests
arne182 Dec 31, 2020
08e9f6a
Merge branch 'action-dp' of https://github.com/rav4kumar/openpilot in…
arne182 Dec 31, 2020
31ee6ce
init dp_last_modified
arne182 Dec 31, 2020
0e976b9
revert
arne182 Dec 31, 2020
40af352
fix for github actions
arne182 Dec 31, 2020
6093f2e
missing has_relay for chrysler
rav4kumar Dec 31, 2020
00de479
fix for github action
rav4kumar Dec 31, 2020
3c0dff2
readd total_ordering to the events.
rav4kumar Dec 31, 2020
3ef9bfd
add window.py from master
rav4kumar Dec 31, 2020
6cb2874
add extra geeras
rav4kumar Dec 31, 2020
c1fd5e9
why?
rav4kumar Dec 31, 2020
defcba4
init init_params_vals if dp_last_modified does not exsist
arne182 Dec 31, 2020
872a287
dp does not use internet Connectivity check
rav4kumar Dec 31, 2020
1a4c049
test
rav4kumar Dec 31, 2020
d720ca7
'from' to explicitly chain exceptions and remove unused r_name.
rav4kumar Dec 31, 2020
84866e7
we dont need macos and webcame test useless for us
rav4kumar Dec 31, 2020
b87dcdf
indent
rav4kumar Dec 31, 2020
0f2f9e2
clean up, deprecate bare except.
rav4kumar Dec 31, 2020
894e768
clean up appd.py
rav4kumar Dec 31, 2020
a1de26a
break it apart
rav4kumar Dec 31, 2020
a018076
display startup event based of branch.
rav4kumar Dec 31, 2020
52ceeca
unsed import
rav4kumar Dec 31, 2020
6182e68
clean up
rav4kumar Dec 31, 2020
f617894
needed as its definded.
rav4kumar Dec 31, 2020
a163696
clean up mapd
rav4kumar Dec 31, 2020
8952544
not needed.
rav4kumar Dec 31, 2020
7ece15f
usless
rav4kumar Dec 31, 2020
bb0d807
not needed.
rav4kumar Dec 31, 2020
a19fc4e
add colors.py to release file
rav4kumar Dec 31, 2020
63e0e40
disable dangerous-default-value
rav4kumar Dec 31, 2020
b21cfe3
add i18n to release
rav4kumar Dec 31, 2020
0dd9dc2
has_relay
rav4kumar Dec 31, 2020
a30d99b
add dynamic gas to release
rav4kumar Dec 31, 2020
0734cef
forgot the file extension
rav4kumar Dec 31, 2020
57ad8b6
has_relay
rav4kumar Dec 31, 2020
c1a033c
add dynamic follow to relese file .
rav4kumar Dec 31, 2020
004a8a3
forgot to d
rav4kumar Dec 31, 2020
0529032
make dir if they do not exist
arne182 Jan 1, 2021
d91d6b3
Update dp_common.py
arne182 Jan 1, 2021
19a4671
Update dp_common.py
arne182 Jan 1, 2021
e87ca47
fix longitudinal test for github actions
arne182 Jan 1, 2021
1973dd2
Update lane_planner.py
arne182 Jan 1, 2021
9463d75
fix for speedTooHigh in github actions
arne182 Jan 1, 2021
4e94c23
add print_dead_and_not_valid
arne182 Jan 2, 2021
974bf1a
print problems
arne182 Jan 2, 2021
30e31c9
Update systemd.py
arne182 Jan 2, 2021
68a6369
systemd must also be running for long DP test
arne182 Jan 2, 2021
144837f
print
rav4kumar Jan 2, 2021
033989f
print
rav4kumar Jan 2, 2021
8e1d183
syntax
rav4kumar Jan 2, 2021
9c35cdc
Update params.cc
arne182 Jan 2, 2021
3e6e080
syntax
rav4kumar Jan 2, 2021
bfc72df
Update params.cc
arne182 Jan 2, 2021
fc5bf91
Update systemd.py
arne182 Jan 2, 2021
c8df3ce
print param/d directory
arne182 Jan 2, 2021
3d257f3
import floor
rav4kumar Jan 3, 2021
c4d0294
make string
arne182 Jan 3, 2021
10ccd89
Update systemd.py
arne182 Jan 3, 2021
367ce58
ignore_alive 'dragonConf'
arne182 Jan 3, 2021
4d31246
fix test car models
arne182 Jan 3, 2021
ed003f6
Update test_models.py
arne182 Jan 3, 2021
2c0d73e
disable pointless-sting statements for default_speeds_generator.py
rav4kumar Jan 3, 2021
3bf4d03
init self.sm
arne182 Jan 3, 2021
efa44ea
w0105
rav4kumar Jan 3, 2021
615e516
add overpy to docker
rav4kumar Jan 3, 2021
bf86c68
install overpy
arne182 Jan 3, 2021
5748415
clean up mapd
rav4kumar Jan 3, 2021
1bc091d
add mypy
rav4kumar Jan 3, 2021
136d129
no need blacklash between bracket
rav4kumar Jan 3, 2021
894df41
syntax
rav4kumar Jan 3, 2021
76f2de0
action says we do not need it
rav4kumar Jan 3, 2021
845d2da
defined twice
rav4kumar Jan 3, 2021
80e59ef
pylint line to big
rav4kumar Jan 3, 2021
37cdead
can i stack them ?
rav4kumar Jan 3, 2021
24974fc
clean up mapd_helpers.
rav4kumar Jan 3, 2021
fdd4c8a
no backlash in brackets
rav4kumar Jan 3, 2021
2227f9b
i cant stack them
rav4kumar Jan 3, 2021
cd89923
Update test_models.py
arne182 Jan 3, 2021
b79ea06
Update test_models.py
arne182 Jan 3, 2021
92a8fab
fix E501
arne182 Jan 3, 2021
f552b24
E701
arne182 Jan 3, 2021
6ba000c
stack them like this?
arne182 Jan 3, 2021
b7142a6
e501
rav4kumar Jan 3, 2021
5eee93e
update non_tested_cars
arne182 Jan 3, 2021
67435b2
Update mapd.py
arne182 Jan 3, 2021
604ce21
update thermald.
rav4kumar Jan 3, 2021
ab2274e
update lane_planner.
rav4kumar Jan 3, 2021
2fdc1e5
update lane_planner
rav4kumar Jan 3, 2021
e2b4cfc
update thermald.
rav4kumar Jan 3, 2021
468f0f2
update mapd
rav4kumar Jan 3, 2021
303b80d
update df
rav4kumar Jan 3, 2021
597f25e
update uploader
rav4kumar Jan 3, 2021
e7869ca
force boolean
arne182 Jan 3, 2021
15d7ae3
more bools
arne182 Jan 3, 2021
6378900
E501
rav4kumar Jan 3, 2021
1c49e47
Update mapd.py
rav4kumar Jan 3, 2021
23f5deb
skip
rav4kumar Jan 3, 2021
2bd1579
add sm['dragonConf']
arne182 Jan 3, 2021
4c7e0a4
Update mapd.py
arne182 Jan 3, 2021
f0b6bbb
Update interface.py
arne182 Jan 3, 2021
4ebdf09
Update interface.py
arne182 Jan 3, 2021
1bf9d5f
Update interface.py
arne182 Jan 3, 2021
8631398
Update interface.py
arne182 Jan 3, 2021
baeb4a0
Update interface.py
arne182 Jan 3, 2021
c6fcf00
Update interface.py
arne182 Jan 3, 2021
26b2af7
Update mapd.py
arne182 Jan 3, 2021
68d2a04
update type to type_of
arne182 Jan 3, 2021
f0b0377
Update mapd.py
arne182 Jan 3, 2021
7000d22
Update uploader.py
arne182 Jan 3, 2021
75917c4
Update __init__.py
arne182 Jan 3, 2021
19c84b3
Update thermald.py
arne182 Jan 3, 2021
eff4928
Update lane_planner.py
arne182 Jan 3, 2021
ba6b160
Update mapd.py
arne182 Jan 3, 2021
75944c2
Update test_car_models.py
arne182 Jan 3, 2021
be2da4e
from master
rav4kumar Jan 3, 2021
5e7f118
update parser
rav4kumar Jan 3, 2021
abea743
from master
rav4kumar Jan 3, 2021
5901258
Update systemd.py
arne182 Jan 4, 2021
1051917
Update dp_common.py
arne182 Jan 4, 2021
bc2abd6
Update dp_common.py
arne182 Jan 4, 2021
cb54b64
rename COLORS to COLOURS
arne182 Jan 4, 2021
507ac08
Update support.py
arne182 Jan 4, 2021
005efdf
Update support.py
arne182 Jan 4, 2021
9fa1a39
Update systemd.py
arne182 Jan 4, 2021
3ed4238
Update test_car_models.py
arne182 Jan 4, 2021
99ffe42
add can tests
arne182 Jan 4, 2021
f9b0be8
Update test_models.py
arne182 Jan 4, 2021
338b9dc
Update carstate.py
arne182 Jan 4, 2021
d977aa2
Update vw_golf_mk4.dbc
arne182 Jan 4, 2021
e58de4c
Update values.py
arne182 Jan 4, 2021
2fae205
Update test_models.py
arne182 Jan 4, 2021
fe84c13
Update parser.cc
arne182 Jan 4, 2021
3f51c33
try only one FP
arne182 Jan 4, 2021
a3e5768
Update parser.cc
arne182 Jan 4, 2021
a4bdf8f
Update carstate.py
arne182 Jan 4, 2021
4a46abf
Update vw_golf_mk4.dbc
arne182 Jan 4, 2021
6f9e911
Update vw_mqb_2010.dbc
arne182 Jan 4, 2021
ea68210
Update values.py
arne182 Jan 4, 2021
d52b23c
Update values.py
arne182 Jan 4, 2021
0a0f14d
Update carcontroller.py
arne182 Jan 4, 2021
3d03938
Update carstate.py
arne182 Jan 4, 2021
20a394a
Update vw_mqb_2010.dbc
arne182 Jan 4, 2021
00fcc32
Update vw_golf_mk4.dbc
arne182 Jan 4, 2021
64c7ce5
Update carstate.py
arne182 Jan 4, 2021
ff4aa66
Update vw_golf_mk4.dbc
arne182 Jan 4, 2021
9a453cf
Update carstate.py
arne182 Jan 4, 2021
1efd733
Update volkswagencan.py
rav4kumar Jan 4, 2021
4f061f4
update vw
rav4kumar Jan 4, 2021
57bae82
default
arne182 Jan 4, 2021
e0fc11d
Update volkswagencan.py
arne182 Jan 4, 2021
aa33478
skip vw
rav4kumar Jan 5, 2021
6fb283d
skip df
rav4kumar Jan 5, 2021
cae62a3
mypy ignore df support
rav4kumar Jan 5, 2021
ad53c84
update thermald.
rav4kumar Jan 5, 2021
afe3b29
import datetime
rav4kumar Jan 5, 2021
9e1e286
added twice.
rav4kumar Jan 5, 2021
302c1ca
fix for mapd.
rav4kumar Dec 21, 2020
99734fa
indi BPv (#751)
cgw1968-5779 Dec 21, 2020
8f9fabf
live indi tunning.
jamcar23 Dec 23, 2020
46fd0ba
dynamic gas
rav4kumar Dec 28, 2020
fdcb35d
minor improv
rav4kumar Jan 5, 2021
e141ac9
sparrowtune
oppilot Dec 29, 2020
2de6188
If car in blindspot while changing lanes abort
arne182 Dec 31, 2020
063812f
If steering against auto lane change cancel lane change
arne182 Dec 31, 2020
b932e34
refined INDI tunes for RAV4TSS2 and tss2 prius
rav4kumar Jan 5, 2021
dc87dba
travis = true default.
rav4kumar Dec 16, 2020
b117820
send username.
rav4kumar Jan 5, 2021
17a55cd
line toolong
rav4kumar Jan 5, 2021
08a80dd
for backup.
rav4kumar Jan 5, 2021
04f3d30
test for indi tune
rav4kumar Jan 5, 2021
2e332b4
will this wokr
rav4kumar Jan 5, 2021
0ba6c48
081 model
rav4kumar Jan 5, 2021
6fdf774
on the fly.
rav4kumar Jan 5, 2021
e45bca7
tune
rav4kumar Jan 6, 2021
c4351fc
i want smoother accel.
rav4kumar Jan 6, 2021
407e935
updated message.
rav4kumar Jan 6, 2021
4fac0b3
ingore mypy
rav4kumar Jan 6, 2021
8c3bdcc
this could be it
rav4kumar Jan 7, 2021
07376d9
revert for now.
rav4kumar Jan 7, 2021
e205042
faster ci
adeebshihadeh Dec 31, 2020
8715152
noqa ope_edit
rav4kumar Jan 7, 2021
5f83d4d
revert vw
rav4kumar Jan 7, 2021
0fb2f49
pylint skip
rav4kumar Jan 7, 2021
f6a9cd4
fix vw
rav4kumar Jan 7, 2021
392ede6
revert back to this moring. need to redo the new changes
rav4kumar Jan 7, 2021
7cd6cc5
`self` not car_params. lol
rav4kumar Jan 7, 2021
f547286
we do not use process_replay just as of yet.
rav4kumar Jan 7, 2021
81177b1
fix for indi test
rav4kumar Jan 7, 2021
68a5f47
this will give us car model test check.
rav4kumar Jan 7, 2021
84f32ab
make vw communityfeature to pass the test?
rav4kumar Jan 7, 2021
6f2b55e
cp for indi test
rav4kumar Jan 7, 2021
2ac25c3
no test for GENERICPQ
rav4kumar Jan 7, 2021
f480118
how about the other way around?
rav4kumar Jan 7, 2021
bebdf02
Update files_common
arne182 Jan 7, 2021
6eac47a
Update files_common
arne182 Jan 7, 2021
511b08a
Update files_common
arne182 Jan 7, 2021
04f7b24
Update files_common
arne182 Jan 7, 2021
6a12e92
Update files_common
arne182 Jan 7, 2021
185b8a0
Update files_common
arne182 Jan 7, 2021
b6e55a8
we do not need docker to push to a branch
rav4kumar Jan 7, 2021
956c7af
no need docker push or prebuilt
rav4kumar Jan 7, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
164 changes: 164 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
name: kumar's testing_closet
on:
push:
branches-ignore:
- 'testing-closet*'
pull_request:

env:
BASE_IMAGE: openpilot-base
DOCKER_REGISTRY: ghcr.io/commaai

DOCKER_LOGIN: docker login ghcr.io -u adeebshihadeh -p ${{ secrets.CONTAINER_TOKEN }}
BUILD: |
docker pull $(grep -iohP '(?<=^from)\s+\S+' Dockerfile.openpilot_base) || true
docker pull $DOCKER_REGISTRY/$BASE_IMAGE:latest || true
docker build --cache-from $DOCKER_REGISTRY/$BASE_IMAGE:latest -t $DOCKER_REGISTRY/$BASE_IMAGE:latest -t $BASE_IMAGE:latest -f Dockerfile.openpilot_base .

RUN: docker run --shm-size 1G -v $PWD:/tmp/openpilot -e PYTHONPATH=/tmp/openpilot -e GITHUB_ACTION -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -v /tmp/comma_download_cache:/tmp/comma_download_cache $BASE_IMAGE /bin/sh -c
UNIT_TEST: coverage run --append -m unittest discover

jobs:
build_release:
name: build release
runs-on: ubuntu-20.04
timeout-minutes: 50
env:
STRIPPED_DIR: tmppilot
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Strip non-release files
run: |
mkdir $STRIPPED_DIR
cp -pR --parents $(cat release/files_common) $STRIPPED_DIR
cp Dockerfile.openpilot_base $STRIPPED_DIR

# need this to build on x86
cp -pR --parents phonelibs/libyuv phonelibs/snpe selfdrive/modeld/runners $STRIPPED_DIR
- name: Build Docker image
run: eval "$BUILD"
- name: Build openpilot and run checks
run: |
cd $STRIPPED_DIR
${{ env.RUN }} "cd /tmp/openpilot && \
scons -j$(nproc) && \
python -m unittest discover selfdrive/car"

static_analysis:
name: static analysis
runs-on: ubuntu-20.04
timeout-minutes: 50
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build Docker image
run: eval "$BUILD"
- name: pre-commit
run: ${{ env.RUN }} "cd /tmp/openpilot/ && git init && git add -A && pre-commit run --all"

valgrind:
name: valgrind
runs-on: ubuntu-20.04
timeout-minutes: 50
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Cache dependencies
id: dependency-cache
uses: actions/cache@v2
with:
path: /tmp/comma_download_cache
key: ${{ hashFiles('.github/workflows/test.yaml', 'selfdrive/test/test_valgrind_replay.py') }}
- name: Build Docker image
run: eval "$BUILD"
- name: Run valgrind
run: |
${{ env.RUN }} "cd /tmp/openpilot && \
scons -j$(nproc) && \
FILEREADER_CACHE=1 python selfdrive/test/test_valgrind_replay.py"
- name: Print logs
if: always()
run: cat selfdrive/test/valgrind_logs.txt

unit_tests:
name: unit tests
runs-on: ubuntu-20.04
timeout-minutes: 50
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build Docker image
run: eval "$BUILD"
- name: Run unit tests
run: |
${{ env.RUN }} "cd /tmp/openpilot && \
scons -j$(nproc) && \
coverage run selfdrive/test/test_fingerprints.py && \
$UNIT_TEST common && \
$UNIT_TEST opendbc/can && \
$UNIT_TEST selfdrive/boardd && \
$UNIT_TEST selfdrive/controls && \
$UNIT_TEST selfdrive/monitoring && \
$UNIT_TEST selfdrive/loggerd && \
$UNIT_TEST selfdrive/car && \
$UNIT_TEST selfdrive/locationd && \
$UNIT_TEST selfdrive/athena && \
$UNIT_TEST selfdrive/thermald && \
$UNIT_TEST tools/lib/tests"
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash) -v -F unit_tests

test_longitudinal:
name: longitudinal
runs-on: ubuntu-20.04
timeout-minutes: 50
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build Docker image
run: eval "$BUILD"
- name: Test longitudinal
run: |
${{ env.RUN }} "mkdir -p /tmp/openpilot/selfdrive/test/out && \
cd /tmp/openpilot/ && \
scons -j$(nproc) && \
cd selfdrive/test/longitudinal_maneuvers && \
./test_longitudinal.py"
- uses: actions/upload-artifact@v2
if: always()
continue-on-error: true
with:
name: longitudinal
path: selfdrive/test/longitudinal_maneuvers/out/longitudinal/

test_car_models:
name: car models
runs-on: ubuntu-20.04
timeout-minutes: 50
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Cache dependencies
id: dependency-cache
uses: actions/cache@v2
with:
path: /tmp/comma_download_cache
key: ${{ hashFiles('.github/workflows/test.yaml', 'selfdrive/test/test_car_models.py') }}
- name: Build Docker image
run: eval "$BUILD"
- name: Test car models
run: |
${{ env.RUN }} "cd /tmp/openpilot && \
scons -j$(nproc) && \
FILEREADER_CACHE=1 coverage run --parallel-mode -m nose --processes=4 --process-timeout=60 \
selfdrive/test/test_models.py && \
coverage combine"
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash) -v -F test_car_models
47 changes: 47 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: master
hooks:
- id: check-ast
- id: check-json
- id: check-xml
- id: check-yaml
- id: check-merge-conflict
- id: check-symlinks
- repo: https://github.com/pre-commit/mirrors-mypy
rev: master
hooks:
- id: mypy
exclude: '^(pyextra)|(external)|(cereal)|(rednose)|(panda)|(laika)|(opendbc)|(laika_repo)|(rednose_repo)/'
additional_dependencies: ['git+https://github.com/numpy/numpy-stubs']
- repo: https://github.com/PyCQA/flake8
rev: master
hooks:
- id: flake8
exclude: '^(pyextra)|(external)|(cereal)|(rednose)|(panda)|(laika)|(opendbc)|(laika_repo)|(rednose_repo)|(selfdrive/debug)/'
args:
- --select=F,E112,E113,E304,E501,E502,E701,E702,E703,E71,E72,E731,W191,W6
- --max-line-length=240
- --statistics
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
exclude: '^(pyextra)|(external)|(cereal)|(rednose)|(panda)|(laika)|(laika_repo)|(rednose_repo)/'
- repo: local
hooks:
- id: cppcheck
name: cppcheck
entry: cppcheck
language: system
types: [c++]
exclude: '^(phonelibs)|(external)|(cereal)|(opendbc)|(panda)|(tools)|(selfdrive/modeld/thneed/debug)|(selfdrive/modeld/test)|(selfdrive/camerad/test)/|(installer)'
args:
- --error-exitcode=1
- --language=c++
- --quiet
- --force
- -j8
Loading