cleanup selfdrive/test (#23967)
* move test routes and test_models * move fingerprints * little more * remove thatpull/23968/head
parent
fa4b434e43
commit
8718a59330
|
@ -9,7 +9,7 @@ assignees: ''
|
||||||
**Checklist**
|
**Checklist**
|
||||||
|
|
||||||
- [ ] added to README
|
- [ ] added to README
|
||||||
- [ ] test route added to [test_routes.py](https://github.com/commaai/openpilot/blob/master/selfdrive/test/test_models.py)
|
- [ ] test route added to [routes.py](https://github.com/commaai/openpilot/blob/master/selfdrive/car/tests/routes.py)
|
||||||
- [ ] route with openpilot:
|
- [ ] route with openpilot:
|
||||||
- [ ] route with stock system:
|
- [ ] route with stock system:
|
||||||
- [ ] car harness used (if comma doesn't sell it, put N/A):
|
- [ ] car harness used (if comma doesn't sell it, put N/A):
|
||||||
|
|
|
@ -245,7 +245,6 @@ jobs:
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: |
|
run: |
|
||||||
${{ env.RUN }} "scons -j$(nproc) --test && \
|
${{ env.RUN }} "scons -j$(nproc) --test && \
|
||||||
coverage run selfdrive/test/test_fingerprints.py && \
|
|
||||||
$UNIT_TEST common && \
|
$UNIT_TEST common && \
|
||||||
$UNIT_TEST opendbc/can && \
|
$UNIT_TEST opendbc/can && \
|
||||||
$UNIT_TEST selfdrive/boardd && \
|
$UNIT_TEST selfdrive/boardd && \
|
||||||
|
@ -384,7 +383,7 @@ jobs:
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: /tmp/comma_download_cache
|
path: /tmp/comma_download_cache
|
||||||
key: car_models-${{ hashFiles('selfdrive/test/test_models.py', 'selfdrive/test/test_routes.py') }}-${{ matrix.job }}
|
key: car_models-${{ hashFiles('selfdrive/car/tests/test_models.py', 'selfdrive/test/test_routes.py') }}-${{ matrix.job }}
|
||||||
- name: Cache scons
|
- name: Cache scons
|
||||||
id: scons-cache
|
id: scons-cache
|
||||||
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged.
|
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged.
|
||||||
|
@ -402,7 +401,7 @@ jobs:
|
||||||
- name: Test car models
|
- name: Test car models
|
||||||
run: |
|
run: |
|
||||||
${{ env.RUN }} "scons -j$(nproc) --test && \
|
${{ env.RUN }} "scons -j$(nproc) --test && \
|
||||||
FILEREADER_CACHE=1 coverage run -m pytest selfdrive/test/test_models.py && \
|
FILEREADER_CACHE=1 coverage run -m pytest selfdrive/car/tests/test_models.py && \
|
||||||
coverage xml && \
|
coverage xml && \
|
||||||
chmod -R 777 /tmp/comma_download_cache"
|
chmod -R 777 /tmp/comma_download_cache"
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -341,7 +341,6 @@ selfdrive/thermald/fan_controller.py
|
||||||
selfdrive/test/__init__.py
|
selfdrive/test/__init__.py
|
||||||
selfdrive/test/helpers.py
|
selfdrive/test/helpers.py
|
||||||
selfdrive/test/setup_device_ci.sh
|
selfdrive/test/setup_device_ci.sh
|
||||||
selfdrive/test/test_fingerprints.py
|
|
||||||
selfdrive/test/test_onroad.py
|
selfdrive/test/test_onroad.py
|
||||||
|
|
||||||
selfdrive/ui/.gitignore
|
selfdrive/ui/.gitignore
|
||||||
|
|
|
@ -47,7 +47,7 @@ class CarInterface(CarInterfaceBase):
|
||||||
|
|
||||||
# These cars have been put into dashcam only due to both a lack of users and test coverage.
|
# These cars have been put into dashcam only due to both a lack of users and test coverage.
|
||||||
# These cars likely still work fine. Once a user confirms each car works and a test route is
|
# These cars likely still work fine. Once a user confirms each car works and a test route is
|
||||||
# added to selfdrive/test/test_routes, we can remove it from this list.
|
# added to selfdrive/car/tests/routes.py, we can remove it from this list.
|
||||||
ret.dashcamOnly = candidate in {CAR.CADILLAC_ATS, CAR.HOLDEN_ASTRA, CAR.MALIBU, CAR.BUICK_REGAL}
|
ret.dashcamOnly = candidate in {CAR.CADILLAC_ATS, CAR.HOLDEN_ASTRA, CAR.MALIBU, CAR.BUICK_REGAL}
|
||||||
|
|
||||||
# Presence of a camera on the object bus is ok.
|
# Presence of a camera on the object bus is ok.
|
||||||
|
|
|
@ -32,7 +32,7 @@ class CarInterface(CarInterfaceBase):
|
||||||
|
|
||||||
# These cars have been put into dashcam only due to both a lack of users and test coverage.
|
# These cars have been put into dashcam only due to both a lack of users and test coverage.
|
||||||
# These cars likely still work fine. Once a user confirms each car works and a test route is
|
# These cars likely still work fine. Once a user confirms each car works and a test route is
|
||||||
# added to selfdrive/test/test_routes, we can remove it from this list.
|
# added to selfdrive/car/tests/routes.py, we can remove it from this list.
|
||||||
ret.dashcamOnly = candidate in {CAR.KIA_OPTIMA_H, CAR.ELANTRA_GT_I30}
|
ret.dashcamOnly = candidate in {CAR.KIA_OPTIMA_H, CAR.ELANTRA_GT_I30}
|
||||||
|
|
||||||
ret.steerActuatorDelay = 0.1 # Default delay
|
ret.steerActuatorDelay = 0.1 # Default delay
|
||||||
|
|
|
@ -17,7 +17,7 @@ from selfdrive.car.gm.values import CAR as GM
|
||||||
from selfdrive.car.honda.values import CAR as HONDA, HONDA_BOSCH
|
from selfdrive.car.honda.values import CAR as HONDA, HONDA_BOSCH
|
||||||
from selfdrive.car.hyundai.values import CAR as HYUNDAI
|
from selfdrive.car.hyundai.values import CAR as HYUNDAI
|
||||||
from selfdrive.car.toyota.values import CAR as TOYOTA
|
from selfdrive.car.toyota.values import CAR as TOYOTA
|
||||||
from selfdrive.test.test_routes import routes, non_tested_cars
|
from selfdrive.car.tests.routes import routes, non_tested_cars
|
||||||
from selfdrive.test.openpilotci import get_url
|
from selfdrive.test.openpilotci import get_url
|
||||||
from tools.lib.logreader import LogReader
|
from tools.lib.logreader import LogReader
|
||||||
|
|
|
@ -3,7 +3,7 @@ import sys
|
||||||
import subprocess
|
import subprocess
|
||||||
from azure.storage.blob import BlockBlobService # pylint: disable=import-error
|
from azure.storage.blob import BlockBlobService # pylint: disable=import-error
|
||||||
|
|
||||||
from selfdrive.test.test_routes import routes as test_car_models_routes
|
from selfdrive.car.tests.routes import routes as test_car_models_routes
|
||||||
from selfdrive.test.process_replay.test_processes import original_segments as replay_segments
|
from selfdrive.test.process_replay.test_processes import original_segments as replay_segments
|
||||||
from xx.chffr.lib import azureutil # pylint: disable=import-error
|
from xx.chffr.lib import azureutil # pylint: disable=import-error
|
||||||
from xx.chffr.lib.storage import _DATA_ACCOUNT_PRODUCTION, _DATA_ACCOUNT_CI, _DATA_BUCKET_PRODUCTION # pylint: disable=import-error
|
from xx.chffr.lib.storage import _DATA_ACCOUNT_PRODUCTION, _DATA_ACCOUNT_CI, _DATA_BUCKET_PRODUCTION # pylint: disable=import-error
|
||||||
|
|
Loading…
Reference in New Issue