test_*.py files are no longer executable (#32610)

* test_*.py files are no longer executable

* cleanup empty lines

* update precommit

* fixme

* enable

* build
old-commit-hash: c59887c810
097
Adeeb Shihadeh 11 months ago committed by GitHub
parent 60ed5d6d40
commit 86b6103657
  1. 4
      .github/workflows/selfdrive_tests.yaml
  2. 4
      .pre-commit-config.yaml
  3. 2
      common/transformations/tests/test_coordinates.py
  4. 2
      common/transformations/tests/test_orientation.py
  5. 1
      selfdrive/boardd/tests/test_boardd_loopback.py
  6. 1
      selfdrive/boardd/tests/test_boardd_spi.py
  7. 1
      selfdrive/boardd/tests/test_pandad.py
  8. 1
      selfdrive/car/ford/tests/test_ford.py
  9. 1
      selfdrive/car/gm/tests/test_gm.py
  10. 1
      selfdrive/car/honda/tests/test_honda.py
  11. 1
      selfdrive/car/hyundai/tests/test_hyundai.py
  12. 1
      selfdrive/car/tests/test_can_fingerprint.py
  13. 1
      selfdrive/car/tests/test_car_interfaces.py
  14. 1
      selfdrive/car/tests/test_docs.py
  15. 1
      selfdrive/car/tests/test_fingerprints.py
  16. 1
      selfdrive/car/tests/test_fw_fingerprint.py
  17. 1
      selfdrive/car/tests/test_lateral_limits.py
  18. 1
      selfdrive/car/tests/test_models.py
  19. 2
      selfdrive/car/tests/test_platform_configs.py
  20. 1
      selfdrive/car/toyota/tests/test_toyota.py
  21. 1
      selfdrive/car/volkswagen/tests/test_volkswagen.py
  22. 1
      selfdrive/controls/lib/tests/test_alertmanager.py
  23. 1
      selfdrive/controls/lib/tests/test_latcontrol.py
  24. 1
      selfdrive/controls/lib/tests/test_vehicle_model.py
  25. 1
      selfdrive/controls/tests/test_alerts.py
  26. 1
      selfdrive/controls/tests/test_cruise_speed.py
  27. 1
      selfdrive/controls/tests/test_following_distance.py
  28. 1
      selfdrive/controls/tests/test_leads.py
  29. 2
      selfdrive/controls/tests/test_state_machine.py
  30. 1
      selfdrive/debug/test_fw_query_on_routes.py
  31. 1
      selfdrive/locationd/test/test_calibrationd.py
  32. 1
      selfdrive/locationd/test/test_locationd.py
  33. 1
      selfdrive/locationd/test/test_locationd_scenarios.py
  34. 1
      selfdrive/modeld/tests/test_modeld.py
  35. 1
      selfdrive/monitoring/test_monitoring.py
  36. 1
      selfdrive/navd/tests/test_map_renderer.py
  37. 1
      selfdrive/navd/tests/test_navd.py
  38. 1
      selfdrive/test/longitudinal_maneuvers/test_longitudinal.py
  39. 1
      selfdrive/test/process_replay/test_fuzzy.py
  40. 1
      selfdrive/test/process_replay/test_imgproc.py
  41. 1
      selfdrive/test/process_replay/test_processes.py
  42. 2
      selfdrive/test/process_replay/test_regen.py
  43. 1
      selfdrive/test/test_onroad.py
  44. 1
      selfdrive/test/test_time_to_onroad.py
  45. 1
      selfdrive/test/test_updated.py
  46. 2
      selfdrive/ui/tests/test_soundd.py
  47. 1
      selfdrive/ui/tests/test_translations.py
  48. 1
      system/athena/tests/test_athenad.py
  49. 1
      system/athena/tests/test_athenad_ping.py
  50. 1
      system/athena/tests/test_registration.py
  51. 1
      system/camerad/test/test_camerad.py
  52. 1
      system/camerad/test/test_exposure.py
  53. 1
      system/hardware/tici/tests/test_agnos_updater.py
  54. 1
      system/hardware/tici/tests/test_amplifier.py
  55. 1
      system/hardware/tici/tests/test_hardware.py
  56. 1
      system/hardware/tici/tests/test_power_draw.py
  57. 1
      system/loggerd/tests/test_deleter.py
  58. 1
      system/loggerd/tests/test_encoder.py
  59. 1
      system/loggerd/tests/test_loggerd.py
  60. 1
      system/loggerd/tests/test_uploader.py
  61. 1
      system/manager/test/test_manager.py
  62. 1
      system/qcomgpsd/tests/test_qcomgpsd.py
  63. 1
      system/sensord/tests/test_sensord.py
  64. 1
      system/tests/test_logmessaged.py
  65. 1
      system/thermald/tests/test_fan_controller.py
  66. 1
      system/thermald/tests/test_power_monitoring.py
  67. 1
      system/ubloxd/tests/test_pigeond.py
  68. 1
      system/updated/casync/tests/test_casync.py
  69. 1
      system/webrtc/tests/test_stream_session.py
  70. 1
      system/webrtc/tests/test_webrtcd.py
  71. 1
      third_party/acados/acados_template/gnsf/__init__.py
  72. 1
      tools/car_porting/test_car_model.py
  73. 1
      tools/lib/tests/test_caching.py
  74. 1
      tools/lib/tests/test_logreader.py
  75. 1
      tools/lib/tests/test_readers.py
  76. 1
      tools/lib/tests/test_route_library.py
  77. 1
      tools/plotjuggler/test_plotjuggler.py
  78. 1
      tools/sim/tests/test_metadrive_bridge.py

@ -116,6 +116,8 @@ jobs:
submodules: true
- uses: ./.github/workflows/setup-pre-commit
- uses: ./.github/workflows/setup-with-retry
- name: Build openpilot
run: ${{ env.RUN }} "scons -j$(nproc)"
- name: pre-commit
timeout-minutes: 4
run: ${{ env.RUN }} "unset PYTHONWARNINGS && pre-commit run --all && chmod -R 777 /tmp/pre-commit"
@ -143,7 +145,7 @@ jobs:
$PYTEST --timeout 60 -m 'not slow' && \
./selfdrive/ui/tests/create_test_translations.sh && \
QT_QPA_PLATFORM=offscreen ./selfdrive/ui/tests/test_translations && \
./selfdrive/ui/tests/test_translations.py"
pytest ./selfdrive/ui/tests/test_translations.py"
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v4
with:

@ -86,8 +86,8 @@ repos:
hooks:
- id: test_translations
name: test translations
entry: selfdrive/ui/tests/test_translations.py
language: script
entry: pytest selfdrive/ui/tests/test_translations.py
language: system
pass_filenames: false
files: '^selfdrive/ui/translations/'
- repo: https://github.com/python-poetry/poetry

@ -1,5 +1,3 @@
#!/usr/bin/env python3
import numpy as np
import openpilot.common.transformations.coordinates as coord

@ -1,5 +1,3 @@
#!/usr/bin/env python3
import numpy as np
from openpilot.common.transformations.orientation import euler2quat, quat2euler, euler2rot, rot2euler, \

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import os
import copy
import random

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import os
import time
import numpy as np

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import os
import pytest
import time

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import random
from collections.abc import Iterable

@ -1,4 +1,3 @@
#!/usr/bin/env python3
from parameterized import parameterized
from openpilot.selfdrive.car.gm.fingerprints import FINGERPRINTS

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import re
from openpilot.selfdrive.car.honda.fingerprints import FW_VERSIONS

@ -1,4 +1,3 @@
#!/usr/bin/env python3
from hypothesis import settings, given, strategies as st
import pytest

@ -1,4 +1,3 @@
#!/usr/bin/env python3
from parameterized import parameterized
from cereal import log, messaging

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import os
import math
import hypothesis.strategies as st

@ -1,4 +1,3 @@
#!/usr/bin/env python3
from collections import defaultdict
import os
import pytest

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import os
import sys

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import pytest
import random
import time

@ -1,4 +1,3 @@
#!/usr/bin/env python3
from collections import defaultdict
import importlib
from parameterized import parameterized_class

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import capnp
import os
import importlib

@ -1,5 +1,3 @@
#!/usr/bin/env python3
from openpilot.selfdrive.car.values import PLATFORMS

@ -1,4 +1,3 @@
#!/usr/bin/env python3
from hypothesis import given, settings, strategies as st
from cereal import car

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import random
import re

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import random
from openpilot.selfdrive.controls.lib.events import Alert, EVENTS

@ -1,4 +1,3 @@
#!/usr/bin/env python3
from parameterized import parameterized
from cereal import car, log

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import pytest
import math

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import copy
import json
import os

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import pytest
import itertools
import numpy as np

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import pytest
import itertools
from parameterized import parameterized_class

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import cereal.messaging as messaging
from openpilot.selfdrive.test.process_replay import replay_process_with_name

@ -1,5 +1,3 @@
#!/usr/bin/env python3
from cereal import car, log
from openpilot.common.realtime import DT_CTRL
from openpilot.selfdrive.car.car_helpers import interfaces

@ -1,4 +1,3 @@
#!/usr/bin/env python3
# type: ignore
from collections import defaultdict

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import random
import numpy as np

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import pytest
import json
import random

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import pytest
import numpy as np
from collections import defaultdict

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import numpy as np
import random

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import numpy as np
from cereal import car, log

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import time
import numpy as np
import os

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import json
import random
import numpy as np

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import itertools
from parameterized import parameterized_class

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import copy
from hypothesis import given, HealthCheck, Phase, settings
import hypothesis.strategies as st

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import os
import numpy as np
import hashlib

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import argparse
import concurrent.futures
import os

@ -1,5 +1,3 @@
#!/usr/bin/env python3
from parameterized import parameterized
from openpilot.selfdrive.test.process_replay.regen import regen_segment, DummyFrameReader

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import bz2
import math
import json

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import os
import pytest
import time

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import datetime
import os
import pytest

@ -1,5 +1,3 @@
#!/usr/bin/env python3
from cereal import car
from cereal import messaging
from cereal.messaging import SubMaster, PubMaster

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import pytest
import json
import os

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import pytest
from functools import wraps
import json

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import pytest
import subprocess
import threading

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import json
from Crypto.PublicKey import RSA
from pathlib import Path

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import pytest
import time
import numpy as np

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import time
import numpy as np

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import json
import os
import requests

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import pytest
import time
import random

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import pytest
import time
import numpy as np

@ -1,4 +1,3 @@
#!/usr/bin/env python3
from collections import defaultdict, deque
import pytest
import time

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import time
import threading
from collections import namedtuple

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import math
import os
import pytest

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import numpy as np
import os
import re

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import os
import time
import threading

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import os
import pytest
import signal

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import os
import pytest
import json

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import os
import pytest
import time

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import glob
import os
import time

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import pytest
from openpilot.system.thermald.fan_controller import TiciFanController

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import pytest
from openpilot.common.params import Params

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import pytest
import time

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import pytest
import os
import pathlib

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import asyncio
import json
# for aiortc and its dependencies

@ -1,4 +1,3 @@
#!/usr/bin/env python
import pytest
import asyncio
import json

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import argparse
import sys
import unittest # noqa: TID251

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import http.server
import os
import shutil

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import capnp
import contextlib
import io

@ -1,4 +1,3 @@
#!/usr/bin/env python
import pytest
import requests
import tempfile

@ -1,4 +1,3 @@
#!/usr/bin/env python
from collections import namedtuple
from openpilot.tools.lib.route import SegmentName

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import os
import glob
import signal

@ -1,4 +1,3 @@
#!/usr/bin/env python3
import pytest
import warnings

Loading…
Cancel
Save